diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c9f0c165e927..5a006bde1f2d 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 - Authentication, client creation and getOperationStatus as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -37,8 +37,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const client = new RecoveryServicesBackupClient(creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + const operationId = "testoperationId"; + client.getOperationStatus(vaultName, resourceGroupName, operationId).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript. +#### browser - Authentication, client creation and getOperationStatus as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -83,8 +83,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(res.creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + const operationId = "testoperationId"; + client.getOperationStatus(vaultName, resourceGroupName, operationId).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { 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..a0f7822a4e6e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + 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..4b1232c77764 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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..a0f7822a4e6e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + 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..1cbab9840ed3 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -0,0 +1,223 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + 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..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 0923aafa73b5..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts index e2b2befc32de..8e62c3e4caf7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts @@ -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..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 0923aafa73b5..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, 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..1cbab9840ed3 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -0,0 +1,223 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + 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..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 0923aafa73b5..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 0923aafa73b5..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index 6eeea71e42b2..a0f7822a4e6e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -100,8 +102,13 @@ export { BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -118,6 +125,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -125,7 +133,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +148,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -155,6 +163,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -176,6 +186,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index 793cf3485a46..c7ae660d2f6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -102,6 +104,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -127,7 +135,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -178,6 +186,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 0923aafa73b5..9c3d4bcf8e58 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -103,6 +105,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +134,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -184,6 +192,7 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index 6eeea71e42b2..7532073f7c3b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -102,6 +104,12 @@ export { BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,7 +133,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +148,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -176,6 +184,7 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, 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..c7af6d00ed44 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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 +} 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..be82874da8ed --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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..cda959f570e3 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index c210583ac571..fce0a64300f4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -11,161 +11,6 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; -/** - * 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; - -/** - * 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; -} - -/** - * The Private Endpoint network resource that is linked to the Private Endpoint connection - */ -export interface PrivateEndpoint { - /** - * Gets or sets id - */ - id?: string; -} - -/** - * Private Link Service Connection State - */ -export interface PrivateLinkServiceConnectionState { - /** - * Gets or sets the status. Possible values include: 'Pending', 'Approved', 'Rejected', - * 'Disconnected' - */ - status?: PrivateEndpointConnectionStatus; - /** - * Gets or sets description - */ - description?: string; - /** - * Gets or sets actions required - */ - actionRequired?: string; -} - -/** - * Private Endpoint Connection Response Properties - */ -export interface PrivateEndpointConnection { - /** - * Gets or sets provisioning state of the private endpoint connection. Possible values include: - * 'Succeeded', 'Deleting', 'Failed', 'Pending' - */ - provisioningState?: ProvisioningState; - /** - * Gets or sets private endpoint associated with the private endpoint connection - */ - privateEndpoint?: PrivateEndpoint; - /** - * Gets or sets private link service connection state - */ - 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 - */ -export interface PrivateEndpointConnectionResource extends Resource { - /** - * PrivateEndpointConnectionResource properties - */ - properties?: PrivateEndpointConnection; -} - /** * The resource management error additional info. */ @@ -183,9 +28,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 +50,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 +58,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 +94,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 +288,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 +296,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 +495,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 +682,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 +796,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 +910,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 +969,7 @@ export interface AzureIaaSVMErrorInfo { /** * Azure IaaS VM workload-specific Health Details. */ -export interface AzureIaaSVMHealthDetails extends HealthDetails { +export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails { } /** @@ -1736,20 +1614,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 +1736,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 +1858,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 +1980,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 +2141,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 +2167,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 +2288,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 +2386,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 +2413,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 +2440,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; @@ -2755,11 +2615,13 @@ export interface SQLDataDirectoryMapping { */ export interface BackupResourceVaultConfig { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ storageModelType?: StorageType; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ storageType?: StorageType; /** @@ -2778,29 +2640,62 @@ export interface BackupResourceVaultConfig { } /** - * Backup resource vault config details. + * ARM Resource. */ -export interface BackupResourceVaultConfigResource extends Resource { +export interface Resource extends BaseResource { /** - * BackupResourceVaultConfigResource properties + * Resource Id represents the complete path to the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: BackupResourceVaultConfig; -} - -/** - * BEK is bitlocker encryption key. - */ -export interface BEKDetails { + readonly id?: string; /** - * Secret is BEK. + * Resource name associated with the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - secretUrl?: string; + readonly name?: string; /** - * ID of the Key Vault where this Secret is stored. + * 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.** */ - secretVaultId?: string; + readonly type?: string; /** - * BEK data. + * Resource location. + */ + location?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * Optional ETag. + */ + eTag?: string; +} + +/** + * Backup resource vault config details. + */ +export interface BackupResourceVaultConfigResource extends Resource { + /** + * BackupResourceVaultConfigResource properties + */ + properties?: BackupResourceVaultConfig; +} + +/** + * BEK is bitlocker encryption key. + */ +export interface BEKDetails { + /** + * Secret is BEK. + */ + secretUrl?: string; + /** + * ID of the Key Vault where this Secret is stored. + */ + secretVaultId?: string; + /** + * BEK data. */ secretData?: string; } @@ -2819,7 +2714,7 @@ export interface BMSRPQueryObject { endDate?: Date; /** * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', - * 'FullAndDifferential', 'All' + * 'FullAndDifferential', 'All', 'Incremental' */ restorePointQueryType?: RestorePointQueryType; /** @@ -4085,6 +3980,96 @@ export interface OperationResultInfo { jobList?: string[]; } +/** + * Prepare DataMove Request + */ +export interface PrepareDataMoveRequest { + /** + * ARM Id of target vault + */ + targetResourceId: string; + /** + * Target Region + */ + targetRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Source Container ArmIds + * This needs to be populated only if DataMoveLevel is set to container + */ + sourceContainerArmIds?: string[]; + /** + * Ignore the artifacts which are already moved. + */ + ignoreMoved?: boolean; +} + +/** + * Contains the possible cases for VaultStorageConfigOperationResultResponse. + */ +export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; + +/** + * Operation result response for Vault Storage Config + */ +export interface VaultStorageConfigOperationResultResponse { + /** + * Polymorphic Discriminator + */ + objectType: "VaultStorageConfigOperationResultResponse"; +} + +/** + * Prepare DataMove Response + */ +export interface PrepareDataMoveResponse { + /** + * Polymorphic Discriminator + */ + objectType: "PrepareDataMoveResponse"; + /** + * Co-relationId for move operation + */ + correlationId?: string; + /** + * Source Vault Properties + */ + sourceVaultProperties?: { [propertyName: string]: string }; +} + +/** + * Trigger DataMove Request + */ +export interface TriggerDataMoveRequest { + /** + * ARM Id of source vault + */ + sourceResourceId: string; + /** + * Source Region + */ + sourceRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Correlation Id + */ + correlationId: string; + /** + * Source Container ArmIds + */ + sourceContainerArmIds?: string[]; + /** + * Pause GC + */ + pauseGC?: boolean; +} + /** * This is the base class for operation result responses. */ @@ -4345,673 +4330,1125 @@ export interface ValidateOperationsResponse { } /** - * Contains the possible cases for FeatureSupportRequest. - */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; - -/** - * Base class for feature request + * The resource management error response. */ -export interface FeatureSupportRequest { +export interface ErrorResponse { /** - * Polymorphic Discriminator + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - featureType: "FeatureSupportRequest"; + 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[]; } /** - * Azure backup goal feature specific request. + * Error information associated with operation status call. */ -export interface AzureBackupGoalFeatureSupportRequest { +export interface OperationStatusError { /** - * Polymorphic Discriminator + * Error code of the operation failure. */ - featureType: "AzureBackupGoals"; + code?: string; + /** + * Error message displayed if the operation failure. + */ + message?: string; } /** - * Contains the possible cases for ProtectionIntent. + * Contains the possible cases for OperationStatusExtendedInfo. */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; /** - * Base class for backup ProtectionIntent. + * Base class for additional information of operation status. */ -export interface ProtectionIntent { +export interface OperationStatusExtendedInfo { /** * Polymorphic Discriminator */ - protectionIntentItemType: "ProtectionIntent"; + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * ID of the operation. */ - backupManagementType?: BackupManagementType; + id?: string; /** - * ARM ID of the resource to be backed up. + * Name of the operation. */ - sourceResourceId?: string; + name?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' */ - itemId?: string; + status?: OperationStatusValues; /** - * ID of the backup policy with which this item is backed up. + * Operation start time. Format: ISO-8601. */ - policyId?: string; + startTime?: Date; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Operation end time. Format: ISO-8601. */ - protectionState?: ProtectionStatus; + endTime?: Date; + /** + * Error information related to this operation. + */ + error?: OperationStatusError; + /** + * Additional information associated with this operation. + */ + properties?: OperationStatusExtendedInfoUnion; } /** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. + * An interface representing AADProperties. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; +} /** - * Azure Recovery Services Vault specific protection intent item. + * An interface representing AADPropertiesResource. */ -export interface AzureRecoveryServiceVaultProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "RecoveryServiceVaultItem"; +export interface AADPropertiesResource extends Resource { /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * AADPropertiesResource properties */ - backupManagementType?: BackupManagementType; + properties?: AADProperties; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfig { /** - * ARM ID of the resource to be backed up. + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - sourceResourceId?: string; + storageModelType?: StorageType; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - itemId?: string; + storageType?: StorageType; /** - * ID of the backup policy with which this item is backed up. + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' */ - policyId?: string; + storageTypeState?: StorageTypeState; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Opt in details of Cross Region Restore feature. */ - protectionState?: ProtectionStatus; + crossRegionRestoreFlag?: boolean; } /** - * IaaS VM specific backup protection intent item. + * Request object for fetching CRR jobs. */ -export interface AzureResourceProtectionIntent { +export interface CrrJobRequest { /** - * Polymorphic Discriminator + * Entire ARM resource id of the resource */ - protectionIntentItemType: "AzureResourceItem"; + resourceId?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Job Name of the job to be fetched */ - backupManagementType?: BackupManagementType; + jobName?: string; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequestResource extends Resource { /** - * ARM ID of the resource to be backed up. + * CrrJobRequestResource properties */ - sourceResourceId?: string; + properties?: CrrJobRequest; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * BackupResourceConfigResource properties */ - itemId?: string; + properties?: BackupResourceConfig; +} + +/** + * Client script details for file / folder restore. + */ +export interface ClientScriptForConnect { /** - * ID of the backup policy with which this item is backed up. + * File content of the client script for file / folder restore. */ - policyId?: string; + scriptContent?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. */ - protectionState?: ProtectionStatus; + scriptExtension?: string; /** - * Friendly name of the VM represented by this backup item. + * OS type - Windows, Linux etc. for which this file / folder restore client script works. */ - friendlyName?: string; + 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; } /** - * AzureResource(IaaS VM) Specific feature support request + * Container level access token for CRR */ -export interface AzureVMResourceFeatureSupportRequest { +export interface CrrAccessToken { /** - * Polymorphic Discriminator + * Access token used for authentication */ - featureType: "AzureVMResourceBackup"; + accessTokenString?: string; /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * Subscription Id of the source vault */ - vmSize?: string; + subscriptionId?: string; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * Resource Group name of the source vault */ - vmSku?: string; -} - -/** - * Response for feature support requests for Azure IaasVm - */ -export interface AzureVMResourceFeatureSupportResponse { + resourceGroupName?: string; /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * Resource Name of the source vault */ - supportStatus?: SupportStatus; -} - -/** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. - */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. - */ -export interface AzureWorkloadAutoProtectionIntent { + resourceName?: string; /** - * Polymorphic Discriminator + * Resource Id of the source vault */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + resourceId?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery Point Id */ - backupManagementType?: BackupManagementType; + recoveryPointId?: string; /** - * ARM ID of the resource to be backed up. + * Recovery Point Time */ - sourceResourceId?: string; + recoveryPointTime?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Container Unique name */ - itemId?: string; + containerName?: string; /** - * ID of the backup policy with which this item is backed up. + * Container Type */ - policyId?: string; + containerType?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Backup Management Type */ - protectionState?: ProtectionStatus; -} - -/** - * Azure Workload SQL Auto Protection intent item. - */ -export interface AzureWorkloadSQLAutoProtectionIntent { + backupManagementType?: string; /** - * Polymorphic Discriminator + * Datasource Type */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + datasourceType?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Datasource Friendly Name */ - backupManagementType?: BackupManagementType; + datasourceName?: string; /** - * ARM ID of the resource to be backed up. + * Datasource Id */ - sourceResourceId?: string; + datasourceId?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Datasource Container Unique Name */ - itemId?: string; + datasourceContainerName?: string; /** - * ID of the backup policy with which this item is backed up. + * CoordinatorServiceStampId to be used by BCM in restore call */ - policyId?: string; + coordinatorServiceStampId?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * CoordinatorServiceStampUri to be used by BCM in restore call */ - protectionState?: ProtectionStatus; + coordinatorServiceStampUri?: string; /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' + * ProtectionServiceStampId to be used by BCM in restore call */ - workloadItemType?: WorkloadItemType; -} - -/** - * The name of usage. - */ -export interface NameInfo { + protectionServiceStampId?: string; /** - * Value of usage. + * ProtectionServiceStampUri to be used by BCM in restore call */ - value?: string; + protectionServiceStampUri?: string; /** - * Localized value of usage. + * Extended Information about the token like FileSpec etc. */ - localizedValue?: string; + tokenExtendedInformation?: string; } /** - * Backup management usages of a vault. + * An interface representing CrossRegionRestoreRequest. */ -export interface BackupManagementUsage { - /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' - */ - unit?: UsagesUnit; - /** - * Quota period of usage. - */ - quotaPeriod?: string; +export interface CrossRegionRestoreRequest { /** - * Next reset time of usage. + * Access details for cross region restore */ - nextResetTime?: Date; + crossRegionRestoreAccessDetails?: CrrAccessToken; /** - * Current value of usage. + * Request object for triggering restore */ - currentValue?: number; + restoreRequest?: RestoreRequestUnion; +} + +/** + * An interface representing CrossRegionRestoreRequestResource. + */ +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Limit of usage. + * CrossRegionRestoreRequestResource properties */ - limit?: number; + properties?: CrossRegionRestoreRequest; +} + +/** + * Container level access token for CRR + */ +export interface CrrAccessTokenResource extends Resource { /** - * Name of usage. + * CrrAccessTokenResource properties */ - name?: NameInfo; + properties?: CrrAccessToken; } /** - * BackupStatus request. + * Target details for file / folder restore. */ -export interface BackupStatusRequest { +export interface InstantItemRecoveryTarget { /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * List of client scripts. */ - resourceType?: DataSourceType; + clientScripts?: ClientScriptForConnect[]; +} + +/** + * Operation status job extended info. + */ +export interface OperationStatusJobExtendedInfo { /** - * Entire ARM resource id of the resource + * Polymorphic Discriminator */ - resourceId?: string; + objectType: "OperationStatusJobExtendedInfo"; /** - * Protectable Item Logical Name + * ID of the job created for this protected item. */ - poLogicalName?: string; + jobId?: string; } /** - * BackupStatus response. + * Operation status extended info for list of jobs. */ -export interface BackupStatusResponse { - /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionStatus?: ProtectionStatus; +export interface OperationStatusJobsExtendedInfo { /** - * Specifies the arm resource id of the vault + * Polymorphic Discriminator */ - vaultId?: string; + objectType: "OperationStatusJobsExtendedInfo"; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * IDs of the jobs created for the protected item. */ - fabricName?: FabricName; + jobIds?: string[]; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Stores all the failed jobs along with the corresponding error codes. */ - containerName?: string; + failedJobsError?: { [propertyName: string]: string }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Polymorphic Discriminator */ - protectedItemName?: string; + objectType: "OperationStatusProvisionILRExtendedInfo"; /** - * ErrorCode in case of intent failed + * Target details for file / folder restore. */ - errorCode?: string; + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Operation status extended info for Updated Recovery Point. + */ +export interface OperationStatusRecoveryPointExtendedInfo { /** - * ErrorMessage in case of intent failed. + * Polymorphic Discriminator */ - errorMessage?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Specifies the policy name which is used for protection + * Recovery Point info with updated source snapshot URI */ - policyName?: string; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Container registration status + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - registrationStatus?: string; + deletedBackupItemVersion?: string; } /** - * Query parameters to fetch backup summaries. + * The Private Endpoint network resource that is linked to the Private Endpoint connection */ -export interface BMSBackupSummariesQueryObject { +export interface PrivateEndpoint { /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Gets or sets id */ - type?: Type; + id?: string; } /** - * 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. + * Private Link Service Connection State */ -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; +export interface PrivateLinkServiceConnectionState { /** - * ARM Virtual Machine Id + * Gets or sets the status. Possible values include: 'Pending', 'Approved', 'Rejected', + * 'Disconnected' */ - resourceId?: string; + status?: PrivateEndpointConnectionStatus; /** - * ARM id of the Recovery Services Vault + * Gets or sets description */ - vaultId?: string; + description?: string; /** - * Configuration of VM if any needs to be validated like OS type etc + * Gets or sets actions required */ - properties?: string; + actionRequired?: string; } /** - * Response contract for enable backup validation request + * Private Endpoint Connection Response Properties */ -export interface PreValidateEnableBackupResponse { - /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' - */ - status?: ValidationStatus; +export interface PrivateEndpointConnection { /** - * Response error code + * Gets or sets provisioning state of the private endpoint connection. Possible values include: + * 'Succeeded', 'Deleting', 'Failed', 'Pending' */ - errorCode?: string; + provisioningState?: ProvisioningState; /** - * Response error message + * Gets or sets private endpoint associated with the private endpoint connection */ - errorMessage?: string; + privateEndpoint?: PrivateEndpoint; /** - * Recommended action for user + * Gets or sets private link service connection state */ - 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; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } /** - * Filters to list protection intent. + * Private Endpoint Connection Response Properties */ -export interface ProtectionIntentQueryObject { - /** - * 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', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' - */ - itemType?: IntentItemType; +export interface PrivateEndpointConnectionResource extends Resource { /** - * Parent name of the intent + * PrivateEndpointConnectionResource properties */ - parentName?: string; + properties?: PrivateEndpointConnection; +} + +/** + * Contains the possible cases for FeatureSupportRequest. + */ +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Item name of the intent + * Polymorphic Discriminator */ - itemName?: string; + featureType: "FeatureSupportRequest"; } /** - * Base class for backup ProtectionIntent. + * Azure backup goal feature specific request. */ -export interface ProtectionIntentResource extends Resource { +export interface AzureBackupGoalFeatureSupportRequest { /** - * ProtectionIntentResource properties + * Polymorphic Discriminator */ - properties?: ProtectionIntentUnion; + featureType: "AzureBackupGoals"; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for ProtectionIntent. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Base class for backup ProtectionIntent. */ -export interface ProtectionContainer { +export interface ProtectionIntent { /** * Polymorphic Discriminator */ - containerType: "ProtectionContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectionIntentItemType: "ProtectionIntent"; /** - * 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; + /** + * 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; } /** - * Contains the possible cases for DpmContainer. + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; /** - * DPM workload-specific protection container. + * Azure Recovery Services Vault specific protection intent item. */ -export interface DpmContainer { +export interface AzureRecoveryServiceVaultProtectionIntent { /** * Polymorphic Discriminator */ - containerType: "DPMContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectionIntentItemType: "RecoveryServiceVaultItem"; /** - * 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. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * Specifies whether the container is re-registrable. - */ - canReRegister?: boolean; - /** - * ID of container. - */ - containerId?: string; - /** - * Number of protected items in the BackupEngine - */ - protectedItemCount?: number; - /** - * Backup engine Agent version - */ - dpmAgentVersion?: string; - /** - * List of BackupEngines protecting the container + * ARM ID of the resource to be backed up. */ - dpmServers?: string[]; + sourceResourceId?: string; /** - * To check if upgrade available + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - upgradeAvailable?: boolean; + itemId?: string; /** - * Protection status of the container. + * ID of the backup policy with which this item is backed up. */ - protectionStatus?: string; + policyId?: string; /** - * Extended Info of the container. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - extendedInfo?: DPMContainerExtendedInfo; + protectionState?: ProtectionStatus; } /** - * AzureBackupServer (DPMVenus) workload-specific protection container. + * IaaS VM specific backup protection intent item. */ -export interface AzureBackupServerContainer { +export interface AzureResourceProtectionIntent { /** * Polymorphic Discriminator */ - containerType: "AzureBackupServerContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectionIntentItemType: "AzureResourceItem"; /** - * 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. - */ - registrationStatus?: string; - /** - * Status of health of the container. + * ARM ID of the resource to be backed up. */ - healthStatus?: string; + sourceResourceId?: string; /** - * Specifies whether the container is re-registrable. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - canReRegister?: boolean; + itemId?: string; /** - * ID of container. + * ID of the backup policy with which this item is backed up. */ - containerId?: string; + policyId?: string; /** - * Number of protected items in the BackupEngine + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - protectedItemCount?: number; + protectionState?: ProtectionStatus; /** - * Backup engine Agent version + * Friendly name of the VM represented by this backup item. */ - dpmAgentVersion?: string; + friendlyName?: string; +} + +/** + * AzureResource(IaaS VM) Specific feature support request + */ +export interface AzureVMResourceFeatureSupportRequest { /** - * List of BackupEngines protecting the container + * Polymorphic Discriminator */ - dpmServers?: string[]; + featureType: "AzureVMResourceBackup"; /** - * To check if upgrade available + * Size of the resource: VM size(A/D series etc) in case of IaasVM */ - upgradeAvailable?: boolean; + vmSize?: string; /** - * Protection status of the container. + * SKUs (Premium/Managed etc) in case of IaasVM */ - protectionStatus?: string; + vmSku?: string; +} + +/** + * Response for feature support requests for Azure IaasVm + */ +export interface AzureVMResourceFeatureSupportResponse { /** - * Extended Info of the container. + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - extendedInfo?: DPMContainerExtendedInfo; + supportStatus?: SupportStatus; } /** - * Contains the possible cases for BackupEngineBase. + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; /** - * The base backup engine class. All workload specific backup engines derive from this class. + * Azure Recovery Services Vault specific protection intent item. */ -export interface BackupEngineBase { +export interface AzureWorkloadAutoProtectionIntent { /** * Polymorphic Discriminator */ - backupEngineType: "BackupEngineBase"; - /** - * Friendly name of the backup engine. - */ - friendlyName?: string; + protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; /** - * 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. + * ARM ID of the resource to be backed up. */ - registrationStatus?: string; + sourceResourceId?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - backupEngineState?: string; + itemId?: string; /** - * Backup status of the backup engine. + * ID of the backup policy with which this item is backed up. */ - healthStatus?: string; + policyId?: string; /** - * Flag indicating if the backup engine be registered, once already registered. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - canReRegister?: boolean; + protectionState?: ProtectionStatus; +} + +/** + * Azure Workload SQL Auto Protection intent item. + */ +export interface AzureWorkloadSQLAutoProtectionIntent { /** - * ID of the backup engine. + * Polymorphic Discriminator */ - backupEngineId?: string; + protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; /** - * Backup engine version - */ + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * ARM ID of the resource to be backed up. + */ + sourceResourceId?: string; + /** + * 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. + */ + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' + */ + workloadItemType?: WorkloadItemType; +} + +/** + * The name of usage. + */ +export interface NameInfo { + /** + * Value of usage. + */ + value?: string; + /** + * Localized value of usage. + */ + localizedValue?: string; +} + +/** + * Backup management usages of a vault. + */ +export interface BackupManagementUsage { + /** + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' + */ + unit?: UsagesUnit; + /** + * Quota period of usage. + */ + quotaPeriod?: string; + /** + * Next reset time of usage. + */ + nextResetTime?: Date; + /** + * Current value of usage. + */ + currentValue?: number; + /** + * Limit of usage. + */ + limit?: number; + /** + * Name of usage. + */ + name?: NameInfo; +} + +/** + * BackupStatus request. + */ +export interface BackupStatusRequest { + /** + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + resourceType?: DataSourceType; + /** + * Entire ARM resource id of the resource + */ + resourceId?: string; + /** + * Protectable Item Logical Name + */ + poLogicalName?: string; +} + +/** + * BackupStatus response. + */ +export interface BackupStatusResponse { + /** + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionStatus?: ProtectionStatus; + /** + * Specifies the arm resource id of the vault + */ + vaultId?: string; + /** + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + */ + fabricName?: FabricName; + /** + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. + */ + containerName?: string; + /** + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + */ + protectedItemName?: string; + /** + * ErrorCode in case of intent failed + */ + errorCode?: string; + /** + * ErrorMessage in case of intent failed. + */ + errorMessage?: string; + /** + * Specifies the policy name which is used for protection + */ + policyName?: string; + /** + * Container registration status + */ + registrationStatus?: string; +} + +/** + * Query parameters to fetch backup summaries. + */ +export interface BMSBackupSummariesQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + */ + 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 { + /** + * 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; + /** + * ARM Virtual Machine Id + */ + resourceId?: string; + /** + * ARM id of the Recovery Services Vault + */ + vaultId?: string; + /** + * Configuration of VM if any needs to be validated like OS type etc + */ + properties?: string; +} + +/** + * Response contract for enable backup validation request + */ +export interface PreValidateEnableBackupResponse { + /** + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + */ + status?: ValidationStatus; + /** + * Response error code + */ + errorCode?: string; + /** + * Response error message + */ + errorMessage?: string; + /** + * Recommended action for user + */ + 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; +} + +/** + * Filters to list protection intent. + */ +export interface ProtectionIntentQueryObject { + /** + * 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', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' + */ + itemType?: IntentItemType; + /** + * Parent name of the intent + */ + parentName?: string; + /** + * Item name of the intent + */ + itemName?: string; +} + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntentResource extends Resource { + /** + * ProtectionIntentResource properties + */ + properties?: ProtectionIntentUnion; +} + +/** + * Contains the possible cases for ProtectionContainer. + */ +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainer { + /** + * Polymorphic Discriminator + */ + containerType: "ProtectionContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; +} + +/** + * Contains the possible cases for DpmContainer. + */ +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; + +/** + * DPM workload-specific protection container. + */ +export interface DpmContainer { + /** + * Polymorphic Discriminator + */ + containerType: "DPMContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Specifies whether the container is re-registrable. + */ + canReRegister?: boolean; + /** + * ID of container. + */ + containerId?: string; + /** + * Number of protected items in the BackupEngine + */ + protectedItemCount?: number; + /** + * Backup engine Agent version + */ + dpmAgentVersion?: string; + /** + * List of BackupEngines protecting the container + */ + dpmServers?: string[]; + /** + * To check if upgrade available + */ + upgradeAvailable?: boolean; + /** + * Protection status of the container. + */ + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; +} + +/** + * AzureBackupServer (DPMVenus) workload-specific protection container. + */ +export interface AzureBackupServerContainer { + /** + * Polymorphic Discriminator + */ + containerType: "AzureBackupServerContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Specifies whether the container is re-registrable. + */ + canReRegister?: boolean; + /** + * ID of container. + */ + containerId?: string; + /** + * Number of protected items in the BackupEngine + */ + protectedItemCount?: number; + /** + * Backup engine Agent version + */ + dpmAgentVersion?: string; + /** + * List of BackupEngines protecting the container + */ + dpmServers?: string[]; + /** + * To check if upgrade available + */ + upgradeAvailable?: boolean; + /** + * Protection status of the container. + */ + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; +} + +/** + * 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. + */ +export interface BackupEngineBase { + /** + * Polymorphic Discriminator + */ + backupEngineType: "BackupEngineBase"; + /** + * 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 @@ -6590,7 +7027,7 @@ export interface AzureWorkloadBackupRequest { objectType: "AzureWorkloadBackupRequest"; /** * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: - * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' */ backupType?: BackupType; /** @@ -6755,35 +7192,6 @@ export interface BackupRequestResource extends Resource { properties?: BackupRequestUnion; } -/** - * The resource storage details. - */ -export interface BackupResourceConfig { - /** - * 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; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { - /** - * BackupResourceConfigResource properties - */ - properties?: BackupResourceConfig; -} - /** * Query parameters to fetch list of backup engines. */ @@ -6935,35 +7343,6 @@ export interface BMSWorkloadItemQueryObject { 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 */ @@ -7160,16 +7539,6 @@ export interface ILRRequestResource extends Resource { properties?: ILRRequestUnion; } -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { - /** - * List of client scripts. - */ - clientScripts?: ClientScriptForConnect[]; -} - /** * Additional information of the container. */ @@ -7277,52 +7646,6 @@ export interface MabContainer { containerHealthState?: string; } -/** - * 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. */ @@ -7533,6 +7856,44 @@ export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOp skipToken?: string; } +/** + * Optional Parameters. + */ +export interface BackupCrrJobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsCrrListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectedItemsCrrListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + /** * Optional Parameters. */ @@ -7765,47 +8126,30 @@ 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.apiVersion2 + ], + 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..4c695bd43464 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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..f392a5812a51 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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..e74598fa8ade --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2, + 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 + ], + 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..8d0956fd2dcd 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -142,7 +142,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter, Parameters.skipToken ], @@ -170,7 +170,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.backupEngineName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts index c36ed2684408..9ed8b3b4aeb4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -101,7 +101,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts index 7959e5f3dab7..418b289b40b0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -83,7 +83,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..6b36a10895f7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -82,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..e06da0bb47c2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -105,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts index 2b45cb7cefea..3f9bff9073e5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -105,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts index 38761446d87f..e4f6fa798afa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -101,7 +101,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], 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..47038f24f583 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -0,0 +1,141 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2, + 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 + ], + 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..1a00b0d3bdee 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -101,7 +101,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts index d0aa34265091..f1e8d6f768ff 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -101,7 +101,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts index bc7bed81ac0b..ce0dbff5d4ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -144,7 +144,7 @@ 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, @@ -161,7 +161,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,7 +169,7 @@ 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, @@ -193,7 +193,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,7 +201,7 @@ 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, @@ -223,7 +223,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..b6f2696b9d31 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -151,7 +151,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -176,7 +176,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -208,7 +208,7 @@ const putOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts index e02fed8f3ff8..99779cfa3f02 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -69,7 +69,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], 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..580de1dcb087 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -73,7 +73,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, 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..de19a654d692 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -115,7 +115,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts index 57896dba992a..20f7e1cd8ce2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -94,7 +94,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..3e0f6d68c71c --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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..e1f6351d98fd --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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..32cd2c68cdac --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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..b66608ae2199 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -81,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/featureSupport.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts index ef4c19f8ed09..c30bdae6df80 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -69,7 +69,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], 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..924fa0fca379 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -8,7 +8,7 @@ * regenerated. */ -export * from "./privateEndpointConnectionOperations"; +export * from "./bMSPrepareDataMoveOperationResult"; export * from "./backupResourceVaultConfigs"; export * from "./protectedItems"; export * from "./protectedItemOperationResults"; @@ -25,6 +25,16 @@ export * from "./exportJobsOperationResults"; export * from "./jobs"; export * from "./backupProtectedItems"; export * from "./operation"; +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 "./privateEndpointConnectionOperations"; export * from "./protectionIntentOperations"; export * from "./backupStatus"; export * from "./featureSupport"; @@ -45,5 +55,4 @@ export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; -export * from "./backupResourceStorageConfigs"; 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..64a4661590a3 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -166,7 +166,7 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -200,7 +200,7 @@ const revokeOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..5993929c7a09 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -78,7 +78,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..a454cc6a422e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -78,7 +78,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..202269de4dd3 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -82,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/jobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts index ccb2e58ba542..3ba51f860796 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -73,7 +73,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..b889f7551166 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -77,7 +77,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..cf125bc16b10 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -85,7 +85,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.RecoveryServices/operations", queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], 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..02f621f3d5a5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -152,7 +152,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -178,7 +178,7 @@ const beginPutOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -214,7 +214,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts index 92999e8d95de..6d81c65e838b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -106,7 +106,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts index 480fd2b20e17..8b9709717007 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -93,7 +93,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..9d0e01cc7e26 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -97,7 +97,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..cccf7a7e1864 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -193,7 +193,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -222,7 +222,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -258,7 +258,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..15e32c0100a9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -88,7 +88,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..23c79a2a45a1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -82,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..014a76a355c1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -268,7 +268,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -295,7 +295,7 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +330,7 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -356,7 +356,7 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -381,7 +381,7 @@ const refreshOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, 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..f76df524389b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -207,7 +207,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +241,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +268,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -302,7 +302,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], 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..5b5350756854 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -9,6 +9,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 +116,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 GetProtectionPolicyOperationResults 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 +124,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 GetProtectionPolicyOperationResults 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 +165,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -192,7 +191,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -216,7 +215,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 +225,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..4cfefdcf6716 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -83,7 +83,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..af1a5d4c595d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -87,7 +87,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..dae973bd5831 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -126,6 +126,61 @@ 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. @@ -169,7 +224,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -199,7 +254,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -215,6 +270,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.apiVersion2 + ], + 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", 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..05581116f667 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "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.apiVersion2, + 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 + ], + 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..b1c549ff769d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -99,7 +99,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..0f7da0ca8918 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -73,7 +73,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index af400f29edcc..c9fd66e84d48 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -9,6 +9,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,7 +19,7 @@ import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupCli class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups - privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + bMSPrepareDataMoveOperationResult: operations.BMSPrepareDataMoveOperationResult; backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; protectedItems: operations.ProtectedItems; protectedItemOperationResults: operations.ProtectedItemOperationResults; @@ -35,6 +36,16 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { jobs: operations.Jobs; backupProtectedItems: operations.BackupProtectedItems; operation: operations.Operation; + 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; + privateEndpointConnection: operations.PrivateEndpointConnectionOperations; protectionIntent: operations.ProtectionIntentOperations; backupStatus: operations.BackupStatus; featureSupport: operations.FeatureSupport; @@ -55,7 +66,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectableItems: operations.BackupProtectableItems; backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; - backupResourceStorageConfigs: operations.BackupResourceStorageConfigs; operations: operations.Operations; /** @@ -66,7 +76,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); - this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.bMSPrepareDataMoveOperationResult = new operations.BMSPrepareDataMoveOperationResult(this); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); this.protectedItems = new operations.ProtectedItems(this); this.protectedItemOperationResults = new operations.ProtectedItemOperationResults(this); @@ -83,6 +93,16 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.jobs = new operations.Jobs(this); this.backupProtectedItems = new operations.BackupProtectedItems(this); this.operation = new operations.Operation(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.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); this.protectionIntent = new operations.ProtectionIntentOperations(this); this.backupStatus = new operations.BackupStatus(this); this.featureSupport = new operations.FeatureSupport(this); @@ -103,10 +123,76 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectableItems = new operations.BackupProtectableItems(this); this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(this); - this.backupResourceStorageConfigs = new operations.BackupResourceStorageConfigs(this); this.operations = new operations.Operations(this); } + /** + * 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 operationId + * @param [options] The optional parameters + * @returns 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 operationId + * @param callback The callback + */ + 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 operationId + * @param options The optional parameters + * @param callback The callback + */ + 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, + operationId, + options + }, + getOperationStatusOperationSpec, + callback) as Promise; + } + + /** + * Prepares source vault for Data Move operation + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Prepare data move request + * @param [options] The optional parameters + * @returns Promise + */ + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSPrepareDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Triggers Data Move Operation on target vault + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Trigger data move request + * @param [options] The optional parameters + * @returns Promise + */ + bMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSTriggerDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * @summary Gets the operation status for a private endpoint connection. * @param vaultName The name of the recovery services vault. @@ -115,9 +201,9 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param privateEndpointConnectionName The name of the private endpoint connection. * @param operationId Operation id * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + getOperationStatus1(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 @@ -126,7 +212,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param operationId Operation id * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; + getOperationStatus1(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 @@ -136,8 +222,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @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 { + getOperationStatus1(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus1(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.sendOperationRequest( { vaultName, @@ -146,14 +232,82 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { operationId, options }, - getOperationStatusOperationSpec, - callback) as Promise; + getOperationStatus1OperationSpec, + 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 + */ + 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}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const getOperationStatus1OperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", urlParameters: [ @@ -164,7 +318,7 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -180,6 +334,68 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { 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 +}; + export { RecoveryServicesBackupClient, RecoveryServicesBackupClientContext,