diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c9f0c165e927..26f483597f8f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-recoveryservicesbackup ### How to use -#### nodejs - Authentication, client creation and get privateEndpointConnection as an example written in TypeScript. +#### nodejs - client creation and get backupResourceVaultConfigs as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,19 +26,17 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RecoveryServicesBackupClient, RecoveryServicesBackupModels, RecoveryServicesBackupMappers } from "@azure/arm-recoveryservicesbackup"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new RecoveryServicesBackupClient(creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + client.backupResourceVaultConfigs.get(vaultName, resourceGroupName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +45,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript. +#### browser - Authentication, client creation and get backupResourceVaultConfigs as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -83,8 +81,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(res.creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + client.backupResourceVaultConfigs.get(vaultName, resourceGroupName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index faa841bb5989..bb0c6fd4e76b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts new file mode 100644 index 000000000000..a41011fa66fe --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -0,0 +1,219 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts new file mode 100644 index 000000000000..2ac6dde24d4d --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError, + PrepareDataMoveResponse, + VaultStorageConfigOperationResultResponse +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts new file mode 100644 index 000000000000..a41011fa66fe --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -0,0 +1,219 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts new file mode 100644 index 000000000000..25da711abf26 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts index e2b2befc32de..08be818858ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,13 +8,34 @@ export { discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, ClientScriptForConnect, CloudError, + DiskInformation, + GenericRecoveryPoint, + IaasVMRecoveryPoint, InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, OperationStatus, OperationStatusError, OperationStatusExtendedInfo, OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, - OperationStatusProvisionILRExtendedInfo + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory } from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts new file mode 100644 index 000000000000..25da711abf26 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts new file mode 100644 index 000000000000..a41011fa66fe --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -0,0 +1,219 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index 6eeea71e42b2..a41011fa66fe 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -96,12 +98,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -118,6 +127,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -125,7 +135,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -155,6 +165,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -173,9 +185,11 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +204,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index 793cf3485a46..a41011fa66fe 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -96,12 +98,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -120,14 +129,12 @@ export { EncryptionDetails, ErrorAdditionalInfo, ErrorDetail, - ErrorResponse, ExtendedProperties, GenericContainer, GenericContainerExtendedInfo, GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +165,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -175,9 +185,11 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +204,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts index eb8ecfd230d1..195ec26f67a5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts index 0a5ba2f9e04b..a09f6df2d285 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 0923aafa73b5..106256e4977b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -97,12 +99,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,7 +136,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -143,6 +152,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +190,12 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index 6eeea71e42b2..0c5fec82f78b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -96,12 +98,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,7 +135,6 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, @@ -141,6 +150,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +183,11 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +202,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts new file mode 100644 index 000000000000..7d9e4da918be --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AzureFileShareRestoreRequest, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLRestoreRequest, + CrossRegionRestoreRequest, + CrrAccessToken, + EncryptionDetails, + ErrorAdditionalInfo, + IaasVMRestoreRequest, + NewErrorResponse, + NewErrorResponseError, + RestoreFileSpecs, + RestoreRequest, + SQLDataDirectoryMapping, + TargetAFSRestoreInfo, + TargetRestoreInfo, + WorkloadCrrAccessToken +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts new file mode 100644 index 000000000000..6b281afdf294 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts new file mode 100644 index 000000000000..61a4fde86431 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, + ClientScriptForConnect, + DiskInformation, + ErrorAdditionalInfo, + GenericRecoveryPoint, + IaasVMRecoveryPoint, + InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, + NewErrorResponse, + NewErrorResponseError, + OperationStatus, + OperationStatusError, + OperationStatusExtendedInfo, + OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts index bfdd6ba7cea8..b1eb0d5f7cc9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts index 1459a86aad1e..ec3de8eb31f0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index c210583ac571..3ecd2c2e64a0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,67 +12,74 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Error information associated with operation status call. + * An interface representing BackupResourceEncryptionConfig. */ -export interface OperationStatusError { +export interface BackupResourceEncryptionConfig { /** - * Error code of the operation failure. + * Encryption At Rest Type. Possible values include: 'Invalid', 'MicrosoftManaged', + * 'CustomerManaged' */ - code?: string; + encryptionAtRestType?: EncryptionAtRestType; /** - * Error message displayed if the operation failure. + * Key Vault Key URI */ - message?: string; -} - -/** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo; - -/** - * Base class for additional information of operation status. - */ -export interface OperationStatusExtendedInfo { + keyUri?: string; /** - * Polymorphic Discriminator + * Key Vault Subscription Id */ - objectType: "OperationStatusExtendedInfo"; + subscriptionId?: string; + /** + * Possible values include: 'Invalid', 'NotEnabled', 'PartiallySucceeded', 'PartiallyFailed', + * 'Failed', 'Succeeded' + */ + lastUpdateStatus?: LastUpdateStatus; + /** + * Possible values include: 'Invalid', 'Disabled', 'Enabled' + */ + infrastructureEncryptionState?: InfrastructureEncryptionState; } /** - * Operation status. + * ARM Resource. */ -export interface OperationStatus { +export interface Resource extends BaseResource { /** - * ID of the operation. + * Resource Id represents the complete path to the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly id?: string; /** - * Name of the operation. + * Resource name associated with the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly name?: string; /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: OperationStatusValues; + readonly type?: string; /** - * Operation start time. Format: ISO-8601. + * Resource location. */ - startTime?: Date; + location?: string; /** - * Operation end time. Format: ISO-8601. + * Resource tags. */ - endTime?: Date; + tags?: { [propertyName: string]: string }; /** - * Error information related to this operation. + * Optional ETag. */ - error?: OperationStatusError; + eTag?: string; +} + +/** + * An interface representing BackupResourceEncryptionConfigResource. + */ +export interface BackupResourceEncryptionConfigResource extends Resource { /** - * Additional information associated with this operation. + * BackupResourceEncryptionConfigResource properties */ - properties?: OperationStatusExtendedInfoUnion; + properties?: BackupResourceEncryptionConfig; } /** @@ -123,39 +130,6 @@ export interface PrivateEndpointConnection { privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } -/** - * ARM Resource. - */ -export interface Resource extends BaseResource { - /** - * Resource Id represents the complete path to the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name associated with the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Resource location. - */ - location?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * Optional ETag. - */ - eTag?: string; -} - /** * Private Endpoint Connection Response Properties */ @@ -183,9 +157,9 @@ export interface ErrorAdditionalInfo { } /** - * The resource management error response. + * The error object. */ -export interface ErrorResponse { +export interface NewErrorResponseError { /** * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -205,7 +179,7 @@ export interface ErrorResponse { * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorResponse[]; + readonly details?: NewErrorResponse[]; /** * The error additional info. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -213,10 +187,20 @@ export interface ErrorResponse { readonly additionalInfo?: ErrorAdditionalInfo[]; } +/** + * The resource management error response. + */ +export interface NewErrorResponse { + /** + * The error object. + */ + error?: NewErrorResponseError; +} + /** * Health Details for backup items. */ -export interface HealthDetails { +export interface ResourceHealthDetails { /** * Health Code * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -239,6 +223,21 @@ export interface HealthDetails { readonly recommendations?: string[]; } +/** + * KPI Resource Health Details + */ +export interface KPIResourceHealthDetails { + /** + * Resource Health Status. Possible values include: 'Healthy', 'TransientDegraded', + * 'PersistentDegraded', 'TransientUnhealthy', 'PersistentUnhealthy', 'Invalid' + */ + resourceHealthStatus?: ResourceHealthStatus; + /** + * Resource Health Status + */ + resourceHealthDetails?: ResourceHealthDetails[]; +} + /** * Additional information about Azure File Share backup item. */ @@ -418,16 +417,6 @@ export interface AzureFileshareProtectedItem { * 'Protected', 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' */ protectionState?: ProtectionState; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Last backup operation status. Possible values: Healthy, Unhealthy. */ @@ -436,10 +425,19 @@ export interface AzureFileshareProtectedItem { * Timestamp of the last backup operation on this backup item. */ lastBackupTime?: Date; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Additional information with this backup item. */ extendedInfo?: AzureFileshareProtectedItemExtendedInfo; + /** + * backups running status for this backup item. Possible values include: 'Passed', + * 'ActionRequired', 'ActionSuggested', 'Invalid' + */ + healthStatus?: HealthStatus; } /** @@ -626,7 +624,7 @@ export interface RetentionPolicy { export interface SubProtectionPolicy { /** * Type of backup policy type. Possible values include: 'Invalid', 'Full', 'Differential', 'Log', - * 'CopyOnlyFull' + * 'CopyOnlyFull', 'Incremental' */ policyType?: PolicyType; /** @@ -813,14 +811,17 @@ export interface AzureIaaSVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -924,14 +925,17 @@ export interface AzureIaaSClassicComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1035,14 +1039,17 @@ export interface AzureIaaSComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1091,7 +1098,7 @@ export interface AzureIaaSVMErrorInfo { /** * Azure IaaS VM workload-specific Health Details. */ -export interface AzureIaaSVMHealthDetails extends HealthDetails { +export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails { } /** @@ -1166,7 +1173,7 @@ export interface AzureIaaSVMJobExtendedInfo { /** * Contains the possible cases for Job. */ -export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob; +export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob | VaultJob; /** * Defines workload agnostic properties for a job. @@ -1736,20 +1743,14 @@ export interface AzureVmWorkloadProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1864,20 +1865,14 @@ export interface AzureVmWorkloadSAPAseDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1992,20 +1987,14 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2120,20 +2109,14 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2287,10 +2270,19 @@ export interface AzureWorkloadRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2312,10 +2304,19 @@ export interface AzureWorkloadPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2395,6 +2396,34 @@ export interface AzureWorkloadPointInTimeRestoreRequest { pointInTime?: Date; } +/** + * Recovery point tier information. + */ +export interface RecoveryPointTierInformation { + /** + * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP', + * 'ArchivedRP' + */ + type?: RecoveryPointTierType; + /** + * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', + * 'Deleted', 'Rehydrated' + */ + status?: RecoveryPointTierStatus; + /** + * Recovery point tier status. + */ + extendedInfo?: { [propertyName: string]: string }; +} + +/** + * An interface representing RecoveryPointMoveReadinessInfo. + */ +export interface RecoveryPointMoveReadinessInfo { + isReadyForMove?: boolean; + additionalInfo?: string; +} + /** * Details about target workload during restore operation. */ @@ -2432,10 +2461,19 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2529,10 +2567,19 @@ export interface AzureWorkloadSAPHanaRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2555,10 +2602,19 @@ export interface AzureWorkloadSQLRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2581,10 +2637,19 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2751,66 +2816,29 @@ export interface SQLDataDirectoryMapping { } /** - * Backup resource vault config details. + * BEK is bitlocker encryption key. */ -export interface BackupResourceVaultConfig { - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageModelType?: StorageType; - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageType?: StorageType; +export interface BEKDetails { /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Secret is BEK. */ - storageTypeState?: StorageTypeState; + secretUrl?: string; /** - * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + * ID of the Key Vault where this Secret is stored. */ - enhancedSecurityState?: EnhancedSecurityState; + secretVaultId?: string; /** - * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + * BEK data. */ - softDeleteFeatureState?: SoftDeleteFeatureState; + secretData?: string; } /** - * Backup resource vault config details. + * Filters to list backup copies. */ -export interface BackupResourceVaultConfigResource extends Resource { +export interface BMSRPQueryObject { /** - * BackupResourceVaultConfigResource properties - */ - 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; -} - -/** - * Filters to list backup copies. - */ -export interface BMSRPQueryObject { - /** - * Backup copies created after this time. + * Backup copies created after this time. */ startDate?: Date; /** @@ -2819,13 +2847,17 @@ export interface BMSRPQueryObject { endDate?: Date; /** * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', - * 'FullAndDifferential', 'All' + * 'FullAndDifferential', 'All', 'Incremental' */ restorePointQueryType?: RestorePointQueryType; /** * In Get Recovery Point, it tells whether extended information about recovery point is asked. */ extendedInfo?: boolean; + /** + * Whether the RP can be moved to another tier + */ + moveReadyRPOnly?: boolean; } /** @@ -3430,20 +3462,6 @@ export interface KeyAndSecretDetails { encryptionMechanism?: string; } -/** - * Recovery point tier information. - */ -export interface RecoveryPointTierInformation { - /** - * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP' - */ - type?: RecoveryPointTierType; - /** - * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', 'Deleted' - */ - status?: RecoveryPointTierStatus; -} - /** * Disk configuration */ @@ -3532,6 +3550,14 @@ export interface IaasVMRecoveryPoint { * Disk configuration */ recoveryPointDiskConfiguration?: RecoveryPointDiskConfiguration; + /** + * Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms + */ + zones?: string[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -3616,6 +3642,19 @@ export interface IaasVMRestoreRequest { * List of Disk LUNs for partial restore */ restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + */ + restoreWithManagedDisks?: boolean; + /** + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. + */ + diskEncryptionSetId?: string; + /** + * Target zone where the VM and its disks should be restored. + */ + zones?: string[]; } /** @@ -3636,7 +3675,7 @@ export interface JobQueryObject { /** * Type of operation. Possible values include: 'Invalid', 'Register', 'UnRegister', * 'ConfigureBackup', 'Backup', 'Restore', 'DisableBackup', 'DeleteBackupData', - * 'CrossRegionRestore', 'Undelete' + * 'CrossRegionRestore', 'Undelete', 'UpdateCustomerManagedKey' */ operation?: JobOperationType; /** @@ -4085,6 +4124,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,515 +4474,558 @@ export interface ValidateOperationsResponse { } /** - * Contains the possible cases for FeatureSupportRequest. + * Backup resource vault config details. */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; +export interface BackupResourceVaultConfig { + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageModelType?: StorageType; + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageType?: StorageType; + /** + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + */ + storageTypeState?: StorageTypeState; + /** + * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + enhancedSecurityState?: EnhancedSecurityState; + /** + * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + softDeleteFeatureState?: SoftDeleteFeatureState; +} /** - * Base class for feature request + * Backup resource vault config details. */ -export interface FeatureSupportRequest { +export interface BackupResourceVaultConfigResource extends Resource { /** - * Polymorphic Discriminator + * BackupResourceVaultConfigResource properties */ - featureType: "FeatureSupportRequest"; + properties?: BackupResourceVaultConfig; } /** - * Azure backup goal feature specific request. + * Vault Job specific error information */ -export interface AzureBackupGoalFeatureSupportRequest { +export interface VaultJobErrorInfo { /** - * Polymorphic Discriminator + * Error code. */ - featureType: "AzureBackupGoals"; + errorCode?: number; + /** + * Localized error string. + */ + errorString?: string; + /** + * List of localized recommendations for above error code. + */ + recommendations?: string[]; } /** - * Contains the possible cases for ProtectionIntent. + * Vault Job for CMK - has CMK specific info. */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; +export interface VaultJobExtendedInfo { + /** + * Job properties. + */ + propertyBag?: { [propertyName: string]: string }; +} /** - * Base class for backup ProtectionIntent. + * Vault level Job */ -export interface ProtectionIntent { +export interface VaultJob { /** * Polymorphic Discriminator */ - protectionIntentItemType: "ProtectionIntent"; + jobType: "VaultJob"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the entity on which the current job is executing. + */ + entityFriendlyName?: string; + /** + * Backup management type to execute the current job. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. + * The operation name. */ - sourceResourceId?: string; + operation?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Job status. */ - itemId?: string; + status?: string; /** - * ID of the backup policy with which this item is backed up. + * The start time. */ - policyId?: string; + startTime?: Date; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * The end time. */ - protectionState?: ProtectionStatus; + endTime?: Date; + /** + * ActivityId of job. + */ + activityId?: string; + /** + * Time elapsed during the execution of this job. + */ + duration?: string; + /** + * Gets or sets the state/actions applicable on this job like cancel/retry. + */ + actionsInfo?: JobSupportedAction[]; + /** + * Error details on execution of this job. + */ + errorDetails?: VaultJobErrorInfo[]; + /** + * Additional information about the job. + */ + extendedInfo?: VaultJobExtendedInfo; } /** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. + * Contains the possible cases for ProtectionContainer. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; /** - * Azure Recovery Services Vault specific protection intent item. + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. */ -export interface AzureRecoveryServiceVaultProtectionIntent { +export interface ProtectionContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "RecoveryServiceVaultItem"; + containerType: "ProtectionContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. + * Status of registration of the container with the Recovery Services Vault. */ - policyId?: string; + registrationStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Status of health of the container. */ - protectionState?: ProtectionStatus; + healthStatus?: string; } /** - * IaaS VM specific backup protection intent item. + * Contains the possible cases for DpmContainer. */ -export interface AzureResourceProtectionIntent { +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; + +/** + * DPM workload-specific protection container. + */ +export interface DpmContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureResourceItem"; + containerType: "DPMContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. + * Status of registration of the container with the Recovery Services Vault. */ - sourceResourceId?: string; + registrationStatus?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Status of health of the container. */ - itemId?: string; + healthStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Specifies whether the container is re-registrable. */ - policyId?: string; + canReRegister?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * ID of container. */ - protectionState?: ProtectionStatus; + containerId?: string; /** - * Friendly name of the VM represented by this backup item. + * Number of protected items in the BackupEngine */ - friendlyName?: string; -} - -/** - * AzureResource(IaaS VM) Specific feature support request - */ -export interface AzureVMResourceFeatureSupportRequest { + protectedItemCount?: number; /** - * Polymorphic Discriminator + * Backup engine Agent version */ - featureType: "AzureVMResourceBackup"; + dpmAgentVersion?: string; /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * List of BackupEngines protecting the container */ - vmSize?: string; + dpmServers?: string[]; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * To check if upgrade available */ - vmSku?: string; -} - -/** - * Response for feature support requests for Azure IaasVm - */ -export interface AzureVMResourceFeatureSupportResponse { + upgradeAvailable?: boolean; /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * Protection status of the container. */ - supportStatus?: SupportStatus; + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. - */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. + * AzureBackupServer (DPMVenus) workload-specific protection container. */ -export interface AzureWorkloadAutoProtectionIntent { +export interface AzureBackupServerContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + containerType: "AzureBackupServerContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Status of registration of the container with the Recovery Services Vault. */ - itemId?: string; + registrationStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Status of health of the container. */ - policyId?: string; + healthStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Specifies whether the container is re-registrable. */ - protectionState?: ProtectionStatus; -} - -/** - * Azure Workload SQL Auto Protection intent item. - */ -export interface AzureWorkloadSQLAutoProtectionIntent { + canReRegister?: boolean; /** - * Polymorphic Discriminator + * ID of container. */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + containerId?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Number of protected items in the BackupEngine */ - backupManagementType?: BackupManagementType; + protectedItemCount?: number; /** - * ARM ID of the resource to be backed up. + * Backup engine Agent version */ - sourceResourceId?: string; + dpmAgentVersion?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * List of BackupEngines protecting the container */ - itemId?: string; + dpmServers?: string[]; /** - * ID of the backup policy with which this item is backed up. + * To check if upgrade available */ - policyId?: string; + upgradeAvailable?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Protection status of the container. */ - protectionState?: ProtectionStatus; + protectionStatus?: string; /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' + * Extended Info of the container. */ - workloadItemType?: WorkloadItemType; + extendedInfo?: DPMContainerExtendedInfo; } /** - * The name of usage. + * Contains the possible cases for BackupEngineBase. */ -export interface NameInfo { +export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBase { /** - * Value of usage. + * Polymorphic Discriminator */ - value?: string; + backupEngineType: "BackupEngineBase"; /** - * Localized value of usage. + * Friendly name of the backup engine. */ - localizedValue?: string; -} - -/** - * Backup management usages of a vault. - */ -export interface BackupManagementUsage { + friendlyName?: string; /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - unit?: UsagesUnit; + backupManagementType?: BackupManagementType; /** - * Quota period of usage. + * Registration status of the backup engine with the Recovery Services Vault. */ - quotaPeriod?: string; + registrationStatus?: string; /** - * Next reset time of usage. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - nextResetTime?: Date; + backupEngineState?: string; /** - * Current value of usage. + * Backup status of the backup engine. */ - currentValue?: number; + healthStatus?: string; /** - * Limit of usage. + * Flag indicating if the backup engine be registered, once already registered. */ - limit?: number; + canReRegister?: boolean; /** - * Name of usage. + * ID of the backup engine. */ - name?: NameInfo; -} - -/** - * BackupStatus request. - */ -export interface BackupStatusRequest { + backupEngineId?: string; /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Backup engine version */ - resourceType?: DataSourceType; + dpmVersion?: string; /** - * Entire ARM resource id of the resource + * Backup agent version */ - resourceId?: string; + azureBackupAgentVersion?: string; /** - * Protectable Item Logical Name + * To check if backup agent upgrade available */ - poLogicalName?: string; + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * BackupStatus response. + * Backup engine type when Azure Backup Server is used to manage the backups. */ -export interface BackupStatusResponse { +export interface AzureBackupServerEngine { /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + backupEngineType: "AzureBackupServerEngine"; /** - * Specifies the arm resource id of the vault + * Friendly name of the backup engine. */ - vaultId?: string; + friendlyName?: string; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - fabricName?: FabricName; + backupManagementType?: BackupManagementType; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Registration status of the backup engine with the Recovery Services Vault. */ - containerName?: string; + registrationStatus?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - protectedItemName?: string; + backupEngineState?: string; /** - * ErrorCode in case of intent failed + * Backup status of the backup engine. */ - errorCode?: string; + healthStatus?: string; /** - * ErrorMessage in case of intent failed. + * Flag indicating if the backup engine be registered, once already registered. */ - errorMessage?: string; + canReRegister?: boolean; /** - * Specifies the policy name which is used for protection + * ID of the backup engine. */ - policyName?: string; + backupEngineId?: string; /** - * Container registration status + * Backup engine version */ - registrationStatus?: string; + dpmVersion?: string; + /** + * Backup agent version + */ + azureBackupAgentVersion?: string; + /** + * To check if backup agent upgrade available + */ + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * Query parameters to fetch backup summaries. + * Contains the possible cases for BackupRequest. */ -export interface BMSBackupSummariesQueryObject { +export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequest { /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Polymorphic Discriminator */ - type?: Type; + objectType: "BackupRequest"; } /** - * 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. + * AzureFileShare workload-specific backup request. */ -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; +export interface AzureFileShareBackupRequest { /** - * ARM id of the Recovery Services Vault + * Polymorphic Discriminator */ - vaultId?: string; + objectType: "AzureFileShareBackupRequest"; /** - * Configuration of VM if any needs to be validated like OS type etc + * Backup copy will expire after the time specified (UTC). */ - properties?: string; + recoveryPointExpiryTimeInUTC?: Date; } /** - * Response contract for enable backup validation request + * Contains the possible cases for WorkloadProtectableItem. */ -export interface PreValidateEnableBackupResponse { - /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' - */ - status?: ValidationStatus; +export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItem { /** - * Response error code + * Polymorphic Discriminator */ - errorCode?: string; + protectableItemType: "WorkloadProtectableItem"; /** - * Response error message + * Type of backup management to backup an item. */ - errorMessage?: string; + backupManagementType?: string; /** - * Recommended action for user + * Type of workload for the backup management */ - recommendation?: string; + workloadType?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * Friendly name of the backup item. */ - containerName?: string; + friendlyName?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - protectedItemName?: string; + protectionState?: ProtectionStatus; } /** - * Filters to list protection intent. + * Protectable item for Azure Fileshare workloads. */ -export interface ProtectionIntentQueryObject { +export interface AzureFileShareProtectableItem { /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + protectableItemType: "AzureFileShare"; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * Type of backup management to backup an item. */ - itemType?: IntentItemType; + backupManagementType?: string; /** - * Parent name of the intent + * Type of workload for the backup management */ - parentName?: string; + workloadType?: string; /** - * Item name of the intent + * Friendly name of the backup item. */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + friendlyName?: string; /** - * ProtectionIntentResource properties + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - properties?: ProtectionIntentUnion; + protectionState?: ProtectionStatus; + /** + * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. + */ + parentContainerFabricId?: string; + /** + * Friendly name of container to which this protectable item belongs. + */ + parentContainerFriendlyName?: string; + /** + * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' + */ + azureFileShareType?: AzureFileShareType; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for ILRRequest. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Parameters to Provision ILR API. */ -export interface ProtectionContainer { +export interface ILRRequest { /** * Polymorphic Discriminator */ - containerType: "ProtectionContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + objectType: "ILRRequest"; +} + +/** + * Update snapshot Uri with the correct friendly Name of the source Azure file share. + */ +export interface AzureFileShareProvisionILRRequest { /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + objectType: "AzureFileShareProvisionILRRequest"; /** - * Status of registration of the container with the Recovery Services Vault. + * Recovery point ID. */ - registrationStatus?: string; + recoveryPointId?: string; /** - * Status of health of the container. + * Source Storage account ARM Id */ - healthStatus?: string; + sourceResourceId?: string; } /** - * Contains the possible cases for DpmContainer. + * Contains the possible cases for IaaSVMContainer. */ -export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; +export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; /** - * DPM workload-specific protection container. + * IaaS VM workload-specific container. */ -export interface DpmContainer { +export interface IaaSVMContainer { /** * Polymorphic Discriminator */ - containerType: "DPMContainer"; + containerType: "IaaSVMContainer"; /** * Friendly name of the container. */ @@ -4873,47 +5045,27 @@ export interface DpmContainer { */ healthStatus?: string; /** - * Specifies whether the container is re-registrable. - */ - canReRegister?: boolean; - /** - * ID of container. - */ - containerId?: string; - /** - * Number of protected items in the BackupEngine - */ - protectedItemCount?: number; - /** - * Backup engine Agent version - */ - dpmAgentVersion?: string; - /** - * List of BackupEngines protecting the container - */ - dpmServers?: string[]; - /** - * To check if upgrade available + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - upgradeAvailable?: boolean; + virtualMachineId?: string; /** - * Protection status of the container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - protectionStatus?: string; + virtualMachineVersion?: string; /** - * Extended Info of the container. + * Resource group name of Recovery Services Vault. */ - extendedInfo?: DPMContainerExtendedInfo; + resourceGroup?: string; } /** - * AzureBackupServer (DPMVenus) workload-specific protection container. + * IaaS VM workload-specific backup item representing a classic virtual machine. */ -export interface AzureBackupServerContainer { +export interface AzureIaaSClassicComputeVMContainer { /** * Polymorphic Discriminator */ - containerType: "AzureBackupServerContainer"; + containerType: "Microsoft.ClassicCompute/virtualMachines"; /** * Friendly name of the container. */ @@ -4933,233 +5085,134 @@ export interface AzureBackupServerContainer { */ healthStatus?: string; /** - * Specifies whether the container is re-registrable. - */ - canReRegister?: boolean; - /** - * ID of container. - */ - containerId?: string; - /** - * Number of protected items in the BackupEngine - */ - protectedItemCount?: number; - /** - * Backup engine Agent version - */ - dpmAgentVersion?: string; - /** - * List of BackupEngines protecting the container - */ - dpmServers?: string[]; - /** - * To check if upgrade available + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - upgradeAvailable?: boolean; + virtualMachineId?: string; /** - * Protection status of the container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - protectionStatus?: string; + virtualMachineVersion?: string; /** - * Extended Info of the container. + * Resource group name of Recovery Services Vault. */ - extendedInfo?: DPMContainerExtendedInfo; + resourceGroup?: string; } /** - * Contains the possible cases for BackupEngineBase. + * Contains the possible cases for IaaSVMProtectableItem. */ -export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; +export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; /** - * The base backup engine class. All workload specific backup engines derive from this class. + * IaaS VM workload-specific backup item. */ -export interface BackupEngineBase { +export interface IaaSVMProtectableItem { /** * Polymorphic Discriminator */ - backupEngineType: "BackupEngineBase"; + protectableItemType: "IaaSVMProtectableItem"; /** - * Friendly name of the backup engine. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Registration status of the backup engine with the Recovery Services Vault. + * Type of workload for the backup management */ - registrationStatus?: string; + workloadType?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * Friendly name of the backup item. */ - backupEngineState?: string; + friendlyName?: string; /** - * Backup status of the backup engine. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - healthStatus?: string; + protectionState?: ProtectionStatus; /** - * Flag indicating if the backup engine be registered, once already registered. + * Fully qualified ARM ID of the virtual machine. */ - canReRegister?: boolean; + virtualMachineId?: string; +} + +/** + * IaaS VM workload-specific backup item representing the Classic Compute VM. + */ +export interface AzureIaaSClassicComputeVMProtectableItem { /** - * ID of the backup engine. + * Polymorphic Discriminator */ - backupEngineId?: string; + protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; /** - * Backup engine version + * Type of backup management to backup an item. */ - dpmVersion?: string; + backupManagementType?: string; /** - * Backup agent version + * Type of workload for the backup management */ - azureBackupAgentVersion?: string; + workloadType?: string; /** - * To check if backup agent upgrade available + * Friendly name of the backup item. */ - isAzureBackupAgentUpgradeAvailable?: boolean; + friendlyName?: string; /** - * To check if backup engine upgrade available + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - isDpmUpgradeAvailable?: boolean; + protectionState?: ProtectionStatus; /** - * Extended info of the backupengine + * Fully qualified ARM ID of the virtual machine. */ - extendedInfo?: BackupEngineExtendedInfo; + virtualMachineId?: string; } /** - * Backup engine type when Azure Backup Server is used to manage the backups. + * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. */ -export interface AzureBackupServerEngine { +export interface AzureIaaSComputeVMContainer { /** * Polymorphic Discriminator */ - backupEngineType: "AzureBackupServerEngine"; + containerType: "Microsoft.Compute/virtualMachines"; /** - * Friendly name of the backup engine. + * Friendly name of the container. */ friendlyName?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} - */ - backupEngineState?: string; - /** - * Backup status of the backup engine. + * Status of health of the container. */ healthStatus?: string; /** - * Flag indicating if the backup engine be registered, once already registered. - */ - canReRegister?: boolean; - /** - * ID of the backup engine. - */ - backupEngineId?: string; - /** - * Backup engine version - */ - dpmVersion?: string; - /** - * Backup agent version - */ - azureBackupAgentVersion?: string; - /** - * To check if backup agent upgrade available - */ - isAzureBackupAgentUpgradeAvailable?: boolean; - /** - * To check if backup engine upgrade available - */ - isDpmUpgradeAvailable?: boolean; - /** - * Extended info of the backupengine - */ - extendedInfo?: BackupEngineExtendedInfo; -} - -/** - * Contains the possible cases for BackupRequest. - */ -export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequest { - /** - * Polymorphic Discriminator - */ - objectType: "BackupRequest"; -} - -/** - * AzureFileShare workload-specific backup request. - */ -export interface AzureFileShareBackupRequest { - /** - * Polymorphic Discriminator - */ - objectType: "AzureFileShareBackupRequest"; - /** - * Backup copy will expire after the time specified (UTC). - */ - recoveryPointExpiryTimeInUTC?: Date; -} - -/** - * Contains the possible cases for WorkloadProtectableItem. - */ -export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "WorkloadProtectableItem"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - workloadType?: string; + virtualMachineId?: string; /** - * Friendly name of the backup item. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - friendlyName?: string; + virtualMachineVersion?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Resource group name of Recovery Services Vault. */ - protectionState?: ProtectionStatus; + resourceGroup?: string; } /** - * Protectable item for Azure Fileshare workloads. + * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. */ -export interface AzureFileShareProtectableItem { +export interface AzureIaaSComputeVMProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "AzureFileShare"; + protectableItemType: "Microsoft.Compute/virtualMachines"; /** * Type of backup management to backup an item. */ @@ -5178,65 +5231,24 @@ export interface AzureFileShareProtectableItem { */ protectionState?: ProtectionStatus; /** - * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. - */ - parentContainerFabricId?: string; - /** - * Friendly name of container to which this protectable item belongs. - */ - parentContainerFriendlyName?: string; - /** - * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' - */ - azureFileShareType?: AzureFileShareType; -} - -/** - * Contains the possible cases for ILRRequest. - */ -export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; - -/** - * Parameters to Provision ILR API. - */ -export interface ILRRequest { - /** - * Polymorphic Discriminator - */ - objectType: "ILRRequest"; -} - -/** - * Update snapshot Uri with the correct friendly Name of the source Azure file share. - */ -export interface AzureFileShareProvisionILRRequest { - /** - * Polymorphic Discriminator - */ - objectType: "AzureFileShareProvisionILRRequest"; - /** - * Recovery point ID. - */ - recoveryPointId?: string; - /** - * Source Storage account ARM Id + * Fully qualified ARM ID of the virtual machine. */ - sourceResourceId?: string; + virtualMachineId?: string; } /** - * Contains the possible cases for IaaSVMContainer. + * Contains the possible cases for AzureWorkloadContainer. */ -export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; +export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; /** - * IaaS VM workload-specific container. + * Container for the workloads running inside Azure Compute or Classic Compute. */ -export interface IaaSVMContainer { +export interface AzureWorkloadContainer { /** * Polymorphic Discriminator */ - containerType: "IaaSVMContainer"; + containerType: "AzureWorkloadContainer"; /** * Friendly name of the container. */ @@ -5256,27 +5268,38 @@ export interface IaaSVMContainer { */ healthStatus?: string; /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * ARM ID of the virtual machine represented by this Azure Workload Container */ - virtualMachineId?: string; + sourceResourceId?: string; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. + * Time stamp when this container was updated. */ - virtualMachineVersion?: string; + lastUpdatedTime?: Date; /** - * Resource group name of Recovery Services Vault. + * Additional details of a workload container. */ - resourceGroup?: string; + extendedInfo?: AzureWorkloadContainerExtendedInfo; + /** + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** - * IaaS VM workload-specific backup item representing a classic virtual machine. + * Container for SQL workloads under SQL Availability Group. */ -export interface AzureIaaSClassicComputeVMContainer { +export interface AzureSQLAGWorkloadContainerProtectionContainer { /** * Polymorphic Discriminator */ - containerType: "Microsoft.ClassicCompute/virtualMachines"; + containerType: "SQLAGWorkLoadContainer"; /** * Friendly name of the container. */ @@ -5296,245 +5319,11 @@ export interface AzureIaaSClassicComputeVMContainer { */ healthStatus?: string; /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * ARM ID of the virtual machine represented by this Azure Workload Container */ - virtualMachineId?: string; + sourceResourceId?: string; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. - */ - virtualMachineVersion?: string; - /** - * Resource group name of Recovery Services Vault. - */ - resourceGroup?: string; -} - -/** - * Contains the possible cases for IaaSVMProtectableItem. - */ -export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; - -/** - * IaaS VM workload-specific backup item. - */ -export interface IaaSVMProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "IaaSVMProtectableItem"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * IaaS VM workload-specific backup item representing the Classic Compute VM. - */ -export interface AzureIaaSClassicComputeVMProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. - */ -export interface AzureIaaSComputeVMContainer { - /** - * Polymorphic Discriminator - */ - containerType: "Microsoft.Compute/virtualMachines"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. - */ - virtualMachineId?: string; - /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. - */ - virtualMachineVersion?: string; - /** - * Resource group name of Recovery Services Vault. - */ - resourceGroup?: string; -} - -/** - * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - */ -export interface AzureIaaSComputeVMProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "Microsoft.Compute/virtualMachines"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * Contains the possible cases for AzureWorkloadContainer. - */ -export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; - -/** - * Container for the workloads running inside Azure Compute or Classic Compute. - */ -export interface AzureWorkloadContainer { - /** - * Polymorphic Discriminator - */ - containerType: "AzureWorkloadContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * ARM ID of the virtual machine represented by this Azure Workload Container - */ - sourceResourceId?: string; - /** - * Time stamp when this container was updated. - */ - lastUpdatedTime?: Date; - /** - * Additional details of a workload container. - */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; - /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' - */ - workloadType?: WorkloadType; - /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' - */ - operationType?: OperationType; -} - -/** - * Container for SQL workloads under SQL Availability Group. - */ -export interface AzureSQLAGWorkloadContainerProtectionContainer { - /** - * Polymorphic Discriminator - */ - containerType: "SQLAGWorkLoadContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * ARM ID of the virtual machine represented by this Azure Workload Container - */ - sourceResourceId?: string; - /** - * Time stamp when this container was updated. + * Time stamp when this container was updated. */ lastUpdatedTime?: Date; /** @@ -6417,1058 +6206,2132 @@ export interface AzureVmWorkloadSQLDatabaseProtectableItem { */ subprotectableitemcount?: number; /** - * Pre-backup validation for protectable objects + * Pre-backup validation for protectable objects + */ + prebackupvalidation?: PreBackupValidation; +} + +/** + * Azure VM workload-specific workload item representing SQL Database. + */ +export interface AzureVmWorkloadSQLDatabaseWorkloadItem { + /** + * Polymorphic Discriminator + */ + workloadItemType: "SQLDataBase"; + /** + * Type of backup management to backup an item. + */ + backupManagementType?: string; + /** + * Type of workload for the backup management + */ + workloadType?: string; + /** + * Friendly name of the backup item. + */ + friendlyName?: string; + /** + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if workload item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subWorkloadItemCount?: number; +} + +/** + * Azure VM workload-specific protectable item representing SQL Instance. + */ +export interface AzureVmWorkloadSQLInstanceProtectableItem { + /** + * Polymorphic Discriminator + */ + protectableItemType: "SQLInstance"; + /** + * Type of backup management to backup an item. + */ + backupManagementType?: string; + /** + * Type of workload for the backup management + */ + workloadType?: string; + /** + * Friendly name of the backup item. + */ + friendlyName?: string; + /** + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Parent Unique Name is added to provide the service formatted URI Name of the Parent + * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + */ + parentUniqueName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if protectable item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * Indicates if protectable item is auto-protected + */ + isAutoProtected?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subprotectableitemcount?: number; + /** + * Pre-backup validation for protectable objects + */ + prebackupvalidation?: PreBackupValidation; +} + +/** + * Azure VM workload-specific workload item representing SQL Instance. + */ +export interface AzureVmWorkloadSQLInstanceWorkloadItem { + /** + * Polymorphic Discriminator + */ + workloadItemType: "SQLInstance"; + /** + * Type of backup management to backup an item. + */ + backupManagementType?: string; + /** + * Type of workload for the backup management + */ + workloadType?: string; + /** + * Friendly name of the backup item. + */ + friendlyName?: string; + /** + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Name for instance or AG + */ + parentName?: string; + /** + * Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * Indicates if workload item is auto-protectable + */ + isAutoProtectable?: boolean; + /** + * For instance or AG, indicates number of DB's present + */ + subinquireditemcount?: number; + /** + * For instance or AG, indicates number of DB's to be protected + */ + subWorkloadItemCount?: number; + /** + * Data Directory Paths for default directories + */ + dataDirectoryPaths?: SQLDataDirectory[]; +} + +/** + * AzureWorkload workload-specific backup request. + */ +export interface AzureWorkloadBackupRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadBackupRequest"; + /** + * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: + * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' + */ + backupType?: BackupType; + /** + * Bool for Compression setting + */ + enableCompression?: boolean; + /** + * Backup copy will expire after the time specified (UTC). + */ + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Validation for inquired protectable items under a given container. + */ +export interface InquiryValidation { + /** + * Status for the Inquiry Validation. + */ + status?: string; + /** + * Error Detail in case the status is non-success. + */ + errorDetail?: ErrorDetail; + /** + * Error Additional Detail in case the status is non-success. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalDetail?: string; +} + +/** + * Details of an inquired protectable item. + */ +export interface WorkloadInquiryDetails { + /** + * Type of the Workload such as SQL, Oracle etc. + */ + type?: string; + /** + * Contains the protectable item Count inside this Container. + */ + itemCount?: number; + /** + * Inquiry validation such as permissions and other backup validations. + */ + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { + /** + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded + */ + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; + /** + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. + */ + inquiryDetails?: WorkloadInquiryDetails[]; +} + +/** + * This is used to represent the various nodes of the distributed container. + */ +export interface DistributedNodesInfo { + /** + * Name of the node under a distributed container. + */ + nodeName?: string; + /** + * Status of this Node. + * Failed | Succeeded + */ + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; +} + +/** + * Extended information of the container. + */ +export interface AzureWorkloadContainerExtendedInfo { + /** + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + */ + hostServerName?: string; + /** + * Inquiry Status for the container. + */ + inquiryInfo?: InquiryInfo; + /** + * List of the nodes in case of distributed container. + */ + nodesList?: DistributedNodesInfo[]; +} + +/** + * Additional information on backup engine. + */ +export interface BackupEngineExtendedInfo { + /** + * Database name of backup engine. + */ + databaseName?: string; + /** + * Number of protected items in the backup engine. + */ + protectedItemsCount?: number; + /** + * Number of protected servers in the backup engine. + */ + protectedServersCount?: number; + /** + * Number of disks in the backup engine. + */ + diskCount?: number; + /** + * Disk space used in the backup engine. + */ + usedDiskSpace?: number; + /** + * Disk space currently available in the backup engine. + */ + availableDiskSpace?: number; + /** + * Last refresh time in the backup engine. + */ + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; +} + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBaseResource extends Resource { + /** + * BackupEngineBaseResource properties + */ + properties?: BackupEngineBaseUnion; +} + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequestResource extends Resource { + /** + * BackupRequestResource properties + */ + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { + /** + * attribute to add extended info + */ + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { + /** + * Backup management type for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Friendly name of the backup engine. + */ + friendlyName?: string; + /** + * Attribute to add extended info. + */ + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType: BackupManagementType; + /** + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + */ + containerType?: ContainerType; + /** + * Backup engine name + */ + backupEngineName?: string; + /** + * Fabric name for filter + */ + fabricName?: string; + /** + * Status of registration of this container with the Recovery Services Vault. + */ + status?: string; + /** + * Friendly name of this container. + */ + friendlyName?: string; +} + +/** + * The query filters that can be used with the inquire container API. + */ +export interface BMSContainersInquiryQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSPOQueryObject { + /** + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Full name of the container whose Protectable Objects should be returned. + */ + containerName?: string; + /** + * Backup status query parameter. + */ + status?: string; + /** + * Friendly name. + */ + friendlyName?: string; +} + +/** + * The query filters that can be used with the refresh container API. + */ +export interface BMSRefreshContainersQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSWorkloadItemQueryObject { + /** + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + */ + workloadItemType?: WorkloadItemType; + /** + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionStatus?: ProtectionStatus; +} + +/** + * Client script details for file / folder restore. + */ +export interface ClientScriptForConnect { + /** + * File content of the client script for file / folder restore. + */ + scriptContent?: string; + /** + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + */ + scriptExtension?: string; + /** + * OS type - Windows, Linux etc. for which this file / folder restore client script works. + */ + osType?: string; + /** + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used + */ + url?: string; + /** + * Mandatory suffix that should be added to the name of script that is given for download to + * user. + * If its null or empty then , ignore it. + */ + scriptNameSuffix?: string; +} + +/** + * Container identity information + */ +export interface ContainerIdentityInfo { + /** + * Unique name of the container + */ + uniqueName?: string; + /** + * Protection container identity - AAD Tenant + */ + aadTenantId?: string; + /** + * Protection container identity - AAD Service Principal + */ + servicePrincipalClientId?: string; + /** + * Protection container identity - Audience + */ + audience?: string; +} + +/** + * Data Protection Manager (DPM) specific backup engine. + */ +export interface DpmBackupEngine { + /** + * Polymorphic Discriminator + */ + backupEngineType: "DpmBackupEngine"; + /** + * Friendly name of the backup engine. + */ + friendlyName?: string; + /** + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Registration status of the backup engine with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + */ + backupEngineState?: string; + /** + * Backup status of the backup engine. + */ + healthStatus?: string; + /** + * Flag indicating if the backup engine be registered, once already registered. + */ + canReRegister?: boolean; + /** + * ID of the backup engine. + */ + backupEngineId?: string; + /** + * Backup engine version + */ + dpmVersion?: string; + /** + * Backup agent version + */ + azureBackupAgentVersion?: string; + /** + * To check if backup agent upgrade available + */ + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; +} + +/** + * Additional information of the DPMContainer. + */ +export interface DPMContainerExtendedInfo { + /** + * Last refresh time of the DPMContainer. + */ + lastRefreshedAt?: Date; +} + +/** + * Container extended information + */ +export interface GenericContainerExtendedInfo { + /** + * Public key of container cert + */ + rawCertData?: string; + /** + * Container identity information + */ + containerIdentityInfo?: ContainerIdentityInfo; + /** + * Azure Backup Service Endpoints for the container + */ + serviceEndpoints?: { [propertyName: string]: string }; +} + +/** + * Base class for generic container of backup items + */ +export interface GenericContainer { + /** + * Polymorphic Discriminator + */ + containerType: "GenericContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Name of the container's fabric + */ + fabricName?: string; + /** + * Extended information (not returned in List container API calls) + */ + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMBackupRequest"; + /** + * Backup copy will expire after the time specified (UTC). + */ + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Restore files/folders from a backup copy of IaaS VM. + */ +export interface IaasVMILRRegistrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMILRRegistrationRequest"; + /** + * ID of the IaaS VM backup copy from where the files/folders have to be restored. + */ + recoveryPointId?: string; + /** + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + */ + virtualMachineId?: string; + /** + * iSCSI initiator name. + */ + initiatorName?: string; + /** + * Whether to renew existing registration with the iSCSI server. + */ + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { + /** + * ILRRequestResource properties + */ + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { + /** + * List of client scripts. + */ + clientScripts?: ClientScriptForConnect[]; +} + +/** + * Additional information of the container. + */ +export interface MabContainerExtendedInfo { + /** + * Time stamp when this container was refreshed. + */ + lastRefreshedAt?: Date; + /** + * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + backupItemType?: BackupItemType; + /** + * List of backup items associated with this container. + */ + backupItems?: string[]; + /** + * Backup policy associated with this container. + */ + policyName?: string; + /** + * Latest backup status of this container. + */ + lastBackupStatus?: string; +} + +/** + * MAB workload-specific Health Details. + */ +export interface MABContainerHealthDetails { + /** + * Health Code + */ + code?: number; + /** + * Health Title + */ + title?: string; + /** + * Health Message + */ + message?: string; + /** + * Health Recommended Actions + */ + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { + /** + * Polymorphic Discriminator + */ + containerType: "Windows"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Can the container be registered one more time. + */ + canReRegister?: boolean; + /** + * ContainerID represents the container. + */ + containerId?: number; + /** + * Number of items backed up in this container. + */ + protectedItemCount?: number; + /** + * Agent version of this container. + */ + agentVersion?: string; + /** + * Additional information for this container + */ + extendedInfo?: MabContainerExtendedInfo; + /** + * Health details on this mab container. + */ + mabContainerHealthDetails?: MABContainerHealthDetails[]; + /** + * Health state of mab container. + */ + containerHealthState?: string; +} + +/** + * Error information associated with operation status call. + */ +export interface OperationStatusError { + /** + * Error code of the operation failure. + */ + code?: string; + /** + * Error message displayed if the operation failure. + */ + message?: string; +} + +/** + * Contains the possible cases for OperationStatusExtendedInfo. + */ +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; + +/** + * Base class for additional information of operation status. + */ +export interface OperationStatusExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { + /** + * ID of the operation. + */ + id?: string; + /** + * Name of the operation. + */ + name?: string; + /** + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' + */ + status?: OperationStatusValues; + /** + * Operation start time. Format: ISO-8601. + */ + startTime?: Date; + /** + * Operation end time. Format: ISO-8601. + */ + endTime?: Date; + /** + * Error information related to this operation. + */ + error?: OperationStatusError; + /** + * Additional information associated with this operation. + */ + properties?: OperationStatusExtendedInfoUnion; +} + +/** + * Operation status job extended info. + */ +export interface OperationStatusJobExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobExtendedInfo"; + /** + * ID of the job created for this protected item. + */ + jobId?: string; +} + +/** + * Operation status extended info for list of jobs. + */ +export interface OperationStatusJobsExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobsExtendedInfo"; + /** + * IDs of the jobs created for the protected item. + */ + jobIds?: string[]; + /** + * Stores all the failed jobs along with the corresponding error codes. + */ + failedJobsError?: { [propertyName: string]: string }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusProvisionILRExtendedInfo"; + /** + * Target details for file / folder restore. + */ + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Protectable Container Class. + */ +export interface ProtectableContainerResource extends Resource { + /** + * ProtectableContainerResource properties + */ + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { + /** + * ProtectionContainerResource properties + */ + properties?: ProtectionContainerUnion; +} + +/** + * The token information details. + */ +export interface TokenInformation { + /** + * Token value. + */ + token?: string; + /** + * Expiry time of token. + */ + expiryTimeInUtcTicks?: number; + /** + * Security PIN + */ + securityPIN?: string; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadItemResource extends Resource { + /** + * WorkloadItemResource properties + */ + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { + /** + * WorkloadProtectableItemResource properties + */ + properties?: WorkloadProtectableItemUnion; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.) + * @summary Error Response + */ +export interface ErrorResponse { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponse[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - prebackupvalidation?: PreBackupValidation; + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * Azure VM workload-specific workload item representing SQL Database. + * An interface representing AADProperties. */ -export interface AzureVmWorkloadSQLDatabaseWorkloadItem { - /** - * Polymorphic Discriminator - */ - workloadItemType: "SQLDataBase"; +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; +} + +/** + * An interface representing AADPropertiesResource. + */ +export interface AADPropertiesResource extends Resource { /** - * Type of backup management to backup an item. + * AADPropertiesResource properties */ - backupManagementType?: string; + properties?: AADProperties; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfig { /** - * Type of workload for the backup management + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - workloadType?: string; + storageModelType?: StorageType; /** - * Friendly name of the backup item. + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - friendlyName?: string; + storageType?: StorageType; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' */ - protectionState?: ProtectionStatus; + storageTypeState?: StorageTypeState; /** - * Name for instance or AG + * Opt in details of Cross Region Restore feature. */ - parentName?: string; + crossRegionRestoreFlag?: boolean; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequest { /** - * Host/Cluster Name for instance or AG + * Entire ARM resource id of the resource */ - serverName?: string; + resourceId?: string; /** - * Indicates if workload item is auto-protectable + * Job Name of the job to be fetched */ - isAutoProtectable?: boolean; + jobName?: string; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequestResource extends Resource { /** - * For instance or AG, indicates number of DB's present + * CrrJobRequestResource properties */ - subinquireditemcount?: number; + properties?: CrrJobRequest; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { /** - * For instance or AG, indicates number of DB's to be protected + * BackupResourceConfigResource properties */ - subWorkloadItemCount?: number; + properties?: BackupResourceConfig; } /** - * Azure VM workload-specific protectable item representing SQL Instance. + * Contains the possible cases for CrrAccessToken. */ -export interface AzureVmWorkloadSQLInstanceProtectableItem { +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { /** * Polymorphic Discriminator */ - protectableItemType: "SQLInstance"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; + objectType: "CrrAccessToken"; /** - * Friendly name of the backup item. + * Access token used for authentication */ - friendlyName?: string; + accessTokenString?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Subscription Id of the source vault */ - protectionState?: ProtectionStatus; + subscriptionId?: string; /** - * Name for instance or AG + * Resource Group name of the source vault */ - parentName?: string; + resourceGroupName?: string; /** - * Parent Unique Name is added to provide the service formatted URI Name of the Parent - * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + * Resource Name of the source vault */ - parentUniqueName?: string; + resourceName?: string; /** - * Host/Cluster Name for instance or AG + * Resource Id of the source vault */ - serverName?: string; + resourceId?: string; /** - * Indicates if protectable item is auto-protectable + * Protected item container id */ - isAutoProtectable?: boolean; + protectionContainerId?: number; /** - * Indicates if protectable item is auto-protected + * Recovery Point Id */ - isAutoProtected?: boolean; + recoveryPointId?: string; /** - * For instance or AG, indicates number of DB's present + * Recovery Point Time */ - subinquireditemcount?: number; + recoveryPointTime?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Container Unique name */ - subprotectableitemcount?: number; + containerName?: string; /** - * Pre-backup validation for protectable objects + * Container Type */ - prebackupvalidation?: PreBackupValidation; -} - -/** - * Azure VM workload-specific workload item representing SQL Instance. - */ -export interface AzureVmWorkloadSQLInstanceWorkloadItem { + containerType?: string; /** - * Polymorphic Discriminator + * Backup Management Type */ - workloadItemType: "SQLInstance"; + backupManagementType?: string; /** - * Type of backup management to backup an item. + * Datasource Type */ - backupManagementType?: string; + datasourceType?: string; /** - * Type of workload for the backup management + * Datasource Friendly Name */ - workloadType?: string; + datasourceName?: string; /** - * Friendly name of the backup item. + * Datasource Id */ - friendlyName?: string; + datasourceId?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Datasource Container Unique Name */ - protectionState?: ProtectionStatus; + datasourceContainerName?: string; /** - * Name for instance or AG + * CoordinatorServiceStampId to be used by BCM in restore call */ - parentName?: string; + coordinatorServiceStampId?: string; /** - * Host/Cluster Name for instance or AG + * CoordinatorServiceStampUri to be used by BCM in restore call */ - serverName?: string; + coordinatorServiceStampUri?: string; /** - * Indicates if workload item is auto-protectable + * ProtectionServiceStampId to be used by BCM in restore call */ - isAutoProtectable?: boolean; + protectionServiceStampId?: string; /** - * For instance or AG, indicates number of DB's present + * ProtectionServiceStampUri to be used by BCM in restore call */ - subinquireditemcount?: number; + protectionServiceStampUri?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Extended Information about the token like FileSpec etc. */ - subWorkloadItemCount?: number; + tokenExtendedInformation?: string; /** - * Data Directory Paths for default directories + * Recovery point Tier Information */ - dataDirectoryPaths?: SQLDataDirectory[]; -} - -/** - * AzureWorkload workload-specific backup request. - */ -export interface AzureWorkloadBackupRequest { + rpTierInformation?: { [propertyName: string]: string }; /** - * Polymorphic Discriminator + * Recovery point information: Original SA option */ - objectType: "AzureWorkloadBackupRequest"; + rpOriginalSAOption?: boolean; /** - * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: - * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * Recovery point information: Managed virtual machine */ - backupType?: BackupType; + rpIsManagedVirtualMachine?: boolean; /** - * Bool for Compression setting + * Recovery point information: VM size description */ - enableCompression?: boolean; + rpVMSizeDescription?: string; /** - * Backup copy will expire after the time specified (UTC). + * Active region name of BMS Stamp */ - recoveryPointExpiryTimeInUTC?: Date; + bMSActiveRegion?: string; } /** - * Validation for inquired protectable items under a given container. + * An interface representing CrossRegionRestoreRequest. */ -export interface InquiryValidation { - /** - * Status for the Inquiry Validation. - */ - status?: string; +export interface CrossRegionRestoreRequest { /** - * Error Detail in case the status is non-success. + * Access details for cross region restore */ - errorDetail?: ErrorDetail; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; /** - * Error Additional Detail in case the status is non-success. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Request object for triggering restore */ - readonly additionalDetail?: string; + restoreRequest?: RestoreRequestUnion; } /** - * Details of an inquired protectable item. + * An interface representing CrossRegionRestoreRequestResource. */ -export interface WorkloadInquiryDetails { - /** - * Type of the Workload such as SQL, Oracle etc. - */ - type?: string; - /** - * Contains the protectable item Count inside this Container. - */ - itemCount?: number; +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Inquiry validation such as permissions and other backup validations. + * CrossRegionRestoreRequestResource properties */ - inquiryValidation?: InquiryValidation; + properties?: CrossRegionRestoreRequest; } /** - * Details about inquired protectable items under a given container. + * An interface representing CrrAccessTokenResource. */ -export interface InquiryInfo { - /** - * Inquiry Status for this container such as - * InProgress | Failed | Succeeded - */ - status?: string; - /** - * Error Details if the Status is non-success. - */ - errorDetail?: ErrorDetail; +export interface CrrAccessTokenResource extends Resource { /** - * Inquiry Details which will have workload specific details. - * For e.g. - For SQL and oracle this will contain different details. + * CrrAccessTokenResource properties */ - inquiryDetails?: WorkloadInquiryDetails[]; + properties?: CrrAccessTokenUnion; } /** - * This is used to represent the various nodes of the distributed container. + * Operation status extended info for Updated Recovery Point. */ -export interface DistributedNodesInfo { +export interface OperationStatusRecoveryPointExtendedInfo { /** - * Name of the node under a distributed container. + * Polymorphic Discriminator */ - nodeName?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Status of this Node. - * Failed | Succeeded + * Recovery Point info with updated source snapshot URI */ - status?: string; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Error Details if the Status is non-success. + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - errorDetail?: ErrorDetail; + deletedBackupItemVersion?: string; } /** - * Extended information of the container. + * An interface representing WorkloadCrrAccessToken. */ -export interface AzureWorkloadContainerExtendedInfo { +export interface WorkloadCrrAccessToken { /** - * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + * Polymorphic Discriminator */ - hostServerName?: string; + objectType: "WorkloadCrrAccessToken"; /** - * Inquiry Status for the container. + * Access token used for authentication */ - inquiryInfo?: InquiryInfo; + accessTokenString?: string; /** - * List of the nodes in case of distributed container. + * Subscription Id of the source vault */ - nodesList?: DistributedNodesInfo[]; -} - -/** - * Additional information on backup engine. - */ -export interface BackupEngineExtendedInfo { + subscriptionId?: string; /** - * Database name of backup engine. + * Resource Group name of the source vault */ - databaseName?: string; + resourceGroupName?: string; /** - * Number of protected items in the backup engine. + * Resource Name of the source vault */ - protectedItemsCount?: number; + resourceName?: string; /** - * Number of protected servers in the backup engine. + * Resource Id of the source vault */ - protectedServersCount?: number; + resourceId?: string; /** - * Number of disks in the backup engine. + * Protected item container id */ - diskCount?: number; + protectionContainerId?: number; /** - * Disk space used in the backup engine. + * Recovery Point Id */ - usedDiskSpace?: number; + recoveryPointId?: string; /** - * Disk space currently available in the backup engine. + * Recovery Point Time */ - availableDiskSpace?: number; + recoveryPointTime?: string; /** - * Last refresh time in the backup engine. + * Container Unique name */ - refreshedAt?: Date; + containerName?: string; /** - * Protected instances in the backup engine. + * Container Type */ - azureProtectedInstances?: number; -} - -/** - * The base backup engine class. All workload specific backup engines derive from this class. - */ -export interface BackupEngineBaseResource extends Resource { + containerType?: string; /** - * BackupEngineBaseResource properties + * Backup Management Type */ - properties?: BackupEngineBaseUnion; -} - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequestResource extends Resource { + backupManagementType?: string; /** - * BackupRequestResource properties + * Datasource Type */ - properties?: BackupRequestUnion; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfig { + datasourceType?: string; + /** + * Datasource Friendly Name + */ + datasourceName?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Datasource Id */ - storageModelType?: StorageType; + datasourceId?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Datasource Container Unique Name */ - storageType?: StorageType; + datasourceContainerName?: string; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * CoordinatorServiceStampId to be used by BCM in restore call */ - storageTypeState?: StorageTypeState; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { + coordinatorServiceStampId?: string; /** - * BackupResourceConfigResource properties + * CoordinatorServiceStampUri to be used by BCM in restore call */ - properties?: BackupResourceConfig; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEngineQueryObject { + coordinatorServiceStampUri?: string; /** - * attribute to add extended info + * ProtectionServiceStampId to be used by BCM in restore call */ - expand?: string; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEnginesQueryObject { + protectionServiceStampId?: string; /** - * Backup management type for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * ProtectionServiceStampUri to be used by BCM in restore call */ - backupManagementType?: BackupManagementType; + protectionServiceStampUri?: string; /** - * Friendly name of the backup engine. + * Extended Information about the token like FileSpec etc. */ - friendlyName?: string; + tokenExtendedInformation?: string; /** - * Attribute to add extended info. + * Recovery point Tier Information */ - expand?: string; -} - -/** - * The query filters that can be used with the list containers API. - */ -export interface BMSContainerQueryObject { + rpTierInformation?: { [propertyName: string]: string }; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery point information: Original SA option */ - backupManagementType: BackupManagementType; + rpOriginalSAOption?: boolean; /** - * Type of container for filter. Possible values include: 'Invalid', 'Unknown', - * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', - * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + * Recovery point information: Managed virtual machine */ - containerType?: ContainerType; + rpIsManagedVirtualMachine?: boolean; /** - * Backup engine name + * Recovery point information: VM size description */ - backupEngineName?: string; + rpVMSizeDescription?: string; /** - * Fabric name for filter + * Active region name of BMS Stamp */ - fabricName?: string; + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * Status of registration of this container with the Recovery Services Vault. + * Container Id */ - status?: string; + containerId?: string; /** - * Friendly name of this container. + * Policy Name */ - friendlyName?: string; + policyName?: string; + /** + * Policy Id + */ + policyId?: string; } /** - * The query filters that can be used with the inquire container API. + * Contains the possible cases for FeatureSupportRequest. */ -export interface BMSContainersInquiryQueryObject { +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + featureType: "FeatureSupportRequest"; +} + +/** + * Azure backup goal feature specific request. + */ +export interface AzureBackupGoalFeatureSupportRequest { /** - * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Polymorphic Discriminator */ - workloadType?: WorkloadType; + featureType: "AzureBackupGoals"; } /** - * Filters to list items that can be backed up. + * Contains the possible cases for ProtectionIntent. */ -export interface BMSPOQueryObject { +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntent { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Polymorphic Discriminator + */ + protectionIntentItemType: "ProtectionIntent"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * ARM ID of the resource to be backed up. */ - workloadType?: WorkloadType; + sourceResourceId?: string; /** - * Full name of the container whose Protectable Objects should be returned. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - containerName?: string; + itemId?: string; /** - * Backup status query parameter. + * ID of the backup policy with which this item is backed up. */ - status?: string; + policyId?: string; /** - * Friendly name. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - friendlyName?: string; + protectionState?: ProtectionStatus; } /** - * The query filters that can be used with the refresh container API. + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export interface BMSRefreshContainersQueryObject { - /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; -} +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; /** - * Filters to list items that can be backed up. + * Azure Recovery Services Vault specific protection intent item. */ -export interface BMSWorkloadItemQueryObject { +export interface AzureRecoveryServiceVaultProtectionIntent { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Polymorphic Discriminator + */ + protectionIntentItemType: "RecoveryServiceVaultItem"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + * ARM ID of the resource to be backed up. */ - workloadItemType?: WorkloadItemType; + sourceResourceId?: string; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - workloadType?: WorkloadType; + itemId?: string; /** - * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 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' */ - protectionStatus?: ProtectionStatus; + protectionState?: ProtectionStatus; } /** - * Client script details for file / folder restore. + * IaaS VM specific backup protection intent item. */ -export interface ClientScriptForConnect { +export interface AzureResourceProtectionIntent { /** - * File content of the client script for file / folder restore. + * Polymorphic Discriminator */ - scriptContent?: string; + protectionIntentItemType: "AzureResourceItem"; /** - * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - scriptExtension?: string; + backupManagementType?: BackupManagementType; /** - * OS type - Windows, Linux etc. for which this file / folder restore client script works. + * ARM ID of the resource to be backed up. */ - osType?: string; + sourceResourceId?: string; /** - * URL of Executable from where to source the content. If this is not null then ScriptContent - * should not be used + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - url?: string; + itemId?: string; /** - * Mandatory suffix that should be added to the name of script that is given for download to - * user. - * If its null or empty then , ignore it. + * ID of the backup policy with which this item is backed up. */ - scriptNameSuffix?: string; + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Friendly name of the VM represented by this backup item. + */ + friendlyName?: string; } /** - * Container identity information + * AzureResource(IaaS VM) Specific feature support request */ -export interface ContainerIdentityInfo { +export interface AzureVMResourceFeatureSupportRequest { /** - * Unique name of the container + * Polymorphic Discriminator */ - uniqueName?: string; + featureType: "AzureVMResourceBackup"; /** - * Protection container identity - AAD Tenant + * Size of the resource: VM size(A/D series etc) in case of IaasVM */ - aadTenantId?: string; + vmSize?: string; /** - * Protection container identity - AAD Service Principal + * SKUs (Premium/Managed etc) in case of IaasVM */ - servicePrincipalClientId?: string; + vmSku?: string; +} + +/** + * Response for feature support requests for Azure IaasVm + */ +export interface AzureVMResourceFeatureSupportResponse { /** - * Protection container identity - Audience + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - audience?: string; + supportStatus?: SupportStatus; } /** - * Data Protection Manager (DPM) specific backup engine. + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export interface DpmBackupEngine { +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; + +/** + * Azure Recovery Services Vault specific protection intent item. + */ +export interface AzureWorkloadAutoProtectionIntent { /** * Polymorphic Discriminator */ - backupEngineType: "DpmBackupEngine"; - /** - * 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' */ - dpmVersion?: string; + backupManagementType?: BackupManagementType; /** - * Backup agent version + * ARM ID of the resource to be backed up. */ - azureBackupAgentVersion?: string; + sourceResourceId?: string; /** - * To check if backup agent upgrade available + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - isAzureBackupAgentUpgradeAvailable?: boolean; + itemId?: string; /** - * To check if backup engine upgrade available + * ID of the backup policy with which this item is backed up. */ - isDpmUpgradeAvailable?: boolean; + policyId?: string; /** - * Extended info of the backupengine + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - extendedInfo?: BackupEngineExtendedInfo; -} - -/** - * Additional information of the DPMContainer. - */ -export interface DPMContainerExtendedInfo { + protectionState?: ProtectionStatus; /** - * Last refresh time of the DPMContainer. + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' */ - lastRefreshedAt?: Date; + workloadItemType?: WorkloadItemType; } /** - * Container extended information + * The name of usage. */ -export interface GenericContainerExtendedInfo { - /** - * Public key of container cert - */ - rawCertData?: string; +export interface NameInfo { /** - * Container identity information + * Value of usage. */ - containerIdentityInfo?: ContainerIdentityInfo; + value?: string; /** - * Azure Backup Service Endpoints for the container + * Localized value of usage. */ - serviceEndpoints?: { [propertyName: string]: string }; + localizedValue?: string; } /** - * Base class for generic container of backup items + * Backup management usages of a vault. */ -export interface GenericContainer { - /** - * Polymorphic Discriminator - */ - containerType: "GenericContainer"; +export interface BackupManagementUsage { /** - * Friendly name of the container. + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' */ - friendlyName?: string; + unit?: UsagesUnit; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Quota period of usage. */ - backupManagementType?: BackupManagementType; + quotaPeriod?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Next reset time of usage. */ - registrationStatus?: string; + nextResetTime?: Date; /** - * Status of health of the container. + * Current value of usage. */ - healthStatus?: string; + currentValue?: number; /** - * Name of the container's fabric + * Limit of usage. */ - fabricName?: string; + limit?: number; /** - * Extended information (not returned in List container API calls) + * Name of usage. */ - extendedInformation?: GenericContainerExtendedInfo; + name?: NameInfo; } /** - * IaaS VM workload-specific backup request. + * BackupStatus request. */ -export interface IaasVMBackupRequest { +export interface BackupStatusRequest { /** - * Polymorphic Discriminator + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - objectType: "IaasVMBackupRequest"; + resourceType?: DataSourceType; /** - * Backup copy will expire after the time specified (UTC). + * Entire ARM resource id of the resource */ - recoveryPointExpiryTimeInUTC?: Date; + resourceId?: string; + /** + * Protectable Item Logical Name + */ + poLogicalName?: string; } /** - * Restore files/folders from a backup copy of IaaS VM. + * BackupStatus response. */ -export interface IaasVMILRRegistrationRequest { +export interface BackupStatusResponse { /** - * Polymorphic Discriminator + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ - objectType: "IaasVMILRRegistrationRequest"; + protectionStatus?: ProtectionStatus; /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. + * Specifies the arm resource id of the vault */ - recoveryPointId?: string; + vaultId?: string; /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' */ - virtualMachineId?: string; + fabricName?: FabricName; /** - * iSCSI initiator name. + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. */ - initiatorName?: string; + containerName?: string; /** - * Whether to renew existing registration with the iSCSI server. + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. */ - renewExistingRegistration?: boolean; -} - -/** - * Parameters to Provision ILR API. - */ -export interface ILRRequestResource extends Resource { + protectedItemName?: string; /** - * ILRRequestResource properties + * ErrorCode in case of intent failed */ - properties?: ILRRequestUnion; + 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; } /** - * Target details for file / folder restore. + * Query parameters to fetch backup summaries. */ -export interface InstantItemRecoveryTarget { +export interface BMSBackupSummariesQueryObject { /** - * List of client scripts. + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' */ - clientScripts?: ClientScriptForConnect[]; + type?: Type; } /** - * Additional information of the container. + * 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 MabContainerExtendedInfo { - /** - * Time stamp when this container was refreshed. - */ - lastRefreshedAt?: Date; +export interface PreValidateEnableBackupRequest { /** - * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' */ - backupItemType?: BackupItemType; + resourceType?: DataSourceType; /** - * List of backup items associated with this container. + * ARM Virtual Machine Id */ - backupItems?: string[]; + resourceId?: string; /** - * Backup policy associated with this container. + * ARM id of the Recovery Services Vault */ - policyName?: string; + vaultId?: string; /** - * Latest backup status of this container. + * Configuration of VM if any needs to be validated like OS type etc */ - lastBackupStatus?: string; + properties?: string; } /** - * MAB workload-specific Health Details. + * Response contract for enable backup validation request */ -export interface MABContainerHealthDetails { +export interface PreValidateEnableBackupResponse { /** - * Health Code + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - code?: number; + status?: ValidationStatus; /** - * Health Title + * Response error code */ - title?: string; + errorCode?: string; /** - * Health Message + * Response error message */ - message?: string; + errorMessage?: string; /** - * Health Recommended Actions + * Recommended action for user */ - recommendations?: string[]; + 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; } /** - * Container with items backed up using MAB backup engine. + * Filters to list protection intent. */ -export interface MabContainer { +export interface ProtectionIntentQueryObject { /** - * Polymorphic Discriminator + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerType: "Windows"; + backupManagementType?: BackupManagementType; /** - * Friendly name of the container. + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - friendlyName?: string; + itemType?: IntentItemType; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Parent name of the intent */ - backupManagementType?: BackupManagementType; + parentName?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Item name of the intent */ - registrationStatus?: string; + itemName?: string; +} + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntentResource extends Resource { /** - * Status of health of the container. + * ProtectionIntentResource properties */ - healthStatus?: string; + properties?: ProtectionIntentUnion; +} + +/** + * Localized display information of an operation. + */ +export interface ClientDiscoveryDisplay { /** - * Can the container be registered one more time. + * Name of the provider for display purposes */ - canReRegister?: boolean; + provider?: string; /** - * ContainerID represents the container. + * ResourceType for which this Operation can be performed. */ - containerId?: number; + resource?: string; /** - * Number of items backed up in this container. + * Operations Name itself. */ - protectedItemCount?: number; + operation?: string; /** - * Agent version of this container. + * Description of the operation having details of what operation is about. */ - agentVersion?: string; + description?: string; +} + +/** + * Class to represent shoebox log specification in json client discovery. + */ +export interface ClientDiscoveryForLogSpecification { /** - * Additional information for this container + * Name for shoebox log specification. */ - extendedInfo?: MabContainerExtendedInfo; + name?: string; /** - * Health details on this mab container. + * Localized display name */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + displayName?: string; /** - * Health state of mab container. + * blob duration of shoebox log specification */ - containerHealthState?: string; + blobDuration?: string; } /** - * Operation status job extended info. + * Class to represent shoebox service specification in json client discovery. */ -export interface OperationStatusJobExtendedInfo { +export interface ClientDiscoveryForServiceSpecification { /** - * Polymorphic Discriminator + * List of log specifications of this operation. */ - objectType: "OperationStatusJobExtendedInfo"; + logSpecifications?: ClientDiscoveryForLogSpecification[]; +} + +/** + * Class to represent shoebox properties in json client discovery. + */ +export interface ClientDiscoveryForProperties { /** - * ID of the job created for this protected item. + * Operation properties. */ - jobId?: string; + serviceSpecification?: ClientDiscoveryForServiceSpecification; } /** - * Operation status extended info for list of jobs. + * Available operation details. */ -export interface OperationStatusJobsExtendedInfo { +export interface ClientDiscoveryValueForSingleApi { /** - * Polymorphic Discriminator + * Name of the Operation. */ - objectType: "OperationStatusJobsExtendedInfo"; + name?: string; /** - * IDs of the jobs created for the protected item. + * Contains the localized display information for this particular operation */ - jobIds?: string[]; + display?: ClientDiscoveryDisplay; /** - * Stores all the failed jobs along with the corresponding error codes. + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX */ - failedJobsError?: { [propertyName: string]: string }; + origin?: string; + /** + * ShoeBox properties for the given operation. + */ + properties?: ClientDiscoveryForProperties; } /** - * Operation status extended info for ILR provision action. + * Optional Parameters. */ -export interface OperationStatusProvisionILRExtendedInfo { +export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { /** - * Polymorphic Discriminator + * OData filter options. */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { /** - * Target details for file / folder restore. + * OData filter options. */ - recoveryTarget?: InstantItemRecoveryTarget; + filter?: string; } /** - * Protectable Container Class. + * Optional Parameters. */ -export interface ProtectableContainerResource extends Resource { +export interface RecoveryPointsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * ProtectableContainerResource properties + * OData filter options. */ - properties?: ProtectableContainerUnion; + filter?: string; } /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Optional Parameters. */ -export interface ProtectionContainerResource extends Resource { +export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { /** - * ProtectionContainerResource properties + * OData filter options. */ - properties?: ProtectionContainerUnion; + filter?: string; } /** - * The token information details. + * Optional Parameters. */ -export interface TokenInformation { +export interface BackupPoliciesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Token value. + * OData filter options. */ - token?: string; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { /** - * Expiry time of token. + * OData filter options. */ - expiryTimeInUtcTicks?: number; + filter?: string; /** - * Security PIN + * skipToken Filter. */ - securityPIN?: string; + skipToken?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Optional Parameters. */ -export interface WorkloadItemResource extends Resource { +export interface BackupJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * WorkloadItemResource properties + * OData filter options. */ - properties?: WorkloadItemUnion; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Optional Parameters. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * WorkloadProtectableItemResource properties + * OData filter options. */ - properties?: WorkloadProtectableItemUnion; + filter?: string; } /** - * Localized display information of an operation. + * Optional Parameters. */ -export interface ClientDiscoveryDisplay { - /** - * Name of the provider for display purposes - */ - provider?: string; - /** - * ResourceType for which this Operation can be performed. - */ - resource?: string; +export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { /** - * Operations Name itself. + * OData filter options. */ - operation?: string; + filter?: string; /** - * Description of the operation having details of what operation is about. + * skipToken Filter. */ - description?: string; + skipToken?: string; } /** - * Class to represent shoebox log specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForLogSpecification { - /** - * Name for shoebox log specification. - */ - name?: string; +export interface BackupProtectedItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Localized display name + * OData filter options. */ - displayName?: string; + filter?: string; /** - * blob duration of shoebox log specification + * skipToken Filter. */ - blobDuration?: string; + skipToken?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { /** - * List of log specifications of this operation. + * OData filter options. */ - logSpecifications?: ClientDiscoveryForLogSpecification[]; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Class to represent shoebox properties in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForProperties { +export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { /** - * Operation properties. + * OData filter options. */ - serviceSpecification?: ClientDiscoveryForServiceSpecification; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Available operation details. + * Optional Parameters. */ -export interface ClientDiscoveryValueForSingleApi { - /** - * Name of the Operation. - */ - name?: string; +export interface BackupEnginesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Contains the localized display information for this particular operation + * OData filter options. */ - display?: ClientDiscoveryDisplay; + filter?: string; /** - * The intended executor of the operation;governs the display of the operation in the RBAC UX and - * the audit logs UX + * skipToken Filter. */ - origin?: string; + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { /** - * ShoeBox properties for the given operation. + * OData filter options. */ - properties?: ClientDiscoveryForProperties; + filter?: string; } /** * Optional Parameters. */ -export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7478,7 +8341,7 @@ export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7488,7 +8351,7 @@ export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7498,7 +8361,7 @@ export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7512,17 +8375,21 @@ export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase /** * Optional Parameters. */ -export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7536,7 +8403,7 @@ export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7550,21 +8417,27 @@ export interface BackupProtectionIntentListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** - * skipToken Filter. + * OData filter options. */ - skipToken?: string; + filter?: string; } /** * Optional Parameters. */ -export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7578,7 +8451,7 @@ export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7592,7 +8465,7 @@ export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBas /** * Optional Parameters. */ -export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7602,7 +8475,7 @@ export interface ProtectableContainersListOptionalParams extends msRest.RequestO /** * Optional Parameters. */ -export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7612,17 +8485,21 @@ export interface ProtectionContainersInquireOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7636,7 +8513,7 @@ export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOpt /** * Optional Parameters. */ -export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7650,11 +8527,29 @@ export interface BackupProtectableItemsListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** @@ -7696,22 +8591,6 @@ export interface JobResourceList extends Array, ResourceList { export interface ProtectedItemResourceList extends Array, ResourceList { } -/** - * @interface - * List of ProtectionIntent resources - * @extends Array, ResourceList - */ -export interface ProtectionIntentResourceList extends Array, ResourceList { -} - -/** - * @interface - * Backup management usage for vault. - * @extends Array - */ -export interface BackupManagementUsageList extends Array { -} - /** * @interface * List of BackupEngineBase resources @@ -7752,6 +8631,22 @@ export interface WorkloadProtectableItemResourceList extends Array, ResourceList { } +/** + * @interface + * List of ProtectionIntent resources + * @extends Array, ResourceList + */ +export interface ProtectionIntentResourceList extends Array, ResourceList { +} + +/** + * @interface + * Backup management usage for vault. + * @extends Array + */ +export interface BackupManagementUsageList extends Array { +} + /** * @interface * Operations List response which contains list of available APIs. @@ -7765,12 +8660,29 @@ export interface ClientDiscoveryResponse extends Array + */ + get(azureRegion: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param callback The callback + */ + get(azureRegion: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AADPropertiesResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts new file mode 100644 index 000000000000..cad106a88dd4 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/bMSPrepareDataMoveOperationResultMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BMSPrepareDataMoveOperationResult. */ +export class BMSPrepareDataMoveOperationResult { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BMSPrepareDataMoveOperationResult. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Operation Result for Prepare Data Move + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultStorageConfigOperationResultResponse + }, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts new file mode 100644 index 000000000000..383a74d1df5a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupCrrJobDetailsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobDetails. */ +export class BackupCrrJobDetails { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobDetails. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Get CRR job details from target region. + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param callback The callback + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts new file mode 100644 index 000000000000..2e25ff77a4d9 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -0,0 +1,148 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupCrrJobsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobs. */ +export class BackupCrrJobs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param [options] The optional parameters + * @returns Promise + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param callback The callback + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param options The optional parameters + * @param callback The callback + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, options: Models.BackupCrrJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.BackupCrrJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts index aecd208b72a9..9ac22a3ea19d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,7 +107,7 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -119,8 +118,8 @@ export class BackupEngines { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupEnginesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -142,7 +141,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.backupEngineName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -195,6 +194,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts index c36ed2684408..522d7cf73c8e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupJobs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupJobs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts index 7959e5f3dab7..8e9290a43179 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts index fdbf978c1107..91b7c2923f9f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts index e7d4484b62fc..94401e6c4091 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupPolicies { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupPoliciesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -105,7 +104,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -129,6 +128,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts index 2b45cb7cefea..2b33e4838bfe 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class BackupProtectableItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupProtectableItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectableItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -105,7 +104,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -130,6 +129,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts index 38761446d87f..422090c5aed8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectedItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectedItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectedItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts new file mode 100644 index 000000000000..0f444c1f62fc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupProtectedItemsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupProtectedItemsCrr. */ +export class BackupProtectedItemsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupProtectedItemsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides a pageable list of all items that are backed up within a vault. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectedItemsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Provides a pageable list of all items that are backed up within a vault. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.BackupProtectedItemsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts index 40cd9b6da050..279c2a1427a1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionContainers { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -125,6 +124,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts index d0aa34265091..779e3f685e6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectionIntent { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionIntent { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionIntentListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts new file mode 100644 index 000000000000..a42dd05ebdfa --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupResourceEncryptionConfigsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupResourceEncryptionConfigs. */ +export class BackupResourceEncryptionConfigs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupResourceEncryptionConfigs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Vault Encryption config. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates Vault encryption config. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param [options] The optional parameters + * @returns Promise + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param options The optional parameters + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResourceEncryptionConfigResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceEncryptionConfigResource, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts index bc7bed81ac0b..ad8882f28b87 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,14 +143,14 @@ export class BackupResourceStorageConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -223,7 +222,7 @@ const patchOperationSpec: msRest.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts index c8bedd45887b..ec4af9d145a9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,14 +143,14 @@ export class BackupResourceVaultConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const putOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const putOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts index e02fed8f3ff8..5d2b83f87afb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -69,7 +68,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts index 861abc19f3bd..d667e5042194 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts index 1bb4115b4164..ee09a68b8f45 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -79,7 +78,7 @@ export class BackupWorkloadItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -90,8 +89,8 @@ export class BackupWorkloadItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupWorkloadItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -115,7 +114,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -140,6 +139,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts index 57896dba992a..82e14cb5d8bc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -94,7 +93,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts new file mode 100644 index 000000000000..fd5493cb1ff2 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/crossRegionRestoreMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrossRegionRestore. */ +export class CrossRegionRestore { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrossRegionRestore. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @param [options] The optional parameters + * @returns Promise + */ + trigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginTrigger(azureRegion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @param [options] The optional parameters + * @returns Promise + */ + beginTrigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + azureRegion, + parameters, + options + }, + beginTriggerOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginTriggerOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrossRegionRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts new file mode 100644 index 000000000000..a20e685b63bc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Mappers from "../models/crrOperationResultsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationResults. */ +export class CrrOperationResults { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationResults. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param callback The callback + */ + get(azureRegion: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts new file mode 100644 index 000000000000..b398dff30c42 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/crrOperationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationStatus. */ +export class CrrOperationStatus { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationStatus. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param callback The callback + */ + get(azureRegion: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts index 0e74cf5b1efe..14ffc6988c77 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -81,7 +80,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts index ef4c19f8ed09..c91e18bc8952 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -69,7 +68,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts index cff469100f5c..38cc97a1e556 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -1,15 +1,17 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./privateEndpointConnectionOperations"; export * from "./backupResourceVaultConfigs"; +export * from "./backupResourceEncryptionConfigs"; +export * from "./privateEndpointConnectionOperations"; +export * from "./privateEndpointOperations"; +export * from "./bMSPrepareDataMoveOperationResult"; export * from "./protectedItems"; export * from "./protectedItemOperationResults"; export * from "./recoveryPoints"; @@ -25,11 +27,6 @@ export * from "./exportJobsOperationResults"; export * from "./jobs"; export * from "./backupProtectedItems"; export * from "./operation"; -export * from "./protectionIntentOperations"; -export * from "./backupStatus"; -export * from "./featureSupport"; -export * from "./backupProtectionIntent"; -export * from "./backupUsageSummaries"; export * from "./backupEngines"; export * from "./protectionContainerRefreshOperationResults"; export * from "./protectableContainers"; @@ -45,5 +42,18 @@ export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; +export * from "./aadProperties"; +export * from "./crossRegionRestore"; +export * from "./backupCrrJobDetails"; +export * from "./backupCrrJobs"; +export * from "./crrOperationResults"; +export * from "./crrOperationStatus"; export * from "./backupResourceStorageConfigs"; +export * from "./recoveryPointsCrr"; +export * from "./backupProtectedItemsCrr"; +export * from "./protectionIntentOperations"; +export * from "./backupStatus"; +export * from "./featureSupport"; +export * from "./backupProtectionIntent"; +export * from "./backupUsageSummaries"; export * from "./operations"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts index 63983e7812a3..8006a050e759 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -166,7 +165,7 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -200,7 +199,7 @@ const revokeOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts index 442f5f77e51f..cc37f1eb9e17 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -78,7 +77,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts index bf7a50af9b7f..4b3140a4d111 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -78,7 +77,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts index e09087842b60..432f4d66ea66 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts index ccb2e58ba542..22a36c13b14e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ const exportMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts index 80ce96334588..11bac45a3ce2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -77,7 +76,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts index 6fd0022c8fc0..1b2a56510e81 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.RecoveryServices/operations", queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts index fdb4a5c9916a..8d3664c26fd4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -162,7 +161,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts new file mode 100644 index 000000000000..5a0e41874b96 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a PrivateEndpointOperations. */ +export class PrivateEndpointOperations { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a PrivateEndpointOperations. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the operation status for a private endpoint connection. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param [options] The optional parameters + * @returns Promise + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param callback The callback + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param options The optional parameters + * @param callback The callback + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + privateEndpointConnectionName, + operationId, + options + }, + getOperationStatusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts index 92999e8d95de..10eedab81070 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class ProtectableContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class ProtectableContainers { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ProtectableContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -106,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -130,6 +129,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts index 480fd2b20e17..969a7422c7f2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -93,7 +92,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts index 62e38f8252fd..5f5d5194aa4c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -97,7 +96,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts index 7b0982b4c2e7..0c747365d47d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -193,7 +192,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -222,7 +221,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -258,7 +257,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts index fbfa32adf288..97b771ccda75 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -88,7 +87,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts index e0d2487aeafb..d405484a203c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts index bb1d21630ce3..142a0c99c5cb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -268,7 +267,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -295,7 +294,7 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -356,7 +355,7 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -381,7 +380,7 @@ const refreshOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts index be8a96066335..8b0b7b2ac5d7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -207,7 +206,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +267,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -302,7 +301,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts index a43a693d283a..fc7098d4c045 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/protectionPoliciesMappers"; import * as Parameters from "../models/parameters"; @@ -115,7 +115,7 @@ export class ProtectionPolicies { /** * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous * operation. Status of the - * operation can be fetched using GetPolicyOperationResult API. + * operation can be fetched using GetProtectionPolicyOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. @@ -123,34 +123,32 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param vaultName The name of the recovery services vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param policyName Backup policy to be deleted. - * @param callback The callback - */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(vaultName,resourceGroupName,policyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous + * operation. Status of the + * operation can be fetched using GetProtectionPolicyOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param policyName Backup policy to be deleted. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { vaultName, resourceGroupName, policyName, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } } @@ -166,7 +164,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -192,7 +190,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -216,7 +214,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ @@ -226,7 +224,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts index 85339f8da461..67db8fde3923 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts index 8b487a76d326..636a255a49cf 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -87,7 +86,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts index afd2493318d6..445a5937ddcd 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -126,13 +125,68 @@ export class RecoveryPoints { callback) as Promise; } + /** + * @summary Returns the Access token for communication between BMS and Protection service + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param [options] The optional parameters + * @returns Promise + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param callback The callback + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param options The optional parameters + * @param callback The callback + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + recoveryPointId, + parameters, + options + }, + getAccessTokenOperationSpec, + callback) as Promise; + } + /** * Lists the backup copies for the backed up item. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -143,8 +197,8 @@ export class RecoveryPoints { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RecoveryPointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -169,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -199,7 +253,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -215,6 +269,43 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const getAccessTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName, + Parameters.recoveryPointId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AADPropertiesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CrrAccessTokenResource + }, + 400: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -222,6 +313,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts new file mode 100644 index 000000000000..4fbb081b4346 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recoveryPointsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a RecoveryPointsCrr. */ +export class RecoveryPointsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a RecoveryPointsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the backup copies for the backed up item. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: Models.RecoveryPointsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the backup copies for the backed up item. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.RecoveryPointsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts index 4803b35f92f5..f7781c8774e0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -99,7 +98,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts index 3a4768974be5..d38dc76b7d00 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index af400f29edcc..dfa4d8279f5c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -18,8 +18,11 @@ import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupCli class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups - privateEndpointConnection: operations.PrivateEndpointConnectionOperations; backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; + backupResourceEncryptionConfigs: operations.BackupResourceEncryptionConfigs; + privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + privateEndpoint: operations.PrivateEndpointOperations; + bMSPrepareDataMoveOperationResult: operations.BMSPrepareDataMoveOperationResult; protectedItems: operations.ProtectedItems; protectedItemOperationResults: operations.ProtectedItemOperationResults; recoveryPoints: operations.RecoveryPoints; @@ -35,11 +38,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { jobs: operations.Jobs; backupProtectedItems: operations.BackupProtectedItems; operation: operations.Operation; - protectionIntent: operations.ProtectionIntentOperations; - backupStatus: operations.BackupStatus; - featureSupport: operations.FeatureSupport; - backupProtectionIntent: operations.BackupProtectionIntent; - backupUsageSummaries: operations.BackupUsageSummaries; backupEngines: operations.BackupEngines; protectionContainerRefreshOperationResults: operations.ProtectionContainerRefreshOperationResults; protectableContainers: operations.ProtectableContainers; @@ -55,7 +53,20 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectableItems: operations.BackupProtectableItems; backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; + aadProperties: operations.AadProperties; + crossRegionRestore: operations.CrossRegionRestore; + backupCrrJobDetails: operations.BackupCrrJobDetails; + backupCrrJobs: operations.BackupCrrJobs; + crrOperationResults: operations.CrrOperationResults; + crrOperationStatus: operations.CrrOperationStatus; backupResourceStorageConfigs: operations.BackupResourceStorageConfigs; + recoveryPointsCrr: operations.RecoveryPointsCrr; + backupProtectedItemsCrr: operations.BackupProtectedItemsCrr; + protectionIntent: operations.ProtectionIntentOperations; + backupStatus: operations.BackupStatus; + featureSupport: operations.FeatureSupport; + backupProtectionIntent: operations.BackupProtectionIntent; + backupUsageSummaries: operations.BackupUsageSummaries; operations: operations.Operations; /** @@ -66,8 +77,11 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); - this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); + this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); + this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.privateEndpoint = new operations.PrivateEndpointOperations(this); + this.bMSPrepareDataMoveOperationResult = new operations.BMSPrepareDataMoveOperationResult(this); this.protectedItems = new operations.ProtectedItems(this); this.protectedItemOperationResults = new operations.ProtectedItemOperationResults(this); this.recoveryPoints = new operations.RecoveryPoints(this); @@ -83,11 +97,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.jobs = new operations.Jobs(this); this.backupProtectedItems = new operations.BackupProtectedItems(this); this.operation = new operations.Operation(this); - this.protectionIntent = new operations.ProtectionIntentOperations(this); - this.backupStatus = new operations.BackupStatus(this); - this.featureSupport = new operations.FeatureSupport(this); - this.backupProtectionIntent = new operations.BackupProtectionIntent(this); - this.backupUsageSummaries = new operations.BackupUsageSummaries(this); this.backupEngines = new operations.BackupEngines(this); this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults(this); this.protectableContainers = new operations.ProtectableContainers(this); @@ -103,64 +112,146 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectableItems = new operations.BackupProtectableItems(this); this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(this); + this.aadProperties = new operations.AadProperties(this); + this.crossRegionRestore = new operations.CrossRegionRestore(this); + this.backupCrrJobDetails = new operations.BackupCrrJobDetails(this); + this.backupCrrJobs = new operations.BackupCrrJobs(this); + this.crrOperationResults = new operations.CrrOperationResults(this); + this.crrOperationStatus = new operations.CrrOperationStatus(this); this.backupResourceStorageConfigs = new operations.BackupResourceStorageConfigs(this); + this.recoveryPointsCrr = new operations.RecoveryPointsCrr(this); + this.backupProtectedItemsCrr = new operations.BackupProtectedItemsCrr(this); + this.protectionIntent = new operations.ProtectionIntentOperations(this); + this.backupStatus = new operations.BackupStatus(this); + this.featureSupport = new operations.FeatureSupport(this); + this.backupProtectionIntent = new operations.BackupProtectionIntent(this); + this.backupUsageSummaries = new operations.BackupUsageSummaries(this); this.operations = new operations.Operations(this); } /** - * @summary Gets the operation status for a private endpoint connection. + * Fetches operation status for data move operation on vault * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param [options] The optional parameters * @returns Promise */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param options The optional parameters * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.sendOperationRequest( { vaultName, resourceGroupName, - privateEndpointConnectionName, operationId, options }, getOperationStatusOperationSpec, callback) as Promise; } + + /** + * Prepares source vault for Data Move operation + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Prepare data move request + * @param [options] The optional parameters + * @returns Promise + */ + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Prepare data move request + * @param options The optional parameters + * @param callback The callback + */ + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + bMSPrepareDataMoveOperationSpec, + callback); + } + + /** + * 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()); + } + + /** + * Triggers Data Move Operation on target vault + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Trigger data move request + * @param [options] The optional parameters + * @returns Promise + */ + beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + beginBMSTriggerDataMoveOperationSpec, + options); + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const getOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName, Parameters.operationId ], queryParameters: [ @@ -174,7 +265,69 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationStatus }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const bMSPrepareDataMoveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrepareDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const beginBMSTriggerDataMoveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TriggerDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts index b8a8f744f6cb..1df0cd73d941 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is