diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c9f0c165e927..26f483597f8f 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 backupResourceVaultConfigs as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,19 +26,17 @@ 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) => { + client.backupResourceVaultConfigs.get(vaultName, resourceGroupName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +45,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript. +#### browser - Authentication, client creation and get backupResourceVaultConfigs as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -83,8 +81,7 @@ 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) => { + client.backupResourceVaultConfigs.get(vaultName, resourceGroupName).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..21a354fd8254 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -0,0 +1,218 @@ +/* + * 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, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + 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, + 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, + 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..21a354fd8254 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -0,0 +1,218 @@ +/* + * 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, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + 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, + 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, + 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..753ab92aa786 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -0,0 +1,229 @@ +/* + * 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, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + 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, + 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, + 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..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 0923aafa73b5..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/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..c66d5541d881 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,33 @@ 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, + 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..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 0923aafa73b5..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts new file mode 100644 index 000000000000..753ab92aa786 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -0,0 +1,229 @@ +/* + * 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, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + 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, + 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, + 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..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 0923aafa73b5..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 0923aafa73b5..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts new file mode 100644 index 000000000000..21a354fd8254 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -0,0 +1,218 @@ +/* + * 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, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + 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, + 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, + 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..21a354fd8254 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, @@ -96,12 +98,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -118,6 +127,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -125,7 +135,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -155,6 +165,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -176,6 +188,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +203,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..21a354fd8254 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, @@ -96,12 +98,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -120,14 +129,12 @@ export { EncryptionDetails, ErrorAdditionalInfo, ErrorDetail, - ErrorResponse, ExtendedProperties, GenericContainer, GenericContainerExtendedInfo, GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +165,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -178,6 +188,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +203,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..5f3580984577 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, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +194,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,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/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index 6eeea71e42b2..289b7cb9a5f8 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, @@ -96,12 +98,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,7 +135,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -176,6 +186,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +201,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..7d9e4da918be --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -0,0 +1,31 @@ +/* + * 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, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRestoreRequest, + CrossRegionRestoreRequest, + CrrAccessToken, + EncryptionDetails, + ErrorAdditionalInfo, + IaasVMRestoreRequest, + NewErrorResponse, + NewErrorResponseError, + 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..a8cd21dd9384 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts @@ -0,0 +1,42 @@ +/* + * 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, + 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..4088ee28b3f2 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; } /** @@ -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,7 +2270,8 @@ 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; @@ -2312,7 +2296,8 @@ 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; @@ -2432,7 +2417,8 @@ 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; @@ -2529,7 +2515,8 @@ 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; @@ -2555,7 +2542,8 @@ 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; @@ -2581,7 +2569,8 @@ 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; @@ -2750,43 +2739,6 @@ export interface SQLDataDirectoryMapping { targetPath?: string; } -/** - * Backup resource vault config details. - */ -export interface BackupResourceVaultConfig { - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageModelType?: StorageType; - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - 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; -} - -/** - * Backup resource vault config details. - */ -export interface BackupResourceVaultConfigResource extends Resource { - /** - * BackupResourceVaultConfigResource properties - */ - properties?: BackupResourceVaultConfig; -} - /** * BEK is bitlocker encryption key. */ @@ -2819,7 +2771,7 @@ export interface BMSRPQueryObject { endDate?: Date; /** * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', - * 'FullAndDifferential', 'All' + * 'FullAndDifferential', 'All', 'Incremental' */ restorePointQueryType?: RestorePointQueryType; /** @@ -3616,6 +3568,15 @@ 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; } /** @@ -3636,7 +3597,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; /** @@ -4086,62 +4047,152 @@ export interface OperationResultInfo { } /** - * This is the base class for operation result responses. + * Prepare DataMove Request */ -export interface OperationWorkerResponse { +export interface PrepareDataMoveRequest { /** - * HTTP Status Code of the operation. Possible values include: 'Continue', 'SwitchingProtocols', - * 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', - * 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', 'UseProxy', 'Unused', - * 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired', - * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', - * 'RequestEntityTooLarge', 'RequestUriTooLong', 'UnsupportedMediaType', - * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - * 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - * 'HttpVersionNotSupported' + * ARM Id of target vault */ - statusCode?: HttpStatusCode; + targetResourceId: string; /** - * HTTP headers associated with this operation. + * Target Region */ - headers?: { [propertyName: string]: string[] }; + 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; } /** - * Base class for operation result info. + * Contains the possible cases for VaultStorageConfigOperationResultResponse. */ -export interface OperationResultInfoBaseResource extends OperationWorkerResponse { +export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; + +/** + * Operation result response for Vault Storage Config + */ +export interface VaultStorageConfigOperationResultResponse { /** - * OperationResultInfoBaseResource operation + * Polymorphic Discriminator */ - operation?: OperationResultInfoBaseUnion; + objectType: "VaultStorageConfigOperationResultResponse"; } /** - * Filters to list backup items. + * Prepare DataMove Response */ -export interface ProtectedItemQueryObject { +export interface PrepareDataMoveResponse { /** - * Health State for the backed up item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Invalid' + * Polymorphic Discriminator */ - healthState?: HealthState; + objectType: "PrepareDataMoveResponse"; /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Co-relationId for move operation */ - backupManagementType?: BackupManagementType; + correlationId?: string; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Source Vault Properties */ - itemType?: DataSourceType; + sourceVaultProperties?: { [propertyName: string]: string }; +} + +/** + * Trigger DataMove Request + */ +export interface TriggerDataMoveRequest { /** - * Backup policy name associated with the backup item. + * 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. + */ +export interface OperationWorkerResponse { + /** + * HTTP Status Code of the operation. Possible values include: 'Continue', 'SwitchingProtocols', + * 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', + * 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', 'UseProxy', 'Unused', + * 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired', + * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', + * 'RequestEntityTooLarge', 'RequestUriTooLong', 'UnsupportedMediaType', + * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + * 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + * 'HttpVersionNotSupported' + */ + statusCode?: HttpStatusCode; + /** + * HTTP headers associated with this operation. + */ + headers?: { [propertyName: string]: string[] }; +} + +/** + * Base class for operation result info. + */ +export interface OperationResultInfoBaseResource extends OperationWorkerResponse { + /** + * OperationResultInfoBaseResource operation + */ + operation?: OperationResultInfoBaseUnion; +} + +/** + * Filters to list backup items. + */ +export interface ProtectedItemQueryObject { + /** + * Health State for the backed up item. Possible values include: 'Passed', 'ActionRequired', + * 'ActionSuggested', 'Invalid' + */ + healthState?: HealthState; + /** + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Type of workload this item represents. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + itemType?: DataSourceType; + /** + * Backup policy name associated with the backup item. */ policyName?: string; /** @@ -4345,515 +4396,558 @@ export interface ValidateOperationsResponse { } /** - * Contains the possible cases for FeatureSupportRequest. + * Backup resource vault config details. */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; +export interface BackupResourceVaultConfig { + /** + * 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; + /** + * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + enhancedSecurityState?: EnhancedSecurityState; + /** + * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + softDeleteFeatureState?: SoftDeleteFeatureState; +} /** - * Base class for feature request + * Backup resource vault config details. */ -export interface FeatureSupportRequest { +export interface BackupResourceVaultConfigResource extends Resource { /** - * Polymorphic Discriminator + * BackupResourceVaultConfigResource properties */ - featureType: "FeatureSupportRequest"; + properties?: BackupResourceVaultConfig; } /** - * Azure backup goal feature specific request. + * Vault Job specific error information */ -export interface AzureBackupGoalFeatureSupportRequest { +export interface VaultJobErrorInfo { /** - * Polymorphic Discriminator + * Error code. */ - featureType: "AzureBackupGoals"; + errorCode?: number; + /** + * Localized error string. + */ + errorString?: string; + /** + * List of localized recommendations for above error code. + */ + recommendations?: string[]; } /** - * Contains the possible cases for ProtectionIntent. + * Vault Job for CMK - has CMK specific info. */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; +export interface VaultJobExtendedInfo { + /** + * Job properties. + */ + propertyBag?: { [propertyName: string]: string }; +} /** - * Base class for backup ProtectionIntent. + * Vault level Job */ -export interface ProtectionIntent { +export interface VaultJob { /** * Polymorphic Discriminator */ - protectionIntentItemType: "ProtectionIntent"; + 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. + * The operation name. */ - sourceResourceId?: string; + operation?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Job status. */ - itemId?: string; + status?: string; /** - * ID of the backup policy with which this item is backed up. + * The start time. */ - policyId?: string; + startTime?: Date; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * The end time. */ - protectionState?: ProtectionStatus; + endTime?: Date; + /** + * ActivityId of job. + */ + activityId?: string; + /** + * Time elapsed during the execution of this job. + */ + duration?: string; + /** + * Gets or sets the state/actions applicable on this job like cancel/retry. + */ + actionsInfo?: JobSupportedAction[]; + /** + * Error details on execution of this job. + */ + errorDetails?: VaultJobErrorInfo[]; + /** + * Additional information about the job. + */ + extendedInfo?: VaultJobExtendedInfo; } /** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. + * Contains the possible cases for ProtectionContainer. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; /** - * Azure Recovery Services Vault specific protection intent item. + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. */ -export interface AzureRecoveryServiceVaultProtectionIntent { +export interface ProtectionContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "RecoveryServiceVaultItem"; + containerType: "ProtectionContainer"; /** - * 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 - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. + * Status of registration of the container with the Recovery Services Vault. */ - policyId?: string; + registrationStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Status of health of the container. */ - protectionState?: ProtectionStatus; + healthStatus?: string; } /** - * IaaS VM specific backup protection intent item. + * Contains the possible cases for DpmContainer. */ -export interface AzureResourceProtectionIntent { +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; + +/** + * DPM workload-specific protection container. + */ +export interface DpmContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureResourceItem"; + 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. + * Status of registration of the container with the Recovery Services Vault. */ - sourceResourceId?: string; + registrationStatus?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Status of health of the container. */ - itemId?: string; + healthStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Specifies whether the container is re-registrable. */ - policyId?: string; + canReRegister?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * ID of container. */ - protectionState?: ProtectionStatus; + containerId?: string; /** - * Friendly name of the VM represented by this backup item. + * Number of protected items in the BackupEngine */ - friendlyName?: string; -} - -/** - * AzureResource(IaaS VM) Specific feature support request - */ -export interface AzureVMResourceFeatureSupportRequest { + protectedItemCount?: number; /** - * Polymorphic Discriminator + * Backup engine Agent version */ - featureType: "AzureVMResourceBackup"; + dpmAgentVersion?: string; /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * List of BackupEngines protecting the container */ - vmSize?: string; + dpmServers?: string[]; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * To check if upgrade available */ - vmSku?: string; -} - -/** - * Response for feature support requests for Azure IaasVm - */ -export interface AzureVMResourceFeatureSupportResponse { + upgradeAvailable?: boolean; /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * Protection status of the container. */ - supportStatus?: SupportStatus; + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. - */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. + * AzureBackupServer (DPMVenus) workload-specific protection container. */ -export interface AzureWorkloadAutoProtectionIntent { +export interface AzureBackupServerContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + containerType: "AzureBackupServerContainer"; /** - * 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. + * Contains the possible cases for BackupEngineBase. */ -export interface NameInfo { +export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBase { /** - * Value of usage. + * Polymorphic Discriminator */ - value?: string; + backupEngineType: "BackupEngineBase"; /** - * Localized value of usage. + * Friendly name of the backup engine. */ - 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 backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - unit?: UsagesUnit; + backupManagementType?: BackupManagementType; /** - * Quota period of usage. + * Registration status of the backup engine with the Recovery Services Vault. */ - quotaPeriod?: string; + registrationStatus?: string; /** - * Next reset time of usage. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - nextResetTime?: Date; + backupEngineState?: string; /** - * Current value of usage. + * Backup status of the backup engine. */ - currentValue?: number; + healthStatus?: string; /** - * Limit of usage. + * Flag indicating if the backup engine be registered, once already registered. */ - limit?: number; + canReRegister?: boolean; /** - * Name of usage. + * ID of the backup engine. */ - name?: NameInfo; -} - -/** - * BackupStatus request. - */ -export interface BackupStatusRequest { + backupEngineId?: string; /** - * 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 version */ - resourceType?: DataSourceType; + dpmVersion?: string; /** - * Entire ARM resource id of the resource + * Backup agent version */ - resourceId?: string; + azureBackupAgentVersion?: string; /** - * Protectable Item Logical Name + * To check if backup agent upgrade available */ - poLogicalName?: string; + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * BackupStatus response. + * Backup engine type when Azure Backup Server is used to manage the backups. */ -export interface BackupStatusResponse { - /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionStatus?: ProtectionStatus; +export interface AzureBackupServerEngine { /** - * Specifies the arm resource id of the vault + * Polymorphic Discriminator */ - vaultId?: string; + backupEngineType: "AzureBackupServerEngine"; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Friendly name of the backup engine. */ - fabricName?: FabricName; + friendlyName?: string; /** - * 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 + * Contains the possible cases for BackupRequest. */ -export interface PreValidateEnableBackupResponse { +export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequest { /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Polymorphic Discriminator */ - status?: ValidationStatus; + objectType: "BackupRequest"; +} + +/** + * AzureFileShare workload-specific backup request. + */ +export interface AzureFileShareBackupRequest { /** - * Response error code + * Polymorphic Discriminator */ - errorCode?: string; + objectType: "AzureFileShareBackupRequest"; /** - * Response error message + * Backup copy will expire after the time specified (UTC). */ - errorMessage?: string; + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Contains the possible cases for WorkloadProtectableItem. + */ +export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItem { /** - * Recommended action for user + * Polymorphic Discriminator */ - recommendation?: string; + protectableItemType: "WorkloadProtectableItem"; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * Type of backup management to backup an item. */ - containerName?: string; + backupManagementType?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * Type of workload for the backup management */ - protectedItemName?: string; + 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; } /** - * Filters to list protection intent. + * Protectable item for Azure Fileshare workloads. */ -export interface ProtectionIntentQueryObject { +export interface AzureFileShareProtectableItem { /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + protectableItemType: "AzureFileShare"; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * Type of backup management to backup an item. */ - itemType?: IntentItemType; + backupManagementType?: string; /** - * Parent name of the intent + * Type of workload for the backup management */ - parentName?: string; + workloadType?: string; /** - * Item name of the intent + * Friendly name of the backup item. */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + friendlyName?: string; /** - * ProtectionIntentResource properties + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - properties?: ProtectionIntentUnion; + 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' + */ + azureFileShareType?: AzureFileShareType; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for ILRRequest. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Parameters to Provision ILR API. */ -export interface ProtectionContainer { +export interface ILRRequest { /** * Polymorphic Discriminator */ - containerType: "ProtectionContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + objectType: "ILRRequest"; +} + +/** + * Update snapshot Uri with the correct friendly Name of the source Azure file share. + */ +export interface AzureFileShareProvisionILRRequest { /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + objectType: "AzureFileShareProvisionILRRequest"; /** - * Status of registration of the container with the Recovery Services Vault. + * Recovery point ID. */ - registrationStatus?: string; + recoveryPointId?: string; /** - * Status of health of the container. + * Source Storage account ARM Id */ - healthStatus?: string; + sourceResourceId?: string; } /** - * Contains the possible cases for DpmContainer. + * Contains the possible cases for IaaSVMContainer. */ -export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; +export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; /** - * DPM workload-specific protection container. + * IaaS VM workload-specific container. */ -export interface DpmContainer { +export interface IaaSVMContainer { /** * Polymorphic Discriminator */ - containerType: "DPMContainer"; + containerType: "IaaSVMContainer"; /** * Friendly name of the container. */ @@ -4873,47 +4967,27 @@ export interface DpmContainer { */ 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; - /** - * List of BackupEngines protecting the container - */ - dpmServers?: string[]; - /** - * To check if upgrade available + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - upgradeAvailable?: boolean; + virtualMachineId?: string; /** - * Protection status of the container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - protectionStatus?: string; + virtualMachineVersion?: string; /** - * Extended Info of the container. + * Resource group name of Recovery Services Vault. */ - extendedInfo?: DPMContainerExtendedInfo; + resourceGroup?: string; } /** - * AzureBackupServer (DPMVenus) workload-specific protection container. + * IaaS VM workload-specific backup item representing a classic virtual machine. */ -export interface AzureBackupServerContainer { +export interface AzureIaaSClassicComputeVMContainer { /** * Polymorphic Discriminator */ - containerType: "AzureBackupServerContainer"; + containerType: "Microsoft.ClassicCompute/virtualMachines"; /** * Friendly name of the container. */ @@ -4933,206 +5007,134 @@ export interface AzureBackupServerContainer { */ healthStatus?: string; /** - * Specifies whether the container is re-registrable. + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - canReRegister?: boolean; + virtualMachineId?: string; /** - * ID of container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - containerId?: string; + virtualMachineVersion?: string; /** - * Number of protected items in the BackupEngine + * Resource group name of Recovery Services Vault. */ - protectedItemCount?: number; + resourceGroup?: string; +} + +/** + * Contains the possible cases for IaaSVMProtectableItem. + */ +export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; + +/** + * IaaS VM workload-specific backup item. + */ +export interface IaaSVMProtectableItem { /** - * Backup engine Agent version + * Polymorphic Discriminator */ - dpmAgentVersion?: string; + protectableItemType: "IaaSVMProtectableItem"; /** - * List of BackupEngines protecting the container + * Type of backup management to backup an item. */ - dpmServers?: string[]; + backupManagementType?: string; /** - * To check if upgrade available + * Type of workload for the backup management */ - upgradeAvailable?: boolean; + workloadType?: string; /** - * Protection status of the container. + * Friendly name of the backup item. */ - protectionStatus?: string; + friendlyName?: string; /** - * Extended Info of the container. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - extendedInfo?: DPMContainerExtendedInfo; + protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; } /** - * Contains the possible cases for BackupEngineBase. - */ -export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; - -/** - * The base backup engine class. All workload specific backup engines derive from this class. + * IaaS VM workload-specific backup item representing the Classic Compute VM. */ -export interface BackupEngineBase { +export interface AzureIaaSClassicComputeVMProtectableItem { /** * Polymorphic Discriminator */ - backupEngineType: "BackupEngineBase"; + protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; /** - * Friendly name of the backup engine. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of workload for the backup management */ - 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; + workloadType?: string; /** - * To check if backup agent upgrade available + * Friendly name of the backup item. */ - isAzureBackupAgentUpgradeAvailable?: boolean; + friendlyName?: string; /** - * To check if backup engine upgrade available + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - isDpmUpgradeAvailable?: boolean; + protectionState?: ProtectionStatus; /** - * Extended info of the backupengine + * Fully qualified ARM ID of the virtual machine. */ - extendedInfo?: BackupEngineExtendedInfo; + virtualMachineId?: string; } /** - * Backup engine type when Azure Backup Server is used to manage the backups. + * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. */ -export interface AzureBackupServerEngine { +export interface AzureIaaSComputeVMContainer { /** * Polymorphic Discriminator */ - backupEngineType: "AzureBackupServerEngine"; + containerType: "Microsoft.Compute/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. - */ -export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. + * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. */ -export interface WorkloadProtectableItem { +export interface AzureIaaSComputeVMProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "WorkloadProtectableItem"; + protectableItemType: "Microsoft.Compute/virtualMachines"; /** * Type of backup management to backup an item. */ @@ -5150,93 +5152,76 @@ export interface WorkloadProtectableItem { * 'Protected', 'ProtectionFailed' */ protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; } /** - * Protectable item for Azure Fileshare workloads. + * Contains the possible cases for AzureWorkloadContainer. */ -export interface AzureFileShareProtectableItem { +export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; + +/** + * Container for the workloads running inside Azure Compute or Classic Compute. + */ +export interface AzureWorkloadContainer { /** * Polymorphic Discriminator */ - protectableItemType: "AzureFileShare"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; + containerType: "AzureWorkloadContainer"; /** - * Friendly name of the backup item. + * Friendly name of the container. */ friendlyName?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - protectionState?: ProtectionStatus; + backupManagementType?: BackupManagementType; /** - * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. + * Status of registration of the container with the Recovery Services Vault. */ - parentContainerFabricId?: string; + registrationStatus?: string; /** - * Friendly name of container to which this protectable item belongs. + * Status of health of the container. */ - parentContainerFriendlyName?: string; + healthStatus?: string; /** - * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' + * ARM ID of the virtual machine represented by this Azure Workload Container */ - azureFileShareType?: AzureFileShareType; -} - -/** - * Contains the possible cases for ILRRequest. - */ -export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; - -/** - * Parameters to Provision ILR API. - */ -export interface ILRRequest { + sourceResourceId?: string; /** - * Polymorphic Discriminator + * Time stamp when this container was updated. */ - objectType: "ILRRequest"; -} - -/** - * Update snapshot Uri with the correct friendly Name of the source Azure file share. - */ -export interface AzureFileShareProvisionILRRequest { + lastUpdatedTime?: Date; /** - * Polymorphic Discriminator + * Additional details of a workload container. */ - objectType: "AzureFileShareProvisionILRRequest"; + extendedInfo?: AzureWorkloadContainerExtendedInfo; /** - * Recovery point ID. + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - recoveryPointId?: string; + workloadType?: WorkloadType; /** - * Source Storage account ARM Id + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' */ - sourceResourceId?: string; + operationType?: OperationType; } /** - * Contains the possible cases for IaaSVMContainer. - */ -export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; - -/** - * IaaS VM workload-specific container. + * Container for SQL workloads under SQL Availability Group. */ -export interface IaaSVMContainer { +export interface AzureSQLAGWorkloadContainerProtectionContainer { /** * Polymorphic Discriminator */ - containerType: "IaaSVMContainer"; + containerType: "SQLAGWorkLoadContainer"; /** * Friendly name of the container. */ @@ -5256,27 +5241,38 @@ export interface IaaSVMContainer { */ healthStatus?: string; /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * ARM ID of the virtual machine represented by this Azure Workload Container */ - virtualMachineId?: string; + sourceResourceId?: string; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. + * Time stamp when this container was updated. */ - virtualMachineVersion?: string; + lastUpdatedTime?: Date; /** - * Resource group name of Recovery Services Vault. + * Additional details of a workload container. */ - resourceGroup?: string; + extendedInfo?: AzureWorkloadContainerExtendedInfo; + /** + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** - * IaaS VM workload-specific backup item representing a classic virtual machine. + * Azure Sql workload-specific container. */ -export interface AzureIaaSClassicComputeVMContainer { +export interface AzureSqlContainer { /** * Polymorphic Discriminator */ - containerType: "Microsoft.ClassicCompute/virtualMachines"; + containerType: "AzureSqlContainer"; /** * Friendly name of the container. */ @@ -5295,95 +5291,65 @@ export interface AzureIaaSClassicComputeVMContainer { * Status of health of the container. */ healthStatus?: string; +} + +/** + * Azure Storage Account workload-specific container. + */ +export interface AzureStorageContainer { /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * Polymorphic Discriminator */ - virtualMachineId?: string; + containerType: "StorageContainer"; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. + * Friendly name of the container. */ - virtualMachineVersion?: string; + friendlyName?: string; /** - * Resource group name of Recovery Services Vault. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - resourceGroup?: string; -} - -/** - * Contains the possible cases for IaaSVMProtectableItem. - */ -export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; - -/** - * IaaS VM workload-specific backup item. - */ -export interface IaaSVMProtectableItem { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Status of registration of the container with the Recovery Services Vault. */ - protectableItemType: "IaaSVMProtectableItem"; + registrationStatus?: string; /** - * Type of backup management to backup an item. + * Status of health of the container. */ - backupManagementType?: string; + healthStatus?: string; /** - * Type of workload for the backup management + * Fully qualified ARM url. */ - workloadType?: string; + sourceResourceId?: string; /** - * Friendly name of the backup item. + * Storage account version. */ - friendlyName?: string; + storageAccountVersion?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Resource group name of Recovery Services Vault. */ - protectionState?: ProtectionStatus; + resourceGroup?: string; /** - * Fully qualified ARM ID of the virtual machine. + * Number of items backed up in this container. */ - virtualMachineId?: string; + protectedItemCount?: number; } /** - * IaaS VM workload-specific backup item representing the Classic Compute VM. + * Contains the possible cases for ProtectableContainer. */ -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; -} +export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; /** - * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. + * Protectable Container Class. */ -export interface AzureIaaSComputeVMContainer { +export interface ProtectableContainer { /** * Polymorphic Discriminator */ - containerType: "Microsoft.Compute/virtualMachines"; + protectableContainerType: "ProtectableContainer"; /** * Friendly name of the container. */ @@ -5394,72 +5360,52 @@ export interface AzureIaaSComputeVMContainer { * '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. + * Fabric Id of the container such as ARM Id. */ - resourceGroup?: string; + containerId?: string; } /** - * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. + * Azure Storage-specific protectable containers */ -export interface AzureIaaSComputeVMProtectableItem { +export interface AzureStorageProtectableContainer { /** * Polymorphic Discriminator */ - protectableItemType: "Microsoft.Compute/virtualMachines"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; + protectableContainerType: "StorageContainer"; /** - * Type of workload for the backup management + * Friendly name of the container. */ - workloadType?: string; + friendlyName?: string; /** - * Friendly name of the backup item. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - friendlyName?: string; + backupManagementType?: BackupManagementType; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Status of health of the container. */ - protectionState?: ProtectionStatus; + healthStatus?: string; /** - * Fully qualified ARM ID of the virtual machine. + * Fabric Id of the container such as ARM Id. */ - virtualMachineId?: string; + containerId?: string; } /** - * Contains the possible cases for AzureWorkloadContainer. - */ -export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; - -/** - * Container for the workloads running inside Azure Compute or Classic Compute. + * Azure workload-specific container */ -export interface AzureWorkloadContainer { +export interface AzureVMAppContainerProtectableContainer { /** * Polymorphic Discriminator */ - containerType: "AzureWorkloadContainer"; + protectableContainerType: "VMAppContainer"; /** * Friendly name of the container. */ @@ -5470,47 +5416,24 @@ export interface AzureWorkloadContainer { * 'DefaultBackup' */ backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; /** * Status of health of the container. */ healthStatus?: string; /** - * ARM ID of the virtual machine represented by this Azure Workload Container - */ - sourceResourceId?: string; - /** - * Time stamp when this container was updated. - */ - lastUpdatedTime?: Date; - /** - * Additional details of a workload container. - */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; - /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' - */ - workloadType?: WorkloadType; - /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + * Fabric Id of the container such as ARM Id. */ - operationType?: OperationType; + containerId?: string; } /** - * Container for SQL workloads under SQL Availability Group. + * Container for SQL workloads under Azure Virtual Machines. */ -export interface AzureSQLAGWorkloadContainerProtectionContainer { +export interface AzureVMAppContainerProtectionContainer { /** * Polymorphic Discriminator */ - containerType: "SQLAGWorkLoadContainer"; + containerType: "VMAppContainer"; /** * Friendly name of the container. */ @@ -5555,303 +5478,91 @@ export interface AzureSQLAGWorkloadContainerProtectionContainer { } /** - * Azure Sql workload-specific container. + * Contains the possible cases for WorkloadItem. */ -export interface AzureSqlContainer { +export type WorkloadItemUnion = WorkloadItem | AzureVmWorkloadItemUnion; + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadItem { /** * Polymorphic Discriminator */ - containerType: "AzureSqlContainer"; + workloadItemType: "WorkloadItem"; /** - * 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; } /** - * Azure Storage Account workload-specific container. + * Contains the possible cases for AzureVmWorkloadItem. */ -export interface AzureStorageContainer { +export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; + +/** + * Azure VM workload-specific workload item. + */ +export interface AzureVmWorkloadItem { /** * Polymorphic Discriminator */ - containerType: "StorageContainer"; + workloadItemType: "AzureVmWorkloadItem"; /** - * 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; /** - * Fully qualified ARM url. + * Name for instance or AG */ - sourceResourceId?: string; + parentName?: string; /** - * Storage account version. + * Host/Cluster Name for instance or AG */ - storageAccountVersion?: string; + serverName?: string; /** - * Resource group name of Recovery Services Vault. + * Indicates if workload item is auto-protectable */ - resourceGroup?: string; + isAutoProtectable?: boolean; /** - * Number of items backed up in this container. + * For instance or AG, indicates number of DB's present */ - protectedItemCount?: number; + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subWorkloadItemCount?: number; } /** - * Contains the possible cases for ProtectableContainer. - */ -export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; - -/** - * Protectable Container Class. - */ -export interface ProtectableContainer { - /** - * Polymorphic Discriminator - */ - protectableContainerType: "ProtectableContainer"; - /** - * 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 health of the container. - */ - healthStatus?: string; - /** - * Fabric Id of the container such as ARM Id. - */ - containerId?: string; -} - -/** - * Azure Storage-specific protectable containers - */ -export interface AzureStorageProtectableContainer { - /** - * Polymorphic Discriminator - */ - protectableContainerType: "StorageContainer"; - /** - * 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 health of the container. - */ - healthStatus?: string; - /** - * Fabric Id of the container such as ARM Id. - */ - containerId?: string; -} - -/** - * Azure workload-specific container - */ -export interface AzureVMAppContainerProtectableContainer { - /** - * Polymorphic Discriminator - */ - protectableContainerType: "VMAppContainer"; - /** - * 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 health of the container. - */ - healthStatus?: string; - /** - * Fabric Id of the container such as ARM Id. - */ - containerId?: string; -} - -/** - * Container for SQL workloads under Azure Virtual Machines. - */ -export interface AzureVMAppContainerProtectionContainer { - /** - * Polymorphic Discriminator - */ - containerType: "VMAppContainer"; - /** - * 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; - /** - * ARM ID of the virtual machine represented by this Azure Workload Container - */ - sourceResourceId?: string; - /** - * Time stamp when this container was updated. - */ - lastUpdatedTime?: Date; - /** - * Additional details of a workload container. - */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; - /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' - */ - workloadType?: WorkloadType; - /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' - */ - operationType?: OperationType; -} - -/** - * Contains the possible cases for WorkloadItem. - */ -export type WorkloadItemUnion = WorkloadItem | AzureVmWorkloadItemUnion; - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItem { - /** - * Polymorphic Discriminator - */ - workloadItemType: "WorkloadItem"; - /** - * 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; -} - -/** - * Contains the possible cases for AzureVmWorkloadItem. - */ -export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; - -/** - * Azure VM workload-specific workload item. - */ -export interface AzureVmWorkloadItem { - /** - * Polymorphic Discriminator - */ - workloadItemType: "AzureVmWorkloadItem"; - /** - * 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; - /** - * Name for instance or AG - */ - parentName?: string; - /** - * Host/Cluster Name for instance or AG - */ - serverName?: string; - /** - * Indicates if workload item is auto-protectable - */ - isAutoProtectable?: boolean; - /** - * For instance or AG, indicates number of DB's present - */ - subinquireditemcount?: number; - /** - * For instance or AG, indicates number of DB's to be protected - */ - subWorkloadItemCount?: number; -} - -/** - * Pre-backup validation for Azure VM Workload provider. + * Pre-backup validation for Azure VM Workload provider. */ export interface PreBackupValidation { /** @@ -6431,955 +6142,1861 @@ export interface AzureVmWorkloadSQLDatabaseWorkloadItem { */ workloadItemType: "SQLDataBase"; /** - * Type of backup management to backup an item. + * 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; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if workload item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subWorkloadItemCount?: number; +} + +/** + * Azure VM workload-specific protectable item representing SQL Instance. + */ +export interface AzureVmWorkloadSQLInstanceProtectableItem { + /** + * Polymorphic Discriminator + */ + protectableItemType: "SQLInstance"; + /** + * 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; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Parent Unique Name is added to provide the service formatted URI Name of the Parent + * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + */ + parentUniqueName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if protectable item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * Indicates if protectable item is auto-protected + */ + isAutoProtected?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subprotectableitemcount?: number; + /** + * Pre-backup validation for protectable objects + */ + prebackupvalidation?: PreBackupValidation; +} + +/** + * Azure VM workload-specific workload item representing SQL Instance. + */ +export interface AzureVmWorkloadSQLInstanceWorkloadItem { + /** + * Polymorphic Discriminator + */ + workloadItemType: "SQLInstance"; + /** + * 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; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if workload item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subWorkloadItemCount?: number; + /** + * Data Directory Paths for default directories + */ + dataDirectoryPaths?: SQLDataDirectory[]; +} + +/** + * AzureWorkload workload-specific backup request. + */ +export interface AzureWorkloadBackupRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadBackupRequest"; + /** + * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: + * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' + */ + backupType?: BackupType; + /** + * Bool for Compression setting + */ + enableCompression?: boolean; + /** + * Backup copy will expire after the time specified (UTC). + */ + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Validation for inquired protectable items under a given container. + */ +export interface InquiryValidation { + /** + * Status for the Inquiry Validation. + */ + status?: string; + /** + * Error Detail in case the status is non-success. + */ + errorDetail?: ErrorDetail; + /** + * 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.** + */ + readonly additionalDetail?: string; +} + +/** + * Details of an inquired protectable item. + */ +export interface WorkloadInquiryDetails { + /** + * Type of the Workload such as SQL, Oracle etc. + */ + type?: string; + /** + * Contains the protectable item Count inside this Container. + */ + itemCount?: number; + /** + * Inquiry validation such as permissions and other backup validations. + */ + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { + /** + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded + */ + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; + /** + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. + */ + inquiryDetails?: WorkloadInquiryDetails[]; +} + +/** + * This is used to represent the various nodes of the distributed container. + */ +export interface DistributedNodesInfo { + /** + * Name of the node under a distributed container. + */ + nodeName?: string; + /** + * Status of this Node. + * Failed | Succeeded + */ + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; +} + +/** + * Extended information of the container. + */ +export interface AzureWorkloadContainerExtendedInfo { + /** + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + */ + hostServerName?: string; + /** + * Inquiry Status for the container. + */ + inquiryInfo?: InquiryInfo; + /** + * List of the nodes in case of distributed container. + */ + nodesList?: DistributedNodesInfo[]; +} + +/** + * Additional information on backup engine. + */ +export interface BackupEngineExtendedInfo { + /** + * Database name of backup engine. + */ + databaseName?: string; + /** + * Number of protected items in the backup engine. + */ + protectedItemsCount?: number; + /** + * Number of protected servers in the backup engine. + */ + protectedServersCount?: number; + /** + * Number of disks in the backup engine. + */ + diskCount?: number; + /** + * Disk space used in the backup engine. + */ + usedDiskSpace?: number; + /** + * Disk space currently available in the backup engine. + */ + availableDiskSpace?: number; + /** + * Last refresh time in the backup engine. + */ + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; +} + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBaseResource extends Resource { + /** + * BackupEngineBaseResource properties + */ + properties?: BackupEngineBaseUnion; +} + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequestResource extends Resource { + /** + * BackupRequestResource properties + */ + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { + /** + * attribute to add extended info + */ + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { + /** + * Backup management type for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Friendly name of the backup engine. + */ + friendlyName?: string; + /** + * Attribute to add extended info. + */ + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + 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' + */ + containerType?: ContainerType; + /** + * Backup engine name + */ + backupEngineName?: string; + /** + * Fabric name for filter + */ + fabricName?: string; + /** + * Status of registration of this container with the Recovery Services Vault. + */ + status?: string; + /** + * Friendly name of this container. + */ + friendlyName?: string; +} + +/** + * The query filters that can be used with the inquire container API. + */ +export interface BMSContainersInquiryQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSPOQueryObject { + /** + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Full name of the container whose Protectable Objects should be returned. + */ + containerName?: string; + /** + * Backup status query parameter. + */ + status?: string; + /** + * Friendly name. + */ + friendlyName?: string; +} + +/** + * The query filters that can be used with the refresh container API. + */ +export interface BMSRefreshContainersQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSWorkloadItemQueryObject { + /** + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + */ + workloadItemType?: WorkloadItemType; + /** + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionStatus?: ProtectionStatus; +} + +/** + * 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 + */ + 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; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.) + * @summary Error Response + */ +export interface ErrorResponse { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponse[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * 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 */ - backupManagementType?: string; + properties?: AADProperties; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfig { /** - * Type of workload for the backup management + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - workloadType?: string; + storageModelType?: StorageType; /** - * Friendly name of the backup item. + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - friendlyName?: string; + storageType?: StorageType; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' */ - protectionState?: ProtectionStatus; + storageTypeState?: StorageTypeState; /** - * Name for instance or AG + * Opt in details of Cross Region Restore feature. */ - parentName?: string; + crossRegionRestoreFlag?: boolean; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequest { /** - * Host/Cluster Name for instance or AG + * Entire ARM resource id of the resource */ - serverName?: string; + resourceId?: string; /** - * Indicates if workload item is auto-protectable + * Job Name of the job to be fetched */ - isAutoProtectable?: boolean; + jobName?: string; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequestResource extends Resource { /** - * For instance or AG, indicates number of DB's present + * CrrJobRequestResource properties */ - subinquireditemcount?: number; + properties?: CrrJobRequest; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { /** - * For instance or AG, indicates number of DB's to be protected + * BackupResourceConfigResource properties */ - subWorkloadItemCount?: number; + properties?: BackupResourceConfig; } /** - * Azure VM workload-specific protectable item representing SQL Instance. + * Contains the possible cases for CrrAccessToken. */ -export interface AzureVmWorkloadSQLInstanceProtectableItem { +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { /** * Polymorphic Discriminator */ - protectableItemType: "SQLInstance"; - /** - * 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; + objectType: "CrrAccessToken"; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Access token used for authentication */ - protectionState?: ProtectionStatus; + accessTokenString?: string; /** - * Name for instance or AG + * Subscription Id of the source vault */ - parentName?: string; + subscriptionId?: string; /** - * Parent Unique Name is added to provide the service formatted URI Name of the Parent - * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + * Resource Group name of the source vault */ - parentUniqueName?: string; + resourceGroupName?: string; /** - * Host/Cluster Name for instance or AG + * Resource Name of the source vault */ - serverName?: string; + resourceName?: string; /** - * Indicates if protectable item is auto-protectable + * Resource Id of the source vault */ - isAutoProtectable?: boolean; + resourceId?: string; /** - * Indicates if protectable item is auto-protected + * Protected item container id */ - isAutoProtected?: boolean; + protectionContainerId?: number; /** - * For instance or AG, indicates number of DB's present + * Recovery Point Id */ - subinquireditemcount?: number; + recoveryPointId?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Recovery Point Time */ - subprotectableitemcount?: number; + recoveryPointTime?: string; /** - * Pre-backup validation for protectable objects + * Container Unique name */ - prebackupvalidation?: PreBackupValidation; -} - -/** - * Azure VM workload-specific workload item representing SQL Instance. - */ -export interface AzureVmWorkloadSQLInstanceWorkloadItem { + containerName?: string; /** - * Polymorphic Discriminator + * Container Type */ - workloadItemType: "SQLInstance"; + containerType?: string; /** - * Type of backup management to backup an item. + * Backup Management Type */ 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' + * Datasource Type */ - protectionState?: ProtectionStatus; + datasourceType?: string; /** - * Name for instance or AG + * Datasource Friendly Name */ - parentName?: string; + datasourceName?: string; /** - * Host/Cluster Name for instance or AG + * Datasource Id */ - serverName?: string; + datasourceId?: string; /** - * Indicates if workload item is auto-protectable + * Datasource Container Unique Name */ - isAutoProtectable?: boolean; + datasourceContainerName?: string; /** - * For instance or AG, indicates number of DB's present + * CoordinatorServiceStampId to be used by BCM in restore call */ - subinquireditemcount?: number; + coordinatorServiceStampId?: string; /** - * For instance or AG, indicates number of DB's to be protected + * CoordinatorServiceStampUri to be used by BCM in restore call */ - subWorkloadItemCount?: number; + coordinatorServiceStampUri?: string; /** - * Data Directory Paths for default directories + * ProtectionServiceStampId to be used by BCM in restore call */ - dataDirectoryPaths?: SQLDataDirectory[]; -} - -/** - * AzureWorkload workload-specific backup request. - */ -export interface AzureWorkloadBackupRequest { + protectionServiceStampId?: string; /** - * Polymorphic Discriminator + * ProtectionServiceStampUri to be used by BCM in restore call */ - objectType: "AzureWorkloadBackupRequest"; + protectionServiceStampUri?: string; /** - * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: - * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * Extended Information about the token like FileSpec etc. */ - backupType?: BackupType; + tokenExtendedInformation?: string; /** - * Bool for Compression setting + * Recovery point Tier Information */ - enableCompression?: boolean; + rpTierInformation?: { [propertyName: string]: string }; /** - * Backup copy will expire after the time specified (UTC). + * Recovery point information: Original SA option */ - recoveryPointExpiryTimeInUTC?: Date; -} - -/** - * Validation for inquired protectable items under a given container. - */ -export interface InquiryValidation { + rpOriginalSAOption?: boolean; /** - * Status for the Inquiry Validation. + * Recovery point information: Managed virtual machine */ - status?: string; + rpIsManagedVirtualMachine?: boolean; /** - * Error Detail in case the status is non-success. + * Recovery point information: VM size description */ - errorDetail?: ErrorDetail; + rpVMSizeDescription?: string; /** - * 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.** + * Active region name of BMS Stamp */ - readonly additionalDetail?: string; + bMSActiveRegion?: string; } /** - * Details of an inquired protectable item. + * An interface representing CrossRegionRestoreRequest. */ -export interface WorkloadInquiryDetails { - /** - * Type of the Workload such as SQL, Oracle etc. - */ - type?: string; +export interface CrossRegionRestoreRequest { /** - * Contains the protectable item Count inside this Container. + * Access details for cross region restore */ - itemCount?: number; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; /** - * Inquiry validation such as permissions and other backup validations. + * Request object for triggering restore */ - inquiryValidation?: InquiryValidation; + restoreRequest?: RestoreRequestUnion; } /** - * Details about inquired protectable items under a given container. + * An interface representing CrossRegionRestoreRequestResource. */ -export interface InquiryInfo { - /** - * Inquiry Status for this container such as - * InProgress | Failed | Succeeded - */ - status?: string; - /** - * Error Details if the Status is non-success. - */ - errorDetail?: ErrorDetail; +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Inquiry Details which will have workload specific details. - * For e.g. - For SQL and oracle this will contain different details. + * CrossRegionRestoreRequestResource properties */ - inquiryDetails?: WorkloadInquiryDetails[]; + properties?: CrossRegionRestoreRequest; } /** - * This is used to represent the various nodes of the distributed container. + * An interface representing CrrAccessTokenResource. */ -export interface DistributedNodesInfo { +export interface CrrAccessTokenResource extends Resource { /** - * Name of the node under a distributed container. - */ - nodeName?: string; - /** - * Status of this Node. - * Failed | Succeeded - */ - status?: string; - /** - * Error Details if the Status is non-success. + * CrrAccessTokenResource properties */ - errorDetail?: ErrorDetail; + properties?: CrrAccessTokenUnion; } /** - * Extended information of the container. + * Operation status extended info for Updated Recovery Point. */ -export interface AzureWorkloadContainerExtendedInfo { +export interface OperationStatusRecoveryPointExtendedInfo { /** - * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + * Polymorphic Discriminator */ - hostServerName?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Inquiry Status for the container. + * Recovery Point info with updated source snapshot URI */ - inquiryInfo?: InquiryInfo; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * List of the nodes in case of distributed container. + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - nodesList?: DistributedNodesInfo[]; + deletedBackupItemVersion?: string; } /** - * Additional information on backup engine. + * An interface representing WorkloadCrrAccessToken. */ -export interface BackupEngineExtendedInfo { - /** - * Database name of backup engine. - */ - databaseName?: string; - /** - * Number of protected items in the backup engine. - */ - protectedItemsCount?: number; +export interface WorkloadCrrAccessToken { /** - * Number of protected servers in the backup engine. + * Polymorphic Discriminator */ - protectedServersCount?: number; + objectType: "WorkloadCrrAccessToken"; /** - * Number of disks in the backup engine. + * Access token used for authentication */ - diskCount?: number; + accessTokenString?: string; /** - * Disk space used in the backup engine. + * Subscription Id of the source vault */ - usedDiskSpace?: number; + subscriptionId?: string; /** - * Disk space currently available in the backup engine. + * Resource Group name of the source vault */ - availableDiskSpace?: number; + resourceGroupName?: string; /** - * Last refresh time in the backup engine. + * Resource Name of the source vault */ - refreshedAt?: Date; + resourceName?: string; /** - * Protected instances in the backup engine. + * Resource Id of the source vault */ - azureProtectedInstances?: number; -} - -/** - * The base backup engine class. All workload specific backup engines derive from this class. - */ -export interface BackupEngineBaseResource extends Resource { + resourceId?: string; /** - * BackupEngineBaseResource properties + * Protected item container id */ - properties?: BackupEngineBaseUnion; -} - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequestResource extends Resource { + protectionContainerId?: number; /** - * BackupRequestResource properties + * Recovery Point Id */ - properties?: BackupRequestUnion; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfig { + recoveryPointId?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Recovery Point Time */ - storageModelType?: StorageType; + recoveryPointTime?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Container Unique name */ - storageType?: StorageType; + containerName?: string; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Container Type */ - storageTypeState?: StorageTypeState; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { + containerType?: string; /** - * BackupResourceConfigResource properties + * Backup Management Type */ - properties?: BackupResourceConfig; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEngineQueryObject { + backupManagementType?: string; /** - * attribute to add extended info + * Datasource Type */ - expand?: string; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEnginesQueryObject { + datasourceType?: string; /** - * Backup management type for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Datasource Friendly Name */ - backupManagementType?: BackupManagementType; + datasourceName?: string; /** - * Friendly name of the backup engine. + * Datasource Id */ - friendlyName?: string; + datasourceId?: string; /** - * Attribute to add extended info. + * Datasource Container Unique Name */ - expand?: string; -} - -/** - * The query filters that can be used with the list containers API. - */ -export interface BMSContainerQueryObject { + datasourceContainerName?: string; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * CoordinatorServiceStampId to be used by BCM in restore call */ - backupManagementType: BackupManagementType; + coordinatorServiceStampId?: string; /** - * Type of container for filter. Possible values include: 'Invalid', 'Unknown', - * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', - * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + * CoordinatorServiceStampUri to be used by BCM in restore call */ - containerType?: ContainerType; + coordinatorServiceStampUri?: string; /** - * Backup engine name + * ProtectionServiceStampId to be used by BCM in restore call */ - backupEngineName?: string; + protectionServiceStampId?: string; /** - * Fabric name for filter + * ProtectionServiceStampUri to be used by BCM in restore call */ - fabricName?: string; + protectionServiceStampUri?: string; /** - * Status of registration of this container with the Recovery Services Vault. + * Extended Information about the token like FileSpec etc. */ - status?: string; + tokenExtendedInformation?: string; /** - * Friendly name of this container. + * Recovery point Tier Information */ - friendlyName?: string; -} - -/** - * The query filters that can be used with the inquire container API. - */ -export interface BMSContainersInquiryQueryObject { + rpTierInformation?: { [propertyName: string]: string }; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery point information: Original SA option */ - backupManagementType?: BackupManagementType; + rpOriginalSAOption?: boolean; /** - * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Recovery point information: Managed virtual machine */ - workloadType?: WorkloadType; -} - -/** - * Filters to list items that can be backed up. - */ -export interface BMSPOQueryObject { + rpIsManagedVirtualMachine?: boolean; /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Recovery point information: VM size description */ - backupManagementType?: BackupManagementType; + rpVMSizeDescription?: string; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Active region name of BMS Stamp */ - workloadType?: WorkloadType; + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * Full name of the container whose Protectable Objects should be returned. + * Container Id */ - containerName?: string; + containerId?: string; /** - * Backup status query parameter. + * Policy Name */ - status?: string; + policyName?: string; /** - * Friendly name. + * Policy Id */ - friendlyName?: string; + policyId?: string; } /** - * The query filters that can be used with the refresh container API. + * Contains the possible cases for FeatureSupportRequest. */ -export interface BMSRefreshContainersQueryObject { +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + featureType: "FeatureSupportRequest"; } /** - * Filters to list items that can be backed up. + * Azure backup goal feature specific request. */ -export interface BMSWorkloadItemQueryObject { - /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - */ - workloadItemType?: WorkloadItemType; - /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - */ - workloadType?: WorkloadType; +export interface AzureBackupGoalFeatureSupportRequest { /** - * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + featureType: "AzureBackupGoals"; } /** - * Client script details for file / folder restore. + * Contains the possible cases for ProtectionIntent. */ -export interface ClientScriptForConnect { +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntent { /** - * File content of the client script for file / folder restore. + * Polymorphic Discriminator */ - scriptContent?: string; + protectionIntentItemType: "ProtectionIntent"; /** - * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - scriptExtension?: string; + backupManagementType?: BackupManagementType; /** - * OS type - Windows, Linux etc. for which this file / folder restore client script works. + * ARM ID of the resource to be backed up. */ - osType?: string; + sourceResourceId?: string; /** - * URL of Executable from where to source the content. If this is not null then ScriptContent - * should not be used + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - url?: string; + itemId?: 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. + * ID of the backup policy with which this item is backed up. */ - scriptNameSuffix?: string; + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; } /** - * Container identity information + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export interface ContainerIdentityInfo { +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; + +/** + * Azure Recovery Services Vault specific protection intent item. + */ +export interface AzureRecoveryServiceVaultProtectionIntent { /** - * Unique name of the container + * Polymorphic Discriminator */ - uniqueName?: string; + protectionIntentItemType: "RecoveryServiceVaultItem"; /** - * Protection container identity - AAD Tenant + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - aadTenantId?: string; + backupManagementType?: BackupManagementType; /** - * Protection container identity - AAD Service Principal + * ARM ID of the resource to be backed up. */ - servicePrincipalClientId?: string; + sourceResourceId?: string; /** - * Protection container identity - Audience + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - audience?: 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; } /** - * Data Protection Manager (DPM) specific backup engine. + * IaaS VM specific backup protection intent item. */ -export interface DpmBackupEngine { +export interface AzureResourceProtectionIntent { /** * Polymorphic Discriminator */ - backupEngineType: "DpmBackupEngine"; - /** - * Friendly name of the backup engine. - */ - friendlyName?: string; + protectionIntentItemType: "AzureResourceItem"; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the backed up item. 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. + * ARM ID of the resource to be backed up. */ - healthStatus?: string; + sourceResourceId?: string; /** - * Flag indicating if the backup engine be registered, once already registered. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - canReRegister?: boolean; + itemId?: string; /** - * ID of the backup engine. + * ID of the backup policy with which this item is backed up. */ - backupEngineId?: string; + policyId?: string; /** - * Backup engine version + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - dpmVersion?: string; + protectionState?: ProtectionStatus; /** - * Backup agent version + * Friendly name of the VM represented by this backup item. */ - azureBackupAgentVersion?: string; + friendlyName?: string; +} + +/** + * AzureResource(IaaS VM) Specific feature support request + */ +export interface AzureVMResourceFeatureSupportRequest { /** - * To check if backup agent upgrade available + * Polymorphic Discriminator */ - isAzureBackupAgentUpgradeAvailable?: boolean; + featureType: "AzureVMResourceBackup"; /** - * To check if backup engine upgrade available + * Size of the resource: VM size(A/D series etc) in case of IaasVM */ - isDpmUpgradeAvailable?: boolean; + vmSize?: string; /** - * Extended info of the backupengine + * SKUs (Premium/Managed etc) in case of IaasVM */ - extendedInfo?: BackupEngineExtendedInfo; + vmSku?: string; } /** - * Additional information of the DPMContainer. + * Response for feature support requests for Azure IaasVm */ -export interface DPMContainerExtendedInfo { +export interface AzureVMResourceFeatureSupportResponse { /** - * Last refresh time of the DPMContainer. + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - lastRefreshedAt?: Date; + supportStatus?: SupportStatus; } /** - * Container extended information + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -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 }; -} +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; /** - * Base class for generic container of backup items + * Azure Recovery Services Vault specific protection intent item. */ -export interface GenericContainer { +export interface AzureWorkloadAutoProtectionIntent { /** * Polymorphic Discriminator */ - containerType: "GenericContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; /** - * Type of backup management for the container. Possible values include: 'Invalid', + * Type of backup management for the backed up item. 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. + * ARM ID of the resource to be backed up. */ - registrationStatus?: string; + sourceResourceId?: string; /** - * Status of health of the container. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - healthStatus?: string; + itemId?: string; /** - * Name of the container's fabric + * ID of the backup policy with which this item is backed up. */ - fabricName?: string; + policyId?: string; /** - * Extended information (not returned in List container API calls) + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - extendedInformation?: GenericContainerExtendedInfo; + protectionState?: ProtectionStatus; } /** - * IaaS VM workload-specific backup request. + * Azure Workload SQL Auto Protection intent item. */ -export interface IaasVMBackupRequest { +export interface AzureWorkloadSQLAutoProtectionIntent { /** * Polymorphic Discriminator */ - objectType: "IaasVMBackupRequest"; + protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; /** - * Backup copy will expire after the time specified (UTC). + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryPointExpiryTimeInUTC?: Date; -} - -/** - * Restore files/folders from a backup copy of IaaS VM. - */ -export interface IaasVMILRRegistrationRequest { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * ARM ID of the resource to be backed up. */ - objectType: "IaasVMILRRegistrationRequest"; + sourceResourceId?: string; /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - recoveryPointId?: string; + itemId?: string; /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * ID of the backup policy with which this item is backed up. */ - virtualMachineId?: string; + policyId?: string; /** - * iSCSI initiator name. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - initiatorName?: string; + protectionState?: ProtectionStatus; /** - * Whether to renew existing registration with the iSCSI server. + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' */ - renewExistingRegistration?: boolean; + workloadItemType?: WorkloadItemType; } /** - * Parameters to Provision ILR API. + * The name of usage. */ -export interface ILRRequestResource extends Resource { +export interface NameInfo { /** - * ILRRequestResource properties + * Value of usage. */ - properties?: ILRRequestUnion; -} - -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { + value?: string; /** - * List of client scripts. + * Localized value of usage. */ - clientScripts?: ClientScriptForConnect[]; + localizedValue?: string; } /** - * Additional information of the container. + * Backup management usages of a vault. */ -export interface MabContainerExtendedInfo { +export interface BackupManagementUsage { /** - * Time stamp when this container was refreshed. + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' */ - lastRefreshedAt?: Date; + unit?: UsagesUnit; /** - * 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' + * Quota period of usage. */ - backupItemType?: BackupItemType; + quotaPeriod?: string; /** - * List of backup items associated with this container. + * Next reset time of usage. */ - backupItems?: string[]; + nextResetTime?: Date; /** - * Backup policy associated with this container. + * Current value of usage. */ - policyName?: string; + currentValue?: number; /** - * Latest backup status of this container. + * Limit of usage. */ - lastBackupStatus?: string; + limit?: number; + /** + * Name of usage. + */ + name?: NameInfo; } /** - * MAB workload-specific Health Details. + * BackupStatus request. */ -export interface MABContainerHealthDetails { - /** - * Health Code - */ - code?: number; +export interface BackupStatusRequest { /** - * Health Title + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - title?: string; + resourceType?: DataSourceType; /** - * Health Message + * Entire ARM resource id of the resource */ - message?: string; + resourceId?: string; /** - * Health Recommended Actions + * Protectable Item Logical Name */ - recommendations?: string[]; + poLogicalName?: string; } /** - * Container with items backed up using MAB backup engine. + * BackupStatus response. */ -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; +export interface BackupStatusResponse { /** - * Status of registration of the container with the Recovery Services Vault. + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ - registrationStatus?: string; + protectionStatus?: ProtectionStatus; /** - * Status of health of the container. + * Specifies the arm resource id of the vault */ - healthStatus?: string; + vaultId?: string; /** - * Can the container be registered one more time. + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' */ - canReRegister?: boolean; + fabricName?: FabricName; /** - * ContainerID represents the container. + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. */ - containerId?: number; + containerName?: string; /** - * Number of items backed up in this container. + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. */ - protectedItemCount?: number; + protectedItemName?: string; /** - * Agent version of this container. + * ErrorCode in case of intent failed */ - agentVersion?: string; + errorCode?: string; /** - * Additional information for this container + * ErrorMessage in case of intent failed. */ - extendedInfo?: MabContainerExtendedInfo; + errorMessage?: string; /** - * Health details on this mab container. + * Specifies the policy name which is used for protection */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + policyName?: string; /** - * Health state of mab container. + * Container registration status */ - containerHealthState?: string; + registrationStatus?: string; } /** - * Operation status job extended info. + * Query parameters to fetch backup summaries. */ -export interface OperationStatusJobExtendedInfo { - /** - * Polymorphic Discriminator - */ - objectType: "OperationStatusJobExtendedInfo"; +export interface BMSBackupSummariesQueryObject { /** - * ID of the job created for this protected item. + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' */ - jobId?: string; + type?: Type; } /** - * Operation status extended info for list of jobs. + * 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 OperationStatusJobsExtendedInfo { +export interface PreValidateEnableBackupRequest { + /** + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' + */ + resourceType?: DataSourceType; /** - * Polymorphic Discriminator + * ARM Virtual Machine Id */ - objectType: "OperationStatusJobsExtendedInfo"; + resourceId?: string; /** - * IDs of the jobs created for the protected item. + * ARM id of the Recovery Services Vault */ - jobIds?: string[]; + vaultId?: string; /** - * Stores all the failed jobs along with the corresponding error codes. + * Configuration of VM if any needs to be validated like OS type etc */ - failedJobsError?: { [propertyName: string]: string }; + properties?: string; } /** - * Operation status extended info for ILR provision action. + * Response contract for enable backup validation request */ -export interface OperationStatusProvisionILRExtendedInfo { +export interface PreValidateEnableBackupResponse { /** - * Polymorphic Discriminator + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + status?: ValidationStatus; /** - * Target details for file / folder restore. + * Response error code */ - recoveryTarget?: InstantItemRecoveryTarget; -} - -/** - * Protectable Container Class. - */ -export interface ProtectableContainerResource extends Resource { + errorCode?: string; /** - * ProtectableContainerResource properties + * Response error message */ - properties?: ProtectableContainerUnion; -} - -/** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. - */ -export interface ProtectionContainerResource extends Resource { + errorMessage?: string; /** - * ProtectionContainerResource properties + * Recommended action for user */ - properties?: ProtectionContainerUnion; + recommendation?: string; + /** + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + * for portal + */ + containerName?: string; + /** + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is + * required for portal + */ + protectedItemName?: string; } /** - * The token information details. + * Filters to list protection intent. */ -export interface TokenInformation { +export interface ProtectionIntentQueryObject { /** - * Token value. + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - token?: string; + backupManagementType?: BackupManagementType; /** - * Expiry time of token. + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - expiryTimeInUtcTicks?: number; + itemType?: IntentItemType; /** - * Security PIN + * Parent name of the intent */ - securityPIN?: string; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItemResource extends Resource { + parentName?: string; /** - * WorkloadItemResource properties + * Item name of the intent */ - properties?: WorkloadItemUnion; + itemName?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Base class for backup ProtectionIntent. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface ProtectionIntentResource extends Resource { /** - * WorkloadProtectableItemResource properties + * ProtectionIntentResource properties */ - properties?: WorkloadProtectableItemUnion; + properties?: ProtectionIntentUnion; } /** @@ -7462,13 +8079,181 @@ export interface ClientDiscoveryValueForSingleApi { /** * ShoeBox properties for the given operation. */ - properties?: ClientDiscoveryForProperties; + properties?: ClientDiscoveryForProperties; +} + +/** + * 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. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupEnginesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; } /** * Optional Parameters. */ -export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7478,7 +8263,7 @@ export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7488,7 +8273,7 @@ export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7498,7 +8283,7 @@ export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7512,17 +8297,21 @@ export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase /** * Optional Parameters. */ -export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7536,7 +8325,7 @@ export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7550,21 +8339,27 @@ export interface BackupProtectionIntentListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** - * skipToken Filter. + * OData filter options. */ - skipToken?: string; + filter?: string; } /** * Optional Parameters. */ -export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7578,7 +8373,7 @@ export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7592,7 +8387,7 @@ export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBas /** * Optional Parameters. */ -export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7602,7 +8397,7 @@ export interface ProtectableContainersListOptionalParams extends msRest.RequestO /** * Optional Parameters. */ -export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7612,17 +8407,21 @@ export interface ProtectionContainersInquireOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7636,7 +8435,7 @@ export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOpt /** * Optional Parameters. */ -export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7650,11 +8449,29 @@ export interface BackupProtectableItemsListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; } /** @@ -7696,22 +8513,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 @@ -7752,6 +8553,22 @@ export interface WorkloadProtectableItemResourceList 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 * Operations List response which contains list of available APIs. @@ -7765,12 +8582,29 @@ export interface ClientDiscoveryResponse extends Array + */ + 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/default", + 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..9d39879427c6 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.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/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 { + return this.beginGet(vaultName,resourceGroupName,operationId,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * 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 + */ + beginGet(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + vaultName, + resourceGroupName, + operationId, + options + }, + beginGetOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginGetOperationSpec: 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..9ac22a3ea19d 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, @@ -142,7 +141,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -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..522d7cf73c8e 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, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { 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..8e9290a43179 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 @@ -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..91b7c2923f9f 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 @@ -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..94401e6c4091 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, @@ -105,7 +104,7 @@ const listOperationSpec: msRest.OperationSpec = { 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..2b33e4838bfe 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, @@ -105,7 +104,7 @@ const listOperationSpec: msRest.OperationSpec = { 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..422090c5aed8 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, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { 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..279c2a1427a1 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, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { 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..779e3f685e6a 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.apiVersion2, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2, + 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..5d2b83f87afb 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.apiVersion2 ], 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..d667e5042194 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.apiVersion2, 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..ee09a68b8f45 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, @@ -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..82e14cb5d8bc 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 @@ -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..23ad043b73d2 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.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 msRestAzure from "@azure/ms-rest-azure-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 { + return this.beginGet(azureRegion,operationId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + beginGet(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + azureRegion, + operationId, + options + }, + beginGetOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginGetOperationSpec: 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..14ffc6988c77 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 @@ -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..c91e18bc8952 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.apiVersion2 ], 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..38cc97a1e556 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -1,15 +1,17 @@ /* - * 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 "./backupResourceVaultConfigs"; +export * from "./backupResourceEncryptionConfigs"; +export * from "./privateEndpointConnectionOperations"; +export * from "./privateEndpointOperations"; +export * from "./bMSPrepareDataMoveOperationResult"; export * from "./protectedItems"; export * from "./protectedItemOperationResults"; export * from "./recoveryPoints"; @@ -25,11 +27,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 +42,18 @@ export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; +export * from "./aadProperties"; +export * from "./crossRegionRestore"; +export * from "./backupCrrJobDetails"; +export * from "./backupCrrJobs"; +export * from "./crrOperationResults"; +export * from "./crrOperationStatus"; export * from "./backupResourceStorageConfigs"; +export * from "./recoveryPointsCrr"; +export * from "./backupProtectedItemsCrr"; +export * from "./protectionIntentOperations"; +export * from "./backupStatus"; +export * from "./featureSupport"; +export * from "./backupProtectionIntent"; +export * from "./backupUsageSummaries"; export * from "./operations"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts index 63983e7812a3..8006a050e759 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 @@ -166,7 +165,7 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -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..cc37f1eb9e17 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 @@ -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..4b3140a4d111 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 @@ -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..432f4d66ea66 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 @@ -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..22a36c13b14e 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 @@ -73,7 +72,7 @@ const exportMethodOperationSpec: msRest.OperationSpec = { 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..11bac45a3ce2 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 @@ -77,7 +76,7 @@ const validateOperationSpec: msRest.OperationSpec = { 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..1b2a56510e81 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.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], 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..8d3664c26fd4 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 @@ -162,7 +161,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, 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..5a0e41874b96 --- /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..10eedab81070 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, @@ -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..969a7422c7f2 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 @@ -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..5f5d5194aa4c 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 @@ -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..0c747365d47d 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 @@ -193,7 +192,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -222,7 +221,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -258,7 +257,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts index fbfa32adf288..97b771ccda75 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 @@ -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..d405484a203c 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 @@ -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..142a0c99c5cb 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 @@ -268,7 +267,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -295,7 +294,7 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -356,7 +355,7 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -381,7 +380,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..8b0b7b2ac5d7 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.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +267,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -302,7 +301,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], 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..fc7098d4c045 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); } } @@ -166,7 +164,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -192,7 +190,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -216,7 +214,7 @@ 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}", urlParameters: [ @@ -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..67db8fde3923 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 @@ -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..636a255a49cf 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 @@ -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..445a5937ddcd 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, @@ -169,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -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/restores.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts index 4803b35f92f5..f7781c8774e0 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 @@ -99,7 +98,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..d38dc76b7d00 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 @@ -73,7 +72,7 @@ const getOperationSpec: msRest.OperationSpec = { 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..a0d2be395b74 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,11 @@ import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupCli class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups - privateEndpointConnection: operations.PrivateEndpointConnectionOperations; 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 +38,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,7 +53,20 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectableItems: operations.BackupProtectableItems; backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; + aadProperties: operations.AadProperties; + crossRegionRestore: operations.CrossRegionRestore; + backupCrrJobDetails: operations.BackupCrrJobDetails; + backupCrrJobs: operations.BackupCrrJobs; + crrOperationResults: operations.CrrOperationResults; + crrOperationStatus: operations.CrrOperationStatus; backupResourceStorageConfigs: operations.BackupResourceStorageConfigs; + recoveryPointsCrr: operations.RecoveryPointsCrr; + backupProtectedItemsCrr: operations.BackupProtectedItemsCrr; + protectionIntent: operations.ProtectionIntentOperations; + backupStatus: operations.BackupStatus; + featureSupport: operations.FeatureSupport; + backupProtectionIntent: operations.BackupProtectionIntent; + backupUsageSummaries: operations.BackupUsageSummaries; operations: operations.Operations; /** @@ -66,8 +77,11 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); - this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(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 +97,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 +112,142 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectableItems = new operations.BackupProtectableItems(this); this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(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.recoveryPointsCrr = new operations.RecoveryPointsCrr(this); + this.backupProtectedItemsCrr = new operations.BackupProtectedItemsCrr(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); } /** - * @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()); + } + + /** + * 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); + } } // 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 +261,69 @@ 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 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