diff --git a/packages/@azure/arm-recoveryservicesbackup/LICENSE.txt b/packages/@azure/arm-recoveryservicesbackup/LICENSE.txt index a70e8cf66038..8f3d856145c5 100644 --- a/packages/@azure/arm-recoveryservicesbackup/LICENSE.txt +++ b/packages/@azure/arm-recoveryservicesbackup/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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 -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2019 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-recoveryservicesbackup/README.md b/packages/@azure/arm-recoveryservicesbackup/README.md index da6cf741d901..659ae7d413f3 100644 --- a/packages/@azure/arm-recoveryservicesbackup/README.md +++ b/packages/@azure/arm-recoveryservicesbackup/README.md @@ -1,104 +1,104 @@ -## Azure RecoveryServicesBackupClient SDK for JavaScript - -This package contains an isomorphic SDK for RecoveryServicesBackupClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -``` -npm install @azure/arm-recoveryservicesbackup -``` - -### How to use - -#### nodejs - Authentication, client creation and get protectionIntent as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -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 subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RecoveryServicesBackupClient(creds, subscriptionId); - const vaultName = "testvaultName"; - const resourceGroupName = "testresourceGroupName"; - const fabricName = "testfabricName"; - const intentObjectName = "testintentObjectName"; - client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and get protectionIntent as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-recoveryservicesbackup sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +## Azure RecoveryServicesBackupClient SDK for JavaScript + +This package contains an isomorphic SDK for RecoveryServicesBackupClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-recoveryservicesbackup +``` + +### How to use + +#### nodejs - Authentication, client creation and get protectionIntent as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```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 subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new RecoveryServicesBackupClient(creds, subscriptionId); + const vaultName = "testvaultName"; + const resourceGroupName = "testresourceGroupName"; + const fabricName = "testfabricName"; + const intentObjectName = "testintentObjectName"; + client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and get protectionIntent as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-recoveryservicesbackup sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupEnginesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupEnginesMappers.ts index 16e1619dc7b4..b1341e385275 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupEnginesMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupEnginesMappers.ts @@ -93,6 +93,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -101,8 +102,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -132,8 +133,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureFileShareBackupRequest, AzureFileShareProtectableItem, AzureFileShareRecoveryPoint, @@ -144,6 +143,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupFabricsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupFabricsMappers.ts new file mode 100644 index 000000000000..d8381b409451 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupFabricsMappers.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + GenericBackupFabricResourceList, + ResourceList, + GenericBackupFabricResource, + Resource, + BaseResource, + GenericBackupFabric, + CloudError, + ProtectedItemResource, + ProtectedItem, + ProtectedItemResourceList, + ProtectionContainerResource, + ProtectionContainer, + ProtectionContainerResourceList, + ProtectionPolicyResource, + ProtectionPolicy, + ProtectionPolicyResourceList, + JobResource, + Job, + JobResourceList, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + ProtectionIntentResourceList, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupEngineBaseResourceList, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + ProtectableContainerResourceList, + RecoveryPointResource, + RecoveryPoint, + RecoveryPointResourceList, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadItemResourceList, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResourceList, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectedItem, + GenericProtectionPolicy, + IaaSVMContainer, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabProtectionPolicy, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectedItem, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupJobsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupJobsMappers.ts index 39ef4405362b..b905d527a4b6 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupJobsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupJobsMappers.ts @@ -100,12 +100,13 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -131,8 +132,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -144,6 +143,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupPoliciesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupPoliciesMappers.ts index 979cbe165068..2ce466a8ddaa 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupPoliciesMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupPoliciesMappers.ts @@ -107,6 +107,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -115,8 +116,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -131,8 +132,6 @@ export { EncryptionDetails, MabFileFolderProtectedItem, MabFileFolderProtectedItemExtendedInfo, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -144,6 +143,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectableItemsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectableItemsMappers.ts index 88e28099a7b0..def7442f45ad 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectableItemsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectableItemsMappers.ts @@ -36,6 +36,8 @@ export { AzureFileShareProtectableItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, @@ -101,6 +103,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -109,8 +112,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -140,8 +143,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareRecoveryPoint, @@ -152,6 +153,8 @@ export { AzureStorageProtectableContainer, AzureVMAppContainerProtectableContainer, AzureVmWorkloadItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemWorkloadItem, AzureVmWorkloadSQLDatabaseWorkloadItem, @@ -169,6 +172,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -185,14 +189,17 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSComputeVMContainer, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsInContainerMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsInContainerMappers.ts new file mode 100644 index 000000000000..4e63d8200f37 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsInContainerMappers.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ProtectedItemResourceList, + ResourceList, + ProtectedItemResource, + Resource, + BaseResource, + ProtectedItem, + CloudError, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericBackupFabricResource, + GenericBackupFabric, + GenericBackupFabricResourceList, + GenericProtectedItem, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + ProtectionContainerResource, + ProtectionContainer, + ProtectionContainerResourceList, + ProtectionPolicyResource, + ProtectionPolicy, + ProtectionPolicyResourceList, + JobResource, + Job, + JobResourceList, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + ProtectionIntentResourceList, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupEngineBaseResourceList, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + ProtectableContainerResourceList, + RecoveryPointResource, + RecoveryPoint, + RecoveryPointResourceList, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadItemResourceList, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResourceList, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMProtectionPolicy, + AzureSqlContainer, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectionPolicy, + IaaSVMContainer, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabProtectionPolicy, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSComputeVMContainer, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsMappers.ts index 242358b37e98..0b1d23078f42 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectedItemsMappers.ts @@ -27,6 +27,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, @@ -107,8 +108,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -133,8 +134,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -146,6 +145,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -168,6 +171,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MabContainer, MabContainerExtendedInfo, MABContainerHealthDetails, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersInFabricMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersInFabricMappers.ts new file mode 100644 index 000000000000..beeb8eda2c59 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersInFabricMappers.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ProtectionContainerResourceList, + ResourceList, + ProtectionContainerResource, + Resource, + BaseResource, + ProtectionContainer, + CloudError, + AzureSqlContainer, + AzureStorageContainer, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + ErrorDetail, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + GenericBackupFabricResource, + GenericBackupFabric, + GenericBackupFabricResourceList, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + IaaSVMContainer, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + ProtectedItemResource, + ProtectedItem, + ProtectedItemResourceList, + ProtectionPolicyResource, + ProtectionPolicy, + ProtectionPolicyResourceList, + JobResource, + Job, + JobResourceList, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + ProtectionIntentResourceList, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupEngineBaseResourceList, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + ProtectableContainerResourceList, + RecoveryPointResource, + RecoveryPoint, + RecoveryPointResourceList, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadItemResourceList, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResourceList, + AzureBackupServerContainer, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSClassicComputeVMContainer, + AzureIaaSComputeVMContainer, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabProtectionPolicy, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersMappers.ts index acb4baf90cc6..ce448457025f 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionContainersMappers.ts @@ -33,8 +33,6 @@ export { ProtectionPolicyResource, ProtectionPolicy, ProtectionPolicyResourceList, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureSqlContainer, AzureStorageContainer, AzureWorkloadContainer, @@ -56,6 +54,7 @@ export { BackupResourceVaultConfig, DpmBackupEngine, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -110,6 +109,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -118,8 +118,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -149,6 +149,7 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, + AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -162,6 +163,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -187,12 +192,14 @@ export { RecoveryPointTierInformation, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMProtectableItem, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionIntentMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionIntentMappers.ts index 549fd465820b..6ab5563470f2 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionIntentMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupProtectionIntentMappers.ts @@ -94,6 +94,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadJob, @@ -101,8 +102,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, DpmJob, @@ -131,8 +132,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -144,6 +143,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigMappers.ts new file mode 100644 index 000000000000..16fcb826e3f9 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigMappers.ts @@ -0,0 +1,196 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + BackupResourceConfigResource, + Resource, + BaseResource, + BackupResourceConfig, + CloudError, + GenericBackupFabricResource, + GenericBackupFabric, + ProtectedItemResource, + ProtectedItem, + ProtectionContainerResource, + ProtectionContainer, + ProtectionPolicyResource, + ProtectionPolicy, + JobResource, + Job, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupRequestResource, + BackupRequest, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + RecoveryPointResource, + RecoveryPoint, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectedItem, + GenericProtectionPolicy, + IaaSVMContainer, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabProtectionPolicy, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectedItem, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigsMappers.ts index 412fed0b681b..cc9a9b007148 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceStorageConfigsMappers.ts @@ -81,6 +81,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -89,8 +90,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -120,8 +121,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -133,6 +132,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceVaultConfigsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceVaultConfigsMappers.ts index 38361d0ff112..08ee0be9a0c3 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceVaultConfigsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupResourceVaultConfigsMappers.ts @@ -81,6 +81,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -89,8 +90,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -120,8 +121,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -133,6 +132,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupWorkloadItemsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupWorkloadItemsMappers.ts index 366fc4169fb7..d587ad0ccafe 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupWorkloadItemsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupWorkloadItemsMappers.ts @@ -34,6 +34,8 @@ export { ProtectionPolicy, ProtectionPolicyResourceList, AzureVmWorkloadItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemWorkloadItem, AzureVmWorkloadSQLDatabaseWorkloadItem, @@ -98,6 +100,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -106,8 +109,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -137,8 +140,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -149,6 +150,8 @@ export { AzureVMAppContainerProtectableContainer, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupsMappers.ts index 34f3dd2aaa89..211fff879a82 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/backupsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/backupsMappers.ts @@ -83,6 +83,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -91,8 +92,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -122,8 +123,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareProtectableItem, AzureFileShareRecoveryPoint, @@ -134,6 +133,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/index.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/index.ts index 680278e2ccfc..75492da6d41c 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/index.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/index.ts @@ -72,7 +72,7 @@ export interface AzureFileshareProtectedItemExtendedInfo { /** * Contains the possible cases for ProtectedItem. */ -export type ProtectedItemUnion = ProtectedItem | AzureFileshareProtectedItem | AzureIaaSVMProtectedItemUnion | AzureSqlProtectedItem | AzureVmWorkloadProtectedItemUnion | AzureVmWorkloadSQLDatabaseProtectedItem | DPMProtectedItem | GenericProtectedItem | MabFileFolderProtectedItem; +export type ProtectedItemUnion = ProtectedItem | AzureFileshareProtectedItem | AzureIaaSVMProtectedItemUnion | AzureSqlProtectedItem | AzureVmWorkloadProtectedItemUnion | DPMProtectedItem | GenericProtectedItem | MabFileFolderProtectedItem; /** * @interface @@ -87,7 +87,7 @@ export interface ProtectedItem { protectedItemType: "ProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -97,7 +97,7 @@ export interface ProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -145,7 +145,7 @@ export interface AzureFileshareProtectedItem { protectedItemType: "AzureFileShareProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -155,7 +155,7 @@ export interface AzureFileshareProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -307,7 +307,7 @@ export interface AzureFileShareProtectionPolicy { * management. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workLoadType?: WorkloadType; /** @@ -370,7 +370,7 @@ export interface TargetAFSRestoreInfo { /** * Contains the possible cases for RestoreRequest. */ -export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | AzureWorkloadSAPHanaRestoreRequestUnion | IaasVMRestoreRequest; +export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequest; /** * @interface @@ -448,7 +448,7 @@ export interface AzureIaaSVMProtectedItem { protectedItemType: "AzureIaaSVMProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -458,7 +458,7 @@ export interface AzureIaaSVMProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -555,7 +555,7 @@ export interface AzureIaaSClassicComputeVMProtectedItem { protectedItemType: "Microsoft.ClassicCompute/virtualMachines"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -565,7 +565,7 @@ export interface AzureIaaSClassicComputeVMProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -663,7 +663,7 @@ export interface AzureIaaSComputeVMProtectedItem { protectedItemType: "Microsoft.Compute/virtualMachines"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -673,7 +673,7 @@ export interface AzureIaaSComputeVMProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -847,7 +847,7 @@ export interface AzureIaaSVMJobTaskDetails { /** * @member {string} [taskExecutionDetails] Details about execution of the * task. - * eg: number of bytes transfered etc + * eg: number of bytes transferred etc */ taskExecutionDetails?: string; } @@ -943,7 +943,7 @@ export interface Job { /** * @interface * An interface representing AzureIaaSVMJob. - * Azure IaaS VM workload-specifc job object. + * Azure IaaS VM workload-specific job object. * */ export interface AzureIaaSVMJob { @@ -1089,7 +1089,7 @@ export interface ProtectionIntent { protectionIntentItemType: "ProtectionIntent"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1135,7 +1135,7 @@ export interface AzureRecoveryServiceVaultProtectionIntent { protectionIntentItemType: "RecoveryServiceVaultItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1176,7 +1176,7 @@ export interface AzureResourceProtectionIntent { protectionIntentItemType: "AzureResourceItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1246,7 +1246,7 @@ export interface AzureSqlProtectedItem { protectedItemType: "Microsoft.Sql/servers/databases"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1256,7 +1256,7 @@ export interface AzureSqlProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -1550,7 +1550,7 @@ export interface AzureVmWorkloadProtectedItemExtendedInfo { /** * Contains the possible cases for AzureVmWorkloadProtectedItem. */ -export type AzureVmWorkloadProtectedItemUnion = AzureVmWorkloadProtectedItem | AzureVmWorkloadSAPHanaDatabaseProtectedItem; +export type AzureVmWorkloadProtectedItemUnion = AzureVmWorkloadProtectedItem | AzureVmWorkloadSAPAseDatabaseProtectedItem | AzureVmWorkloadSAPHanaDatabaseProtectedItem | AzureVmWorkloadSQLDatabaseProtectedItem; /** * @interface @@ -1565,7 +1565,7 @@ export interface AzureVmWorkloadProtectedItem { protectedItemType: "AzureVmWorkloadProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1575,7 +1575,7 @@ export interface AzureVmWorkloadProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -1740,7 +1740,7 @@ export interface AzureVmWorkloadProtectionPolicy { * management. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workLoadType?: WorkloadType; /** @@ -1754,10 +1754,129 @@ export interface AzureVmWorkloadProtectionPolicy { subProtectionPolicy?: SubProtectionPolicy[]; } +/** + * @interface + * An interface representing AzureVmWorkloadSAPAseDatabaseProtectedItem. + * Azure VM workload-specific protected item representing SAP ASE Database. + * + */ +export interface AzureVmWorkloadSAPAseDatabaseProtectedItem { + /** + * @member {string} protectedItemType Polymorphic Discriminator + */ + protectedItemType: "AzureVmWorkloadSAPAseDatabase"; + /** + * @member {BackupManagementType} [backupManagementType] Type of backup + * management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', + * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * @member {DataSourceType} [workloadType] Type of workload this item + * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + */ + workloadType?: DataSourceType; + /** + * @member {string} [containerName] Unique name of container + */ + containerName?: string; + /** + * @member {string} [sourceResourceId] ARM ID of the resource to be backed + * up. + */ + sourceResourceId?: string; + /** + * @member {string} [policyId] ID of the backup policy with which this item + * is backed up. + */ + policyId?: string; + /** + * @member {Date} [lastRecoveryPoint] Timestamp when the last (latest) backup + * copy was created for this backup item. + */ + lastRecoveryPoint?: Date; + /** + * @member {string} [backupSetName] Name of the backup set the backup item + * belongs to + */ + backupSetName?: string; + /** + * @member {CreateMode} [createMode] Create mode to indicate recovery of + * existing soft deleted data source or creation of new data source. Possible + * values include: 'Invalid', 'Default', 'Recover' + */ + createMode?: CreateMode; + /** + * @member {string} [friendlyName] Friendly name of the DB represented by + * this backup item. + */ + friendlyName?: string; + /** + * @member {string} [serverName] Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * @member {string} [parentName] Parent name of the DB such as Instance or + * Availability Group. + */ + parentName?: string; + /** + * @member {string} [parentType] Parent type of protected item, example: for + * a DB, standalone server or distributed + */ + parentType?: string; + /** + * @member {string} [protectionStatus] Backup status of this backup item. + */ + protectionStatus?: string; + /** + * @member {ProtectionState} [protectionState] Backup state of this backup + * item. Possible values include: 'Invalid', 'IRPending', 'Protected', + * 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' + */ + protectionState?: ProtectionState; + /** + * @member {LastBackupStatus} [lastBackupStatus] Last backup operation + * status. Possible values: Healthy, Unhealthy. Possible values include: + * 'Invalid', 'Healthy', 'Unhealthy', 'IRPending' + */ + lastBackupStatus?: LastBackupStatus; + /** + * @member {Date} [lastBackupTime] Timestamp of the last backup operation on + * this backup item. + */ + lastBackupTime?: Date; + /** + * @member {ErrorDetail} [lastBackupErrorDetail] Error details in last backup + */ + lastBackupErrorDetail?: ErrorDetail; + /** + * @member {string} [protectedItemDataSourceId] Data ID of the protected + * item. + */ + protectedItemDataSourceId?: string; + /** + * @member {ProtectedItemHealthStatus} [protectedItemHealthStatus] Health + * status of the backup item, evaluated based on last heartbeat received. + * Possible values include: 'Invalid', 'Healthy', 'Unhealthy', + * 'NotReachable', 'IRPending' + */ + protectedItemHealthStatus?: ProtectedItemHealthStatus; + /** + * @member {AzureVmWorkloadProtectedItemExtendedInfo} [extendedInfo] + * Additional information for this backup item. + */ + extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; +} + /** * @interface * An interface representing AzureVmWorkloadSAPHanaDatabaseProtectedItem. - * Azure VM workload-specific protected item representing SAP Hana Database. + * Azure VM workload-specific protected item representing SAP HANA Database. * */ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { @@ -1767,7 +1886,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { protectedItemType: "AzureVmWorkloadSAPHanaDatabase"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1777,7 +1896,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -1886,7 +2005,7 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { protectedItemType: "AzureVmWorkloadSQLDatabase"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -1896,7 +2015,7 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -1944,7 +2063,8 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { */ parentName?: string; /** - * @member {string} [parentType] Parent type of DB, SQLAG or StandAlone + * @member {string} [parentType] Parent type of protected item, example: for + * a DB, standalone server or distributed */ parentType?: string; /** @@ -2009,7 +2129,7 @@ export interface AzureWorkloadAutoProtectionIntent { protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -2180,7 +2300,7 @@ export interface AzureWorkloadJob { /** * Contains the possible cases for AzureWorkloadRestoreRequest. */ -export type AzureWorkloadRestoreRequestUnion = AzureWorkloadRestoreRequest | AzureWorkloadSQLRestoreRequestUnion; +export type AzureWorkloadRestoreRequestUnion = AzureWorkloadRestoreRequest | AzureWorkloadPointInTimeRestoreRequest | AzureWorkloadSAPHanaRestoreRequestUnion | AzureWorkloadSQLRestoreRequestUnion; /** * @interface @@ -2209,6 +2329,73 @@ export interface AzureWorkloadRestoreRequest { * specific property bag. */ propertyBag?: { [propertyName: string]: string }; + /** + * @member {TargetRestoreInfo} [targetInfo] Details of target database + */ + targetInfo?: TargetRestoreInfo; +} + +/** + * @interface + * An interface representing AzureWorkloadPointInTimeRestoreRequest. + * AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log + * restore + * + */ +export interface AzureWorkloadPointInTimeRestoreRequest { + /** + * @member {string} objectType Polymorphic Discriminator + */ + objectType: "AzureWorkloadPointInTimeRestoreRequest"; + /** + * @member {RecoveryType} [recoveryType] OLR/ALR, RestoreDisks is invalid + * option. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks' + */ + recoveryType?: RecoveryType; + /** + * @member {string} [sourceResourceId] Fully qualified ARM ID of the VM on + * which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * @member {{ [propertyName: string]: string }} [propertyBag] Workload + * specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * @member {TargetRestoreInfo} [targetInfo] Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * @member {Date} [pointInTime] PointInTime value + */ + pointInTime?: Date; +} + +/** + * @interface + * An interface representing TargetRestoreInfo. + * Details about target workload during restore operation. + * + */ +export interface TargetRestoreInfo { + /** + * @member {OverwriteOptions} [overwriteOption] Can Overwrite if Target + * DataBase already exists. Possible values include: 'Invalid', + * 'FailOnConflict', 'Overwrite' + */ + overwriteOption?: OverwriteOptions; + /** + * @member {string} [containerId] Resource Id name of the container in which + * Target DataBase resides + */ + containerId?: string; + /** + * @member {string} [databaseName] Database name InstanceName/DataBaseName + * for SQL or System/DbName for SAP Hana + */ + databaseName?: string; } /** @@ -2227,10 +2414,6 @@ export interface AzureWorkloadSAPHanaRestoreRequest { * @member {string} objectType Polymorphic Discriminator */ objectType: "AzureWorkloadSAPHanaRestoreRequest"; - /** - * @member {TargetRestoreInfo} [targetInfo] Details of target database - */ - targetInfo?: TargetRestoreInfo; /** * @member {RecoveryType} [recoveryType] OLR/ALR, RestoreDisks is invalid * option. Possible values include: 'Invalid', 'OriginalLocation', @@ -2247,6 +2430,10 @@ export interface AzureWorkloadSAPHanaRestoreRequest { * specific property bag. */ propertyBag?: { [propertyName: string]: string }; + /** + * @member {TargetRestoreInfo} [targetInfo] Details of target database + */ + targetInfo?: TargetRestoreInfo; } /** @@ -2261,10 +2448,6 @@ export interface AzureWorkloadSAPHanaPointInTimeRestoreRequest { * @member {string} objectType Polymorphic Discriminator */ objectType: "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; - /** - * @member {TargetRestoreInfo} [targetInfo] Details of target database - */ - targetInfo?: TargetRestoreInfo; /** * @member {RecoveryType} [recoveryType] OLR/ALR, RestoreDisks is invalid * option. Possible values include: 'Invalid', 'OriginalLocation', @@ -2282,34 +2465,13 @@ export interface AzureWorkloadSAPHanaPointInTimeRestoreRequest { */ propertyBag?: { [propertyName: string]: string }; /** - * @member {Date} [pointInTime] PointInTime value - */ - pointInTime?: Date; -} - -/** - * @interface - * An interface representing TargetRestoreInfo. - * Details about target workload during restore operation. - * - */ -export interface TargetRestoreInfo { - /** - * @member {OverwriteOptions} [overwriteOption] Can Overwrite if Target - * DataBase already exists. Possible values include: 'Invalid', - * 'FailOnConflict', 'Overwrite' - */ - overwriteOption?: OverwriteOptions; - /** - * @member {string} [containerId] Resource Id name of the container in which - * Target DataBase resides + * @member {TargetRestoreInfo} [targetInfo] Details of target database */ - containerId?: string; + targetInfo?: TargetRestoreInfo; /** - * @member {string} [databaseName] Database name InstanceName/DataBaseName - * for SQL or System/DbName for SAP Hana + * @member {Date} [pointInTime] PointInTime value */ - databaseName?: string; + pointInTime?: Date; } /** @@ -2325,7 +2487,7 @@ export interface AzureWorkloadSQLAutoProtectionIntent { protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -2354,7 +2516,8 @@ export interface AzureWorkloadSQLAutoProtectionIntent { /** * @member {WorkloadItemType} [workloadItemType] Workload item type of the * item for which intent is to be set. Possible values include: 'Invalid', - * 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase' + * 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', + * 'SAPAseSystem', 'SAPAseDatabase' */ workloadItemType?: WorkloadItemType; } @@ -2391,6 +2554,10 @@ export interface AzureWorkloadSQLRestoreRequest { * specific property bag. */ propertyBag?: { [propertyName: string]: string }; + /** + * @member {TargetRestoreInfo} [targetInfo] Details of target database + */ + targetInfo?: TargetRestoreInfo; /** * @member {boolean} [shouldUseAlternateTargetLocation] Default option set to * true. If this is set to false, alternate data directory must be provided @@ -2401,10 +2568,6 @@ export interface AzureWorkloadSQLRestoreRequest { * chose to set no-recovery when restore operation is tried */ isNonRecoverable?: boolean; - /** - * @member {TargetRestoreInfo} [targetInfo] Details of target database - */ - targetInfo?: TargetRestoreInfo; /** * @member {SQLDataDirectoryMapping[]} [alternateDirectoryPaths] Data * directory details @@ -2440,6 +2603,10 @@ export interface AzureWorkloadSQLPointInTimeRestoreRequest { * specific property bag. */ propertyBag?: { [propertyName: string]: string }; + /** + * @member {TargetRestoreInfo} [targetInfo] Details of target database + */ + targetInfo?: TargetRestoreInfo; /** * @member {boolean} [shouldUseAlternateTargetLocation] Default option set to * true. If this is set to false, alternate data directory must be provided @@ -2450,10 +2617,6 @@ export interface AzureWorkloadSQLPointInTimeRestoreRequest { * chose to set no-recovery when restore operation is tried */ isNonRecoverable?: boolean; - /** - * @member {TargetRestoreInfo} [targetInfo] Details of target database - */ - targetInfo?: TargetRestoreInfo; /** * @member {SQLDataDirectoryMapping[]} [alternateDirectoryPaths] Data * directory details @@ -2554,7 +2717,7 @@ export interface BackupStatusRequest { * AzureFileShare. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ resourceType?: DataSourceType; /** @@ -2580,6 +2743,10 @@ export interface BackupStatusResponse { * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ protectionStatus?: ProtectionStatus; + /** + * @member {string} [vaultId] Specifies the arm resource id of the vault + */ + vaultId?: string; /** * @member {FabricName} [fabricName] Specifies the fabric name - Azure or AD. * Possible values include: 'Invalid', 'Azure' @@ -2774,7 +2941,7 @@ export interface DpmJobExtendedInfo { /** * @interface * An interface representing DpmJob. - * DPM workload-specifc job object. + * DPM workload-specific job object. * */ export interface DpmJob { @@ -2938,7 +3105,7 @@ export interface DPMProtectedItem { protectedItemType: "DPMProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -2948,7 +3115,7 @@ export interface DPMProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -2992,7 +3159,7 @@ export interface DPMProtectedItem { backupEngineName?: string; /** * @member {ProtectedItemState} [protectionState] Protection state of the - * backupengine. Possible values include: 'Invalid', 'IRPending', + * backup engine. Possible values include: 'Invalid', 'IRPending', * 'Protected', 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' */ protectionState?: ProtectedItemState; @@ -3093,7 +3260,7 @@ export interface GenericProtectedItem { protectedItemType: "GenericProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -3103,7 +3270,7 @@ export interface GenericProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -3308,9 +3475,9 @@ export interface JobQueryObject { status?: JobStatus; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managmenent for the job. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', - * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * management for the job. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', + * 'AzureWorkload', 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** @@ -3622,7 +3789,7 @@ export interface MabFileFolderProtectedItem { protectedItemType: "MabFileFolderProtectedItem"; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the backed up item. Possible values include: 'Invalid', + * management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -3632,7 +3799,7 @@ export interface MabFileFolderProtectedItem { * represents. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: DataSourceType; /** @@ -3821,7 +3988,8 @@ export interface MabJob { * @member {WorkloadType} [workloadType] Workload type of backup item. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', * 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ workloadType?: WorkloadType; /** @@ -3942,13 +4110,17 @@ export interface PreValidateEnableBackupRequest { * SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', 'VM', * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ resourceType?: DataSourceType; /** * @member {string} [resourceId] ARM Virtual Machine Id */ resourceId?: string; + /** + * @member {string} [vaultId] Specifies the arm resource id of the vault + */ + vaultId?: string; /** * @member {string} [properties] Configuration of VM if any needs to be * validated like OS type etc @@ -4017,7 +4189,8 @@ export interface ProtectedItemQueryObject { * @member {DataSourceType} [itemType] Type of workload this item represents. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', * 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ itemType?: DataSourceType; /** @@ -4128,7 +4301,8 @@ export interface ProtectionPolicyQueryObject { * @member {WorkloadType} [workloadType] Workload type for the backup policy. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', * 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ workloadType?: WorkloadType; } @@ -4298,43 +4472,68 @@ export interface ValidateOperationsResponse { validateOperationResponse?: ValidateOperationResponse; } +/** + * Contains the possible cases for ProtectionContainer. + */ +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; + /** * @interface - * An interface representing DPMContainerExtendedInfo. - * Additional information of the DPMContainer. + * An interface representing ProtectionContainer. + * Base class for container with backup items. Containers with specific + * workloads are derived from this class. * */ -export interface DPMContainerExtendedInfo { +export interface ProtectionContainer { /** - * @member {Date} [lastRefreshedAt] Last refresh time of the DPMContainer. + * @member {string} containerType Polymorphic Discriminator */ - lastRefreshedAt?: Date; + containerType: "ProtectionContainer"; + /** + * @member {string} [friendlyName] Friendly name of the container. + */ + friendlyName?: string; + /** + * @member {BackupManagementType} [backupManagementType] Type of backup + * management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', + * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * @member {string} [registrationStatus] Status of registration of the + * container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * @member {string} [healthStatus] Status of health of the container. + */ + healthStatus?: string; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for DpmContainer. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureBackupServerContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainer | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; /** * @interface - * An interface representing ProtectionContainer. - * Base class for container with backup items. Containers with specific - * workloads are derived from this class. + * An interface representing DpmContainer. + * DPM workload-specific protection container. * */ -export interface ProtectionContainer { +export interface DpmContainer { /** * @member {string} containerType Polymorphic Discriminator */ - containerType: "ProtectionContainer"; + containerType: "DPMContainer"; /** * @member {string} [friendlyName] Friendly name of the container. */ friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -4348,6 +4547,42 @@ export interface ProtectionContainer { * @member {string} [healthStatus] Status of health of the container. */ healthStatus?: string; + /** + * @member {boolean} [canReRegister] Specifies whether the container is + * re-registrable. + */ + canReRegister?: boolean; + /** + * @member {string} [containerId] ID of container. + */ + containerId?: string; + /** + * @member {number} [protectedItemCount] Number of protected items in the + * BackupEngine + */ + protectedItemCount?: number; + /** + * @member {string} [dpmAgentVersion] Backup engine Agent version + */ + dpmAgentVersion?: string; + /** + * @member {string[]} [dpmServers] List of BackupEngines protecting the + * container + */ + dpmServers?: string[]; + /** + * @member {boolean} [upgradeAvailable] To check if upgrade available + */ + upgradeAvailable?: boolean; + /** + * @member {string} [protectionStatus] Protection status of the container. + */ + protectionStatus?: string; + /** + * @member {DPMContainerExtendedInfo} [extendedInfo] Extended Info of the + * container. + */ + extendedInfo?: DPMContainerExtendedInfo; } /** @@ -4367,7 +4602,7 @@ export interface AzureBackupServerContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -4490,7 +4725,7 @@ export interface BackupEngineBase { isDpmUpgradeAvailable?: boolean; /** * @member {BackupEngineExtendedInfo} [extendedInfo] Extended info of the - * backupengine + * backup engine */ extendedInfo?: BackupEngineExtendedInfo; } @@ -4560,7 +4795,7 @@ export interface AzureBackupServerEngine { isDpmUpgradeAvailable?: boolean; /** * @member {BackupEngineExtendedInfo} [extendedInfo] Extended info of the - * backupengine + * backup engine */ extendedInfo?: BackupEngineExtendedInfo; } @@ -4620,7 +4855,7 @@ export interface WorkloadProtectableItem { */ protectableItemType: "WorkloadProtectableItem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -4652,7 +4887,7 @@ export interface AzureFileShareProtectableItem { */ protectableItemType: "AzureFileShare"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -4690,7 +4925,7 @@ export interface AzureFileShareProtectableItem { /** * Contains the possible cases for RecoveryPoint. */ -export type RecoveryPointUnion = RecoveryPoint | AzureFileShareRecoveryPoint | AzureWorkloadRecoveryPointUnion | AzureWorkloadSAPHanaRecoveryPointUnion | GenericRecoveryPoint | IaasVMRecoveryPoint; +export type RecoveryPointUnion = RecoveryPoint | AzureFileShareRecoveryPoint | AzureWorkloadRecoveryPointUnion | GenericRecoveryPoint | IaasVMRecoveryPoint; /** * @interface @@ -4756,7 +4991,7 @@ export interface IaaSVMContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -4805,7 +5040,7 @@ export interface AzureIaaSClassicComputeVMContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -4853,7 +5088,7 @@ export interface IaaSVMProtectableItem { */ protectableItemType: "IaaSVMProtectableItem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -4890,7 +5125,7 @@ export interface AzureIaaSClassicComputeVMProtectableItem { */ protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -4933,7 +5168,7 @@ export interface AzureIaaSComputeVMContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -4977,7 +5212,7 @@ export interface AzureIaaSComputeVMProtectableItem { */ protectableItemType: "Microsoft.Compute/virtualMachines"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5017,14 +5252,14 @@ export interface AzureWorkloadContainer { /** * @member {string} containerType Polymorphic Discriminator */ - containerType: "AzureWorkloadBackupRequest"; + containerType: "AzureWorkloadContainer"; /** * @member {string} [friendlyName] Friendly name of the container. */ friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5058,9 +5293,14 @@ export interface AzureWorkloadContainer { * was sent. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: WorkloadType; + /** + * @member {OperationType} [operationType] Re-Do Operation. Possible values + * include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** @@ -5080,7 +5320,7 @@ export interface AzureSQLAGWorkloadContainerProtectionContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5114,9 +5354,14 @@ export interface AzureSQLAGWorkloadContainerProtectionContainer { * was sent. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: WorkloadType; + /** + * @member {OperationType} [operationType] Re-Do Operation. Possible values + * include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** @@ -5136,7 +5381,7 @@ export interface AzureSqlContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5169,7 +5414,7 @@ export interface AzureStorageContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5225,7 +5470,7 @@ export interface ProtectableContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5257,7 +5502,7 @@ export interface AzureStorageProtectableContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5289,7 +5534,7 @@ export interface AzureVMAppContainerProtectableContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5321,7 +5566,7 @@ export interface AzureVMAppContainerProtectionContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -5355,9 +5600,14 @@ export interface AzureVMAppContainerProtectionContainer { * was sent. Possible values include: 'Invalid', 'VM', 'FileFolder', * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: WorkloadType; + /** + * @member {OperationType} [operationType] Re-Do Operation. Possible values + * include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** @@ -5378,44 +5628,272 @@ export interface WorkloadItem { */ workloadItemType: "WorkloadItem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; /** - * @member {string} [workloadType] Type of workload for the backup management + * @member {string} [workloadType] Type of workload for the backup management + */ + workloadType?: string; + /** + * @member {string} [friendlyName] Friendly name of the backup item. + */ + friendlyName?: string; + /** + * @member {ProtectionStatus} [protectionState] State of the back up item. + * Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; +} + +/** + * Contains the possible cases for AzureVmWorkloadItem. + */ +export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; + +/** + * @interface + * An interface representing AzureVmWorkloadItem. + * Azure VM workload-specific workload item. + * + */ +export interface AzureVmWorkloadItem { + /** + * @member {string} workloadItemType Polymorphic Discriminator + */ + workloadItemType: "AzureVmWorkloadItem"; + /** + * @member {string} [backupManagementType] Type of backup management to + * backup an item. + */ + backupManagementType?: string; + /** + * @member {string} [workloadType] Type of workload for the backup management + */ + workloadType?: string; + /** + * @member {string} [friendlyName] Friendly name of the backup item. + */ + friendlyName?: string; + /** + * @member {ProtectionStatus} [protectionState] State of the back up item. + * Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * @member {string} [parentName] Name for instance or AG + */ + parentName?: string; + /** + * @member {string} [serverName] Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * @member {boolean} [isAutoProtectable] Indicates if workload item is + * auto-protectable + */ + isAutoProtectable?: boolean; + /** + * @member {number} [subinquireditemcount] For instance or AG, indicates + * number of DBs present + */ + subinquireditemcount?: number; + /** + * @member {number} [subWorkloadItemCount] For instance or AG, indicates + * number of DBs to be protected + */ + subWorkloadItemCount?: number; +} + +/** + * @interface + * An interface representing PreBackupValidation. + * Pre-backup validation for Azure VM Workload provider. + * + */ +export interface PreBackupValidation { + /** + * @member {InquiryStatus} [status] Status of protectable item, i.e. + * InProgress,Succeeded,Failed. Possible values include: 'Invalid', + * 'Success', 'Failed' + */ + status?: InquiryStatus; + /** + * @member {string} [code] Error code of protectable item + */ + code?: string; + /** + * @member {string} [message] Message corresponding to the error code for the + * protectable item + */ + message?: string; +} + +/** + * Contains the possible cases for AzureVmWorkloadProtectableItem. + */ +export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseDatabaseProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; + +/** + * @interface + * An interface representing AzureVmWorkloadProtectableItem. + * Azure VM workload-specific protectable item. + * + */ +export interface AzureVmWorkloadProtectableItem { + /** + * @member {string} protectableItemType Polymorphic Discriminator + */ + protectableItemType: "AzureVmWorkloadProtectableItem"; + /** + * @member {string} [backupManagementType] Type of backup management to + * backup an item. + */ + backupManagementType?: string; + /** + * @member {string} [workloadType] Type of workload for the backup management + */ + workloadType?: string; + /** + * @member {string} [friendlyName] Friendly name of the backup item. + */ + friendlyName?: string; + /** + * @member {ProtectionStatus} [protectionState] State of the back up item. + * Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * @member {string} [parentName] Name for instance or AG + */ + parentName?: string; + /** + * @member {string} [parentUniqueName] 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; + /** + * @member {string} [serverName] Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * @member {boolean} [isAutoProtectable] Indicates if protectable item is + * auto-protectable + */ + isAutoProtectable?: boolean; + /** + * @member {boolean} [isAutoProtected] Indicates if protectable item is + * auto-protected + */ + isAutoProtected?: boolean; + /** + * @member {number} [subinquireditemcount] For instance or AG, indicates + * number of DBs present + */ + subinquireditemcount?: number; + /** + * @member {number} [subprotectableitemcount] For instance or AG, indicates + * number of DBs to be protected + */ + subprotectableitemcount?: number; + /** + * @member {PreBackupValidation} [prebackupvalidation] Pre-backup validation + * for protectable objects + */ + prebackupvalidation?: PreBackupValidation; +} + +/** + * @interface + * An interface representing AzureVmWorkloadSAPAseDatabaseProtectableItem. + * Azure VM workload-specific protectable item representing SAP ASE Database. + * + */ +export interface AzureVmWorkloadSAPAseDatabaseProtectableItem { + /** + * @member {string} protectableItemType Polymorphic Discriminator + */ + protectableItemType: "SAPAseDatabase"; + /** + * @member {string} [backupManagementType] Type of backup management to + * backup an item. + */ + backupManagementType?: string; + /** + * @member {string} [workloadType] Type of workload for the backup management + */ + workloadType?: string; + /** + * @member {string} [friendlyName] Friendly name of the backup item. + */ + friendlyName?: string; + /** + * @member {ProtectionStatus} [protectionState] State of the back up item. + * Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * @member {string} [parentName] Name for instance or AG + */ + parentName?: string; + /** + * @member {string} [parentUniqueName] 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; + /** + * @member {string} [serverName] Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * @member {boolean} [isAutoProtectable] Indicates if protectable item is + * auto-protectable + */ + isAutoProtectable?: boolean; + /** + * @member {boolean} [isAutoProtected] Indicates if protectable item is + * auto-protected + */ + isAutoProtected?: boolean; + /** + * @member {number} [subinquireditemcount] For instance or AG, indicates + * number of DBs present */ - workloadType?: string; + subinquireditemcount?: number; /** - * @member {string} [friendlyName] Friendly name of the backup item. + * @member {number} [subprotectableitemcount] For instance or AG, indicates + * number of DBs to be protected */ - friendlyName?: string; + subprotectableitemcount?: number; /** - * @member {ProtectionStatus} [protectionState] State of the back up item. - * Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * @member {PreBackupValidation} [prebackupvalidation] Pre-backup validation + * for protectable objects */ - protectionState?: ProtectionStatus; + prebackupvalidation?: PreBackupValidation; } -/** - * Contains the possible cases for AzureVmWorkloadItem. - */ -export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; - /** * @interface - * An interface representing AzureVmWorkloadItem. - * Azure VM workload-specific workload item. + * An interface representing AzureVmWorkloadSAPAseDatabaseWorkloadItem. + * Azure VM workload-specific workload item representing SAP ASE Database. * */ -export interface AzureVmWorkloadItem { +export interface AzureVmWorkloadSAPAseDatabaseWorkloadItem { /** * @member {string} workloadItemType Polymorphic Discriminator */ - workloadItemType: "AzureVmWorkloadItem"; + workloadItemType: "SAPAseDatabase"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5448,58 +5926,29 @@ export interface AzureVmWorkloadItem { isAutoProtectable?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subWorkloadItemCount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subWorkloadItemCount?: number; } /** * @interface - * An interface representing PreBackupValidation. - * Pre-backup validation for Azure VM Workload provider. - * - */ -export interface PreBackupValidation { - /** - * @member {InquiryStatus} [status] Status of protectable item, i.e. - * InProgress,Succeeded,Failed. Possible values include: 'Invalid', - * 'Success', 'Failed' - */ - status?: InquiryStatus; - /** - * @member {string} [code] Error code of protectable item - */ - code?: string; - /** - * @member {string} [message] Message corresponding to the error code for the - * protectable item - */ - message?: string; -} - -/** - * Contains the possible cases for AzureVmWorkloadProtectableItem. - */ -export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; - -/** - * @interface - * An interface representing AzureVmWorkloadProtectableItem. - * Azure VM workload-specific protectable item. + * An interface representing AzureVmWorkloadSAPAseSystemProtectableItem. + * Azure VM workload-specific protectable item representing SAP ASE System. * */ -export interface AzureVmWorkloadProtectableItem { +export interface AzureVmWorkloadSAPAseSystemProtectableItem { /** * @member {string} protectableItemType Polymorphic Discriminator */ - protectableItemType: "AzureVmWorkloadProtectableItem"; + protectableItemType: "SAPAseSystem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5544,12 +5993,12 @@ export interface AzureVmWorkloadProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -5559,10 +6008,65 @@ export interface AzureVmWorkloadProtectableItem { prebackupvalidation?: PreBackupValidation; } +/** + * @interface + * An interface representing AzureVmWorkloadSAPAseSystemWorkloadItem. + * Azure VM workload-specific workload item representing SAP ASE System. + * + */ +export interface AzureVmWorkloadSAPAseSystemWorkloadItem { + /** + * @member {string} workloadItemType Polymorphic Discriminator + */ + workloadItemType: "SAPAseSystem"; + /** + * @member {string} [backupManagementType] Type of backup management to + * backup an item. + */ + backupManagementType?: string; + /** + * @member {string} [workloadType] Type of workload for the backup management + */ + workloadType?: string; + /** + * @member {string} [friendlyName] Friendly name of the backup item. + */ + friendlyName?: string; + /** + * @member {ProtectionStatus} [protectionState] State of the back up item. + * Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * @member {string} [parentName] Name for instance or AG + */ + parentName?: string; + /** + * @member {string} [serverName] Host/Cluster Name for instance or AG + */ + serverName?: string; + /** + * @member {boolean} [isAutoProtectable] Indicates if workload item is + * auto-protectable + */ + isAutoProtectable?: boolean; + /** + * @member {number} [subinquireditemcount] For instance or AG, indicates + * number of DBs present + */ + subinquireditemcount?: number; + /** + * @member {number} [subWorkloadItemCount] For instance or AG, indicates + * number of DBs to be protected + */ + subWorkloadItemCount?: number; +} + /** * @interface * An interface representing AzureVmWorkloadSAPHanaDatabaseProtectableItem. - * Azure VM workload-specific protectable item representing SAP Hana Database. + * Azure VM workload-specific protectable item representing SAP HANA Database. * */ export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { @@ -5571,7 +6075,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { */ protectableItemType: "SAPHanaDatabase"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5616,12 +6120,12 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -5634,7 +6138,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { /** * @interface * An interface representing AzureVmWorkloadSAPHanaDatabaseWorkloadItem. - * Azure VM workload-specific workload item representing SAP Hana Database. + * Azure VM workload-specific workload item representing SAP HANA Database. * */ export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { @@ -5643,7 +6147,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { */ workloadItemType: "SAPHanaDatabase"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5676,12 +6180,12 @@ export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { isAutoProtectable?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subWorkloadItemCount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subWorkloadItemCount?: number; } @@ -5689,7 +6193,7 @@ export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { /** * @interface * An interface representing AzureVmWorkloadSAPHanaSystemProtectableItem. - * Azure VM workload-specific protectable item representing SAP Hana System. + * Azure VM workload-specific protectable item representing SAP HANA System. * */ export interface AzureVmWorkloadSAPHanaSystemProtectableItem { @@ -5698,7 +6202,7 @@ export interface AzureVmWorkloadSAPHanaSystemProtectableItem { */ protectableItemType: "SAPHanaSystem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5743,12 +6247,12 @@ export interface AzureVmWorkloadSAPHanaSystemProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -5761,7 +6265,7 @@ export interface AzureVmWorkloadSAPHanaSystemProtectableItem { /** * @interface * An interface representing AzureVmWorkloadSAPHanaSystemWorkloadItem. - * Azure VM workload-specific workload item representing SAP Hana System. + * Azure VM workload-specific workload item representing SAP HANA System. * */ export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { @@ -5770,7 +6274,7 @@ export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { */ workloadItemType: "SAPHanaSystem"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5803,12 +6307,12 @@ export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { isAutoProtectable?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subWorkloadItemCount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subWorkloadItemCount?: number; } @@ -5826,7 +6330,7 @@ export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem { */ protectableItemType: "SQLAvailabilityGroupContainer"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5871,12 +6375,12 @@ export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -5898,7 +6402,7 @@ export interface AzureVmWorkloadSQLDatabaseProtectableItem { */ protectableItemType: "SQLDataBase"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -5943,12 +6447,12 @@ export interface AzureVmWorkloadSQLDatabaseProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -5970,7 +6474,7 @@ export interface AzureVmWorkloadSQLDatabaseWorkloadItem { */ workloadItemType: "SQLDataBase"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -6003,12 +6507,12 @@ export interface AzureVmWorkloadSQLDatabaseWorkloadItem { isAutoProtectable?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subWorkloadItemCount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subWorkloadItemCount?: number; } @@ -6025,7 +6529,7 @@ export interface AzureVmWorkloadSQLInstanceProtectableItem { */ protectableItemType: "SQLInstance"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -6070,12 +6574,12 @@ export interface AzureVmWorkloadSQLInstanceProtectableItem { isAutoProtected?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subprotectableitemcount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subprotectableitemcount?: number; /** @@ -6119,7 +6623,7 @@ export interface AzureVmWorkloadSQLInstanceWorkloadItem { */ workloadItemType: "SQLInstance"; /** - * @member {string} [backupManagementType] Type of backup managemenent to + * @member {string} [backupManagementType] Type of backup management to * backup an item. */ backupManagementType?: string; @@ -6152,12 +6656,12 @@ export interface AzureVmWorkloadSQLInstanceWorkloadItem { isAutoProtectable?: boolean; /** * @member {number} [subinquireditemcount] For instance or AG, indicates - * number of DB's present + * number of DBs present */ subinquireditemcount?: number; /** * @member {number} [subWorkloadItemCount] For instance or AG, indicates - * number of DB's to be protected + * number of DBs to be protected */ subWorkloadItemCount?: number; /** @@ -6308,16 +6812,33 @@ export interface AzureWorkloadContainerExtendedInfo { nodesList?: DistributedNodesInfo[]; } +/** + * @interface + * An interface representing PointInTimeRange. + * Provides details for log ranges + * + */ +export interface PointInTimeRange { + /** + * @member {Date} [startTime] Start time of the time range for log recovery. + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the time range for log recovery. + */ + endTime?: Date; +} + /** * Contains the possible cases for AzureWorkloadRecoveryPoint. */ -export type AzureWorkloadRecoveryPointUnion = AzureWorkloadRecoveryPoint | AzureWorkloadSQLRecoveryPointUnion; +export type AzureWorkloadRecoveryPointUnion = AzureWorkloadRecoveryPoint | AzureWorkloadPointInTimeRecoveryPointUnion | AzureWorkloadSAPHanaRecoveryPoint | AzureWorkloadSQLRecoveryPointUnion; /** * @interface * An interface representing AzureWorkloadRecoveryPoint. - * Workload specific recoverypoint, specifcally encaspulates full/diff - * recoverypoint + * Workload specific recovery point, specifically encapsulates full/diff + * recovery point * */ export interface AzureWorkloadRecoveryPoint { @@ -6326,7 +6847,7 @@ export interface AzureWorkloadRecoveryPoint { */ objectType: "AzureWorkloadRecoveryPoint"; /** - * @member {Date} [recoveryPointTimeInUTC] UTC time at which recoverypoint + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point * was created */ recoveryPointTimeInUTC?: Date; @@ -6338,41 +6859,23 @@ export interface AzureWorkloadRecoveryPoint { } /** - * @interface - * An interface representing PointInTimeRange. - * Provides details for log ranges - * - */ -export interface PointInTimeRange { - /** - * @member {Date} [startTime] Start time of the time range for log recovery. - */ - startTime?: Date; - /** - * @member {Date} [endTime] End time of the time range for log recovery. - */ - endTime?: Date; -} - -/** - * Contains the possible cases for AzureWorkloadSAPHanaRecoveryPoint. + * Contains the possible cases for AzureWorkloadPointInTimeRecoveryPoint. */ -export type AzureWorkloadSAPHanaRecoveryPointUnion = AzureWorkloadSAPHanaRecoveryPoint | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; +export type AzureWorkloadPointInTimeRecoveryPointUnion = AzureWorkloadPointInTimeRecoveryPoint | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; /** * @interface - * An interface representing AzureWorkloadSAPHanaRecoveryPoint. - * SAPHana specific recoverypoint, specifcally encaspulates full/diff - * recoverypoints + * An interface representing AzureWorkloadPointInTimeRecoveryPoint. + * Recovery point specific to PointInTime * */ -export interface AzureWorkloadSAPHanaRecoveryPoint { +export interface AzureWorkloadPointInTimeRecoveryPoint { /** * @member {string} objectType Polymorphic Discriminator */ - objectType: "AzureWorkloadSAPHanaRecoveryPoint"; + objectType: "AzureWorkloadPointInTimeRecoveryPoint"; /** - * @member {Date} [recoveryPointTimeInUTC] UTC time at which recoverypoint + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point * was created */ recoveryPointTimeInUTC?: Date; @@ -6381,6 +6884,10 @@ export interface AzureWorkloadSAPHanaRecoveryPoint { * include: 'Invalid', 'Full', 'Log', 'Differential' */ type?: RestorePointType; + /** + * @member {PointInTimeRange[]} [timeRanges] List of log ranges + */ + timeRanges?: PointInTimeRange[]; } /** @@ -6395,7 +6902,7 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { */ objectType: "AzureWorkloadSAPHanaPointInTimeRecoveryPoint"; /** - * @member {Date} [recoveryPointTimeInUTC] UTC time at which recoverypoint + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point * was created */ recoveryPointTimeInUTC?: Date; @@ -6410,6 +6917,30 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { timeRanges?: PointInTimeRange[]; } +/** + * @interface + * An interface representing AzureWorkloadSAPHanaRecoveryPoint. + * SAPHana specific recovery point, specifically encapsulates full/diff + * recovery points + * + */ +export interface AzureWorkloadSAPHanaRecoveryPoint { + /** + * @member {string} objectType Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaRecoveryPoint"; + /** + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point + * was created + */ + recoveryPointTimeInUTC?: Date; + /** + * @member {RestorePointType} [type] Type of restore point. Possible values + * include: 'Invalid', 'Full', 'Log', 'Differential' + */ + type?: RestorePointType; +} + /** * Contains the possible cases for AzureWorkloadSQLRecoveryPoint. */ @@ -6418,8 +6949,8 @@ export type AzureWorkloadSQLRecoveryPointUnion = AzureWorkloadSQLRecoveryPoint | /** * @interface * An interface representing AzureWorkloadSQLRecoveryPoint. - * SQL specific recoverypoint, specifcally encaspulates full/diff recoverypoint - * alongwith extended info + * SQL specific recovery point, specifically encapsulates full/diff recovery + * point along with extended info * */ export interface AzureWorkloadSQLRecoveryPoint { @@ -6428,7 +6959,7 @@ export interface AzureWorkloadSQLRecoveryPoint { */ objectType: "AzureWorkloadSQLRecoveryPoint"; /** - * @member {Date} [recoveryPointTimeInUTC] UTC time at which recoverypoint + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point * was created */ recoveryPointTimeInUTC?: Date; @@ -6460,7 +6991,7 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { */ objectType: "AzureWorkloadSQLPointInTimeRecoveryPoint"; /** - * @member {Date} [recoveryPointTimeInUTC] UTC time at which recoverypoint + * @member {Date} [recoveryPointTimeInUTC] UTC time at which recovery point * was created */ recoveryPointTimeInUTC?: Date; @@ -6529,12 +7060,12 @@ export interface BackupEngineExtendedInfo { */ diskCount?: number; /** - * @member {number} [usedDiskSpace] Diskspace used in the backup engine. + * @member {number} [usedDiskSpace] Disk space used in the backup engine. */ usedDiskSpace?: number; /** - * @member {number} [availableDiskSpace] Diskspace currently available in the - * backup engine. + * @member {number} [availableDiskSpace] Disk space currently available in + * the backup engine. */ availableDiskSpace?: number; /** @@ -6667,7 +7198,7 @@ export interface BackupResourceVaultConfigResource extends Resource { /** * @interface * An interface representing BEKDetails. - * BEK is bitlocker encrpytion key. + * BEK is bitlocker encryption key. * */ export interface BEKDetails { @@ -6783,7 +7314,8 @@ export interface BMSContainersInquiryQueryObject { * @member {WorkloadType} [workloadType] Workload type for this container. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', * 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ workloadType?: WorkloadType; } @@ -6806,7 +7338,7 @@ export interface BMSPOQueryObject { * @member {WorkloadType} [workloadType] Workload type. Possible values * include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: WorkloadType; /** @@ -6885,14 +7417,14 @@ export interface BMSWorkloadItemQueryObject { /** * @member {WorkloadItemType} [workloadItemType] Workload Item type. Possible * values include: 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - * 'SAPHanaDatabase' + * 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ workloadItemType?: WorkloadItemType; /** * @member {WorkloadType} [workloadType] Workload type. Possible values * include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ workloadType?: WorkloadType; /** @@ -6931,7 +7463,7 @@ export interface ClientScriptForConnect { */ url?: string; /** - * @member {string} [scriptNameSuffix] Mandator suffix that should be added + * @member {string} [scriptNameSuffix] 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. */ @@ -7029,78 +7561,22 @@ export interface DpmBackupEngine { isDpmUpgradeAvailable?: boolean; /** * @member {BackupEngineExtendedInfo} [extendedInfo] Extended info of the - * backupengine + * backup engine */ extendedInfo?: BackupEngineExtendedInfo; } /** * @interface - * An interface representing DpmContainer. - * DPM workload-specific protection container. + * An interface representing DPMContainerExtendedInfo. + * Additional information of the DPMContainer. * */ -export interface DpmContainer { - /** - * @member {string} containerType Polymorphic Discriminator - */ - containerType: "DPMContainer"; - /** - * @member {string} [friendlyName] Friendly name of the container. - */ - friendlyName?: string; - /** - * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', - * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * @member {string} [registrationStatus] Status of registration of the - * container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * @member {string} [healthStatus] Status of health of the container. - */ - healthStatus?: string; - /** - * @member {boolean} [canReRegister] Specifies whether the container is - * re-registrable. - */ - canReRegister?: boolean; - /** - * @member {string} [containerId] ID of container. - */ - containerId?: string; - /** - * @member {number} [protectedItemCount] Number of protected items in the - * BackupEngine - */ - protectedItemCount?: number; - /** - * @member {string} [dpmAgentVersion] Backup engine Agent version - */ - dpmAgentVersion?: string; - /** - * @member {string[]} [dpmServers] List of BackupEngines protecting the - * container - */ - dpmServers?: string[]; - /** - * @member {boolean} [upgradeAvailable] To check if upgrade available - */ - upgradeAvailable?: boolean; - /** - * @member {string} [protectionStatus] Protection status of the container. - */ - protectionStatus?: string; +export interface DPMContainerExtendedInfo { /** - * @member {DPMContainerExtendedInfo} [extendedInfo] Extended Info of the - * container. + * @member {Date} [lastRefreshedAt] Last refresh time of the DPMContainer. */ - extendedInfo?: DPMContainerExtendedInfo; + lastRefreshedAt?: Date; } /** @@ -7143,7 +7619,7 @@ export interface GenericContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -7307,11 +7783,11 @@ export interface KEKDetails { * An interface representing KeyAndSecretDetails. * BEK is bitlocker key. * KEK is encryption key for BEK - * If the VM was encrypted then we will store follwing details : + * If the VM was encrypted then we will store following details : * 1. Secret(BEK) - Url + Backup Data + vaultId. * 2. Key(KEK) - Url + Backup Data + vaultId. * 3. EncryptionMechanism - * BEK and KEK can potentiallty have different vault ids. + * BEK and KEK can potentially have different vault ids. * */ export interface KeyAndSecretDetails { @@ -7320,7 +7796,7 @@ export interface KeyAndSecretDetails { */ kekDetails?: KEKDetails; /** - * @member {BEKDetails} [bekDetails] BEK is bitlocker encrpytion key. + * @member {BEKDetails} [bekDetails] BEK is bitlocker encryption key. */ bekDetails?: BEKDetails; /** @@ -7464,7 +7940,7 @@ export interface MabContainerExtendedInfo { * with this container. Possible values include: 'Invalid', 'VM', * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ backupItemType?: BackupItemType; /** @@ -7526,7 +8002,7 @@ export interface MabContainer { friendlyName?: string; /** * @member {BackupManagementType} [backupManagementType] Type of backup - * managemenent for the container. Possible values include: 'Invalid', + * management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', * 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ @@ -8340,11 +8816,11 @@ export type HealthStatus = 'Passed' | 'ActionRequired' | 'ActionSuggested' | 'In * Defines values for WorkloadType. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' * @readonly * @enum {string} */ -export type WorkloadType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase'; +export type WorkloadType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase'; /** * Defines values for RecoveryType. @@ -8430,11 +8906,11 @@ export type OverwriteOptions = 'Invalid' | 'FailOnConflict' | 'Overwrite'; /** * Defines values for WorkloadItemType. * Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - * 'SAPHanaDatabase' + * 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' * @readonly * @enum {string} */ -export type WorkloadItemType = 'Invalid' | 'SQLInstance' | 'SQLDataBase' | 'SAPHanaSystem' | 'SAPHanaDatabase'; +export type WorkloadItemType = 'Invalid' | 'SQLInstance' | 'SQLDataBase' | 'SAPHanaSystem' | 'SAPHanaDatabase' | 'SAPAseSystem' | 'SAPAseDatabase'; /** * Defines values for SQLDataDirectoryType. @@ -8457,11 +8933,11 @@ export type UsagesUnit = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSe * Defines values for DataSourceType. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' * @readonly * @enum {string} */ -export type DataSourceType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase'; +export type DataSourceType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase'; /** * Defines values for ProtectionStatus. @@ -8650,6 +9126,14 @@ export type InquiryStatus = 'Invalid' | 'Success' | 'Failed'; */ export type BackupType = 'Invalid' | 'Full' | 'Differential' | 'Log' | 'CopyOnlyFull'; +/** + * Defines values for OperationType. + * Possible values include: 'Invalid', 'Register', 'Reregister' + * @readonly + * @enum {string} + */ +export type OperationType = 'Invalid' | 'Register' | 'Reregister'; + /** * Defines values for RestorePointType. * Possible values include: 'Invalid', 'Full', 'Log', 'Differential' @@ -8721,11 +9205,11 @@ export type RecoveryPointTierStatus = 'Invalid' | 'Valid' | 'Disabled' | 'Delete * Defines values for BackupItemType. * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase' + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' * @readonly * @enum {string} */ -export type BackupItemType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase'; +export type BackupItemType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase'; /** * Defines values for OperationStatusValues. @@ -9628,6 +10112,25 @@ export type BackupResourceStorageConfigsGetResponse = BackupResourceConfigResour }; }; +/** + * Contains response data for the update operation. + */ +export type BackupResourceStorageConfigsUpdateResponse = BackupResourceConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupResourceConfigResource; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/itemLevelRecoveryConnectionsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/itemLevelRecoveryConnectionsMappers.ts index b148ff86294b..9790286ab0c5 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/itemLevelRecoveryConnectionsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/itemLevelRecoveryConnectionsMappers.ts @@ -82,6 +82,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -90,8 +91,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -121,8 +122,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -134,6 +133,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -156,6 +159,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/jobDetailsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/jobDetailsMappers.ts index a44b82b595d6..95529b85f5c9 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/jobDetailsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/jobDetailsMappers.ts @@ -89,12 +89,13 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -120,8 +121,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -133,6 +132,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/mappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/mappers.ts index 0fe403bf5184..5d46cb292a20 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/mappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/mappers.ts @@ -1546,6 +1546,19 @@ export const AzureVmWorkloadProtectionPolicy: msRest.CompositeMapper = { } }; +export const AzureVmWorkloadSAPAseDatabaseProtectedItem: msRest.CompositeMapper = { + serializedName: "AzureVmWorkloadSAPAseDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectedItem.type.polymorphicDiscriminator, + uberParent: "ProtectedItem", + className: "AzureVmWorkloadSAPAseDatabaseProtectedItem", + modelProperties: { + ...AzureVmWorkloadProtectedItem.type.modelProperties + } + } +}; + export const AzureVmWorkloadSAPHanaDatabaseProtectedItem: msRest.CompositeMapper = { serializedName: "AzureVmWorkloadSAPHanaDatabase", type: { @@ -1567,81 +1580,7 @@ export const AzureVmWorkloadSQLDatabaseProtectedItem: msRest.CompositeMapper = { uberParent: "ProtectedItem", className: "AzureVmWorkloadSQLDatabaseProtectedItem", modelProperties: { - ...ProtectedItem.type.modelProperties, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - type: { - name: "String" - } - }, - parentName: { - serializedName: "parentName", - type: { - name: "String" - } - }, - parentType: { - serializedName: "parentType", - type: { - name: "String" - } - }, - protectionStatus: { - serializedName: "protectionStatus", - type: { - name: "String" - } - }, - protectionState: { - serializedName: "protectionState", - type: { - name: "String" - } - }, - lastBackupStatus: { - serializedName: "lastBackupStatus", - type: { - name: "String" - } - }, - lastBackupTime: { - serializedName: "lastBackupTime", - type: { - name: "DateTime" - } - }, - lastBackupErrorDetail: { - serializedName: "lastBackupErrorDetail", - type: { - name: "Composite", - className: "ErrorDetail" - } - }, - protectedItemDataSourceId: { - serializedName: "protectedItemDataSourceId", - type: { - name: "String" - } - }, - protectedItemHealthStatus: { - serializedName: "protectedItemHealthStatus", - type: { - name: "String" - } - }, - extendedInfo: { - serializedName: "extendedInfo", - type: { - name: "Composite", - className: "AzureVmWorkloadProtectedItemExtendedInfo" - } - } + ...AzureVmWorkloadProtectedItem.type.modelProperties } } }; @@ -1856,63 +1795,27 @@ export const AzureWorkloadRestoreRequest: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const AzureWorkloadSAPHanaRestoreRequest: msRest.CompositeMapper = { - serializedName: "AzureWorkloadSAPHanaRestoreRequest", - type: { - name: "Composite", - polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, - uberParent: "RestoreRequest", - className: "AzureWorkloadSAPHanaRestoreRequest", - modelProperties: { - ...RestoreRequest.type.modelProperties, + }, targetInfo: { serializedName: "targetInfo", type: { name: "Composite", className: "TargetRestoreInfo" } - }, - recoveryType: { - serializedName: "recoveryType", - type: { - name: "String" - } - }, - sourceResourceId: { - serializedName: "sourceResourceId", - type: { - name: "String" - } - }, - propertyBag: { - serializedName: "propertyBag", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } }; -export const AzureWorkloadSAPHanaPointInTimeRestoreRequest: msRest.CompositeMapper = { - serializedName: "AzureWorkloadSAPHanaPointInTimeRestoreRequest", +export const AzureWorkloadPointInTimeRestoreRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadPointInTimeRestoreRequest", type: { name: "Composite", polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, uberParent: "RestoreRequest", - className: "AzureWorkloadSAPHanaPointInTimeRestoreRequest", + className: "AzureWorkloadPointInTimeRestoreRequest", modelProperties: { - ...AzureWorkloadSAPHanaRestoreRequest.type.modelProperties, + ...AzureWorkloadRestoreRequest.type.modelProperties, pointInTime: { serializedName: "pointInTime", type: { @@ -1951,6 +1854,38 @@ export const TargetRestoreInfo: msRest.CompositeMapper = { } }; +export const AzureWorkloadSAPHanaRestoreRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaRestoreRequest", + type: { + name: "Composite", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSAPHanaRestoreRequest", + modelProperties: { + ...AzureWorkloadRestoreRequest.type.modelProperties + } + } +}; + +export const AzureWorkloadSAPHanaPointInTimeRestoreRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaPointInTimeRestoreRequest", + type: { + name: "Composite", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSAPHanaPointInTimeRestoreRequest", + modelProperties: { + ...AzureWorkloadSAPHanaRestoreRequest.type.modelProperties, + pointInTime: { + serializedName: "pointInTime", + type: { + name: "DateTime" + } + } + } + } +}; + export const AzureWorkloadSQLAutoProtectionIntent: msRest.CompositeMapper = { serializedName: "AzureWorkloadSQLAutoProtectionIntent", type: { @@ -1991,13 +1926,6 @@ export const AzureWorkloadSQLRestoreRequest: msRest.CompositeMapper = { name: "Boolean" } }, - targetInfo: { - serializedName: "targetInfo", - type: { - name: "Composite", - className: "TargetRestoreInfo" - } - }, alternateDirectoryPaths: { serializedName: "alternateDirectoryPaths", type: { @@ -2176,6 +2104,12 @@ export const BackupStatusResponse: msRest.CompositeMapper = { name: "String" } }, + vaultId: { + serializedName: "vaultId", + type: { + name: "String" + } + }, fabricName: { serializedName: "fabricName", type: { @@ -3775,6 +3709,12 @@ export const PreValidateEnableBackupRequest: msRest.CompositeMapper = { name: "String" } }, + vaultId: { + serializedName: "vaultId", + type: { + name: "String" + } + }, properties: { serializedName: "properties", type: { @@ -4197,22 +4137,6 @@ export const ValidateOperationsResponse: msRest.CompositeMapper = { } }; -export const DPMContainerExtendedInfo: msRest.CompositeMapper = { - serializedName: "DPMContainerExtendedInfo", - type: { - name: "Composite", - className: "DPMContainerExtendedInfo", - modelProperties: { - lastRefreshedAt: { - serializedName: "lastRefreshedAt", - type: { - name: "DateTime" - } - } - } - } -}; - export const ProtectionContainer: msRest.CompositeMapper = { serializedName: "ProtectionContainer", type: { @@ -4259,13 +4183,13 @@ export const ProtectionContainer: msRest.CompositeMapper = { } }; -export const AzureBackupServerContainer: msRest.CompositeMapper = { - serializedName: "AzureBackupServerContainer", +export const DpmContainer: msRest.CompositeMapper = { + serializedName: "DPMContainer", type: { name: "Composite", polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, uberParent: "ProtectionContainer", - className: "AzureBackupServerContainer", + className: "DpmContainer", modelProperties: { ...ProtectionContainer.type.modelProperties, canReRegister: { @@ -4326,6 +4250,19 @@ export const AzureBackupServerContainer: msRest.CompositeMapper = { } }; +export const AzureBackupServerContainer: msRest.CompositeMapper = { + serializedName: "AzureBackupServerContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureBackupServerContainer", + modelProperties: { + ...DpmContainer.type.modelProperties + } + } +}; + export const BackupEngineBase: msRest.CompositeMapper = { serializedName: "BackupEngineBase", type: { @@ -4708,7 +4645,7 @@ export const AzureIaaSComputeVMProtectableItem: msRest.CompositeMapper = { }; export const AzureWorkloadContainer: msRest.CompositeMapper = { - serializedName: "AzureWorkloadBackupRequest", + serializedName: "AzureWorkloadContainer", type: { name: "Composite", polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, @@ -4740,6 +4677,12 @@ export const AzureWorkloadContainer: msRest.CompositeMapper = { type: { name: "String" } + }, + operationType: { + serializedName: "operationType", + type: { + name: "String" + } } } } @@ -5072,6 +5015,58 @@ export const AzureVmWorkloadProtectableItem: msRest.CompositeMapper = { } }; +export const AzureVmWorkloadSAPAseDatabaseProtectableItem: msRest.CompositeMapper = { + serializedName: "SAPAseDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSAPAseDatabaseProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPAseDatabaseWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPAseDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPAseDatabaseWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPAseSystemProtectableItem: msRest.CompositeMapper = { + serializedName: "SAPAseSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSAPAseSystemProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPAseSystemWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPAseSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPAseSystemWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + export const AzureVmWorkloadSAPHanaDatabaseProtectableItem: msRest.CompositeMapper = { serializedName: "SAPHanaDatabase", type: { @@ -5411,31 +5406,6 @@ export const AzureWorkloadContainerExtendedInfo: msRest.CompositeMapper = { } }; -export const AzureWorkloadRecoveryPoint: msRest.CompositeMapper = { - serializedName: "AzureWorkloadRecoveryPoint", - type: { - name: "Composite", - polymorphicDiscriminator: RecoveryPoint.type.polymorphicDiscriminator, - uberParent: "RecoveryPoint", - className: "AzureWorkloadRecoveryPoint", - modelProperties: { - ...RecoveryPoint.type.modelProperties, - recoveryPointTimeInUTC: { - serializedName: "recoveryPointTimeInUTC", - type: { - name: "DateTime" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - export const PointInTimeRange: msRest.CompositeMapper = { serializedName: "PointInTimeRange", type: { @@ -5458,13 +5428,13 @@ export const PointInTimeRange: msRest.CompositeMapper = { } }; -export const AzureWorkloadSAPHanaRecoveryPoint: msRest.CompositeMapper = { - serializedName: "AzureWorkloadSAPHanaRecoveryPoint", +export const AzureWorkloadRecoveryPoint: msRest.CompositeMapper = { + serializedName: "AzureWorkloadRecoveryPoint", type: { name: "Composite", polymorphicDiscriminator: RecoveryPoint.type.polymorphicDiscriminator, uberParent: "RecoveryPoint", - className: "AzureWorkloadSAPHanaRecoveryPoint", + className: "AzureWorkloadRecoveryPoint", modelProperties: { ...RecoveryPoint.type.modelProperties, recoveryPointTimeInUTC: { @@ -5483,15 +5453,15 @@ export const AzureWorkloadSAPHanaRecoveryPoint: msRest.CompositeMapper = { } }; -export const AzureWorkloadSAPHanaPointInTimeRecoveryPoint: msRest.CompositeMapper = { - serializedName: "AzureWorkloadSAPHanaPointInTimeRecoveryPoint", +export const AzureWorkloadPointInTimeRecoveryPoint: msRest.CompositeMapper = { + serializedName: "AzureWorkloadPointInTimeRecoveryPoint", type: { name: "Composite", polymorphicDiscriminator: RecoveryPoint.type.polymorphicDiscriminator, uberParent: "RecoveryPoint", - className: "AzureWorkloadSAPHanaPointInTimeRecoveryPoint", + className: "AzureWorkloadPointInTimeRecoveryPoint", modelProperties: { - ...AzureWorkloadSAPHanaRecoveryPoint.type.modelProperties, + ...AzureWorkloadRecoveryPoint.type.modelProperties, timeRanges: { serializedName: "timeRanges", type: { @@ -5508,6 +5478,32 @@ export const AzureWorkloadSAPHanaPointInTimeRecoveryPoint: msRest.CompositeMappe } }; +export const AzureWorkloadSAPHanaPointInTimeRecoveryPoint: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaPointInTimeRecoveryPoint", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPoint.type.polymorphicDiscriminator, + uberParent: "RecoveryPoint", + className: "AzureWorkloadSAPHanaPointInTimeRecoveryPoint", + modelProperties: { + ...AzureWorkloadPointInTimeRecoveryPoint.type.modelProperties + } + } +}; + +export const AzureWorkloadSAPHanaRecoveryPoint: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaRecoveryPoint", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPoint.type.polymorphicDiscriminator, + uberParent: "RecoveryPoint", + className: "AzureWorkloadSAPHanaRecoveryPoint", + modelProperties: { + ...AzureWorkloadRecoveryPoint.type.modelProperties + } + } +}; + export const AzureWorkloadSQLRecoveryPoint: msRest.CompositeMapper = { serializedName: "AzureWorkloadSQLRecoveryPoint", type: { @@ -6125,67 +6121,16 @@ export const DpmBackupEngine: msRest.CompositeMapper = { } }; -export const DpmContainer: msRest.CompositeMapper = { - serializedName: "DPMContainer", +export const DPMContainerExtendedInfo: msRest.CompositeMapper = { + serializedName: "DPMContainerExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "DpmContainer", + className: "DPMContainerExtendedInfo", modelProperties: { - ...ProtectionContainer.type.modelProperties, - canReRegister: { - serializedName: "canReRegister", - type: { - name: "Boolean" - } - }, - containerId: { - serializedName: "containerId", - type: { - name: "String" - } - }, - protectedItemCount: { - serializedName: "protectedItemCount", - type: { - name: "Number" - } - }, - dpmAgentVersion: { - serializedName: "dpmAgentVersion", - type: { - name: "String" - } - }, - dpmServers: { - serializedName: "dpmServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - upgradeAvailable: { - serializedName: "upgradeAvailable", - type: { - name: "Boolean" - } - }, - protectionStatus: { - serializedName: "protectionStatus", - type: { - name: "String" - } - }, - extendedInfo: { - serializedName: "extendedInfo", + lastRefreshedAt: { + serializedName: "lastRefreshedAt", type: { - name: "Composite", - className: "DPMContainerExtendedInfo" + name: "DateTime" } } } @@ -7497,10 +7442,12 @@ export const discriminators = { 'FeatureSupportRequest.AzureVMResourceBackup' : AzureVMResourceFeatureSupportRequest, 'ProtectedItem.AzureVmWorkloadProtectedItem' : AzureVmWorkloadProtectedItem, 'ProtectionPolicy.AzureWorkload' : AzureVmWorkloadProtectionPolicy, + 'ProtectedItem.AzureVmWorkloadSAPAseDatabase' : AzureVmWorkloadSAPAseDatabaseProtectedItem, 'ProtectedItem.AzureVmWorkloadSAPHanaDatabase' : AzureVmWorkloadSAPHanaDatabaseProtectedItem, 'ProtectedItem.AzureVmWorkloadSQLDatabase' : AzureVmWorkloadSQLDatabaseProtectedItem, 'ProtectionIntent.AzureWorkloadAutoProtectionIntent' : AzureWorkloadAutoProtectionIntent, 'Job.AzureWorkloadJob' : AzureWorkloadJob, + 'RestoreRequest.AzureWorkloadPointInTimeRestoreRequest' : AzureWorkloadPointInTimeRestoreRequest, 'RestoreRequest.AzureWorkloadRestoreRequest' : AzureWorkloadRestoreRequest, 'RestoreRequest.AzureWorkloadSAPHanaPointInTimeRestoreRequest' : AzureWorkloadSAPHanaPointInTimeRestoreRequest, 'RestoreRequest.AzureWorkloadSAPHanaRestoreRequest' : AzureWorkloadSAPHanaRestoreRequest, @@ -7549,6 +7496,10 @@ export const discriminators = { 'ProtectionContainer.VMAppContainer' : AzureVMAppContainerProtectionContainer, 'WorkloadItem.AzureVmWorkloadItem' : AzureVmWorkloadItem, 'WorkloadProtectableItem.AzureVmWorkloadProtectableItem' : AzureVmWorkloadProtectableItem, + 'WorkloadProtectableItem.SAPAseDatabase' : AzureVmWorkloadSAPAseDatabaseProtectableItem, + 'WorkloadItem.SAPAseDatabase' : AzureVmWorkloadSAPAseDatabaseWorkloadItem, + 'WorkloadProtectableItem.SAPAseSystem' : AzureVmWorkloadSAPAseSystemProtectableItem, + 'WorkloadItem.SAPAseSystem' : AzureVmWorkloadSAPAseSystemWorkloadItem, 'WorkloadProtectableItem.SAPHanaDatabase' : AzureVmWorkloadSAPHanaDatabaseProtectableItem, 'WorkloadItem.SAPHanaDatabase' : AzureVmWorkloadSAPHanaDatabaseWorkloadItem, 'WorkloadProtectableItem.SAPHanaSystem' : AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -7559,7 +7510,8 @@ export const discriminators = { 'WorkloadProtectableItem.SQLInstance' : AzureVmWorkloadSQLInstanceProtectableItem, 'WorkloadItem.SQLInstance' : AzureVmWorkloadSQLInstanceWorkloadItem, 'BackupRequest.AzureWorkloadBackupRequest' : AzureWorkloadBackupRequest, - 'ProtectionContainer.AzureWorkloadBackupRequest' : AzureWorkloadContainer, + 'ProtectionContainer.AzureWorkloadContainer' : AzureWorkloadContainer, + 'RecoveryPoint.AzureWorkloadPointInTimeRecoveryPoint' : AzureWorkloadPointInTimeRecoveryPoint, 'RecoveryPoint.AzureWorkloadRecoveryPoint' : AzureWorkloadRecoveryPoint, 'RecoveryPoint.AzureWorkloadSAPHanaPointInTimeRecoveryPoint' : AzureWorkloadSAPHanaPointInTimeRecoveryPoint, 'RecoveryPoint.AzureWorkloadSAPHanaRecoveryPoint' : AzureWorkloadSAPHanaRecoveryPoint, diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/operationMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/operationMappers.ts index e2805dbd3d58..6b321079dea5 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/operationMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/operationMappers.ts @@ -21,13 +21,14 @@ export { RestoreFileSpecs, TargetAFSRestoreInfo, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, IaasVMRestoreRequest, EncryptionDetails, ValidateIaasVMRestoreOperationRequest, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectableContainersMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectableContainersMappers.ts index 9c389037fd73..170dae368a07 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectableContainersMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectableContainersMappers.ts @@ -94,6 +94,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -102,8 +103,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -133,8 +134,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -144,6 +143,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -166,6 +169,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -183,16 +187,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemOperationResultsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemOperationResultsMappers.ts index c25bf12a3820..837804d22cbe 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemOperationResultsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemOperationResultsMappers.ts @@ -25,6 +25,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, @@ -96,8 +97,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -122,8 +123,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -135,6 +134,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -157,6 +160,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MabContainer, MabContainerExtendedInfo, MABContainerHealthDetails, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemsMappers.ts index c25bf12a3820..837804d22cbe 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectedItemsMappers.ts @@ -25,6 +25,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, @@ -96,8 +97,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -122,8 +123,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -135,6 +134,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -157,6 +160,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MabContainer, MabContainerExtendedInfo, MABContainerHealthDetails, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainerOperationResultsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainerOperationResultsMappers.ts index 09cc9fe81032..9278639d5e11 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainerOperationResultsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainerOperationResultsMappers.ts @@ -27,8 +27,6 @@ export { ProtectionIntent, ProtectionPolicyResource, ProtectionPolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureSqlContainer, AzureStorageContainer, AzureWorkloadContainer, @@ -49,6 +47,7 @@ export { BackupResourceVaultConfig, DpmBackupEngine, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -99,6 +98,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -107,8 +107,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -138,6 +138,7 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, + AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -151,6 +152,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -176,12 +181,14 @@ export { RecoveryPointTierInformation, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMProtectableItem, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainersMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainersMappers.ts index 09cc9fe81032..9278639d5e11 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainersMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionContainersMappers.ts @@ -27,8 +27,6 @@ export { ProtectionIntent, ProtectionPolicyResource, ProtectionPolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureSqlContainer, AzureStorageContainer, AzureWorkloadContainer, @@ -49,6 +47,7 @@ export { BackupResourceVaultConfig, DpmBackupEngine, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -99,6 +98,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -107,8 +107,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -138,6 +138,7 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, + AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -151,6 +152,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -176,12 +181,14 @@ export { RecoveryPointTierInformation, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMProtectableItem, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionIntentOperationsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionIntentOperationsMappers.ts index d7e8abb97a68..31d60511cc9e 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionIntentOperationsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionIntentOperationsMappers.ts @@ -85,6 +85,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadJob, @@ -92,8 +93,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, DpmJob, @@ -122,8 +123,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -135,6 +134,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -157,6 +160,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -174,16 +178,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPoliciesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPoliciesMappers.ts index c291a431765e..9526d1c72a0b 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPoliciesMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPoliciesMappers.ts @@ -96,6 +96,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -104,8 +105,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -120,8 +121,6 @@ export { EncryptionDetails, MabFileFolderProtectedItem, MabFileFolderProtectedItemExtendedInfo, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -133,6 +132,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPolicyOperationResultsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPolicyOperationResultsMappers.ts index c291a431765e..9526d1c72a0b 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPolicyOperationResultsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/protectionPolicyOperationResultsMappers.ts @@ -96,6 +96,7 @@ export { AzureVmWorkloadProtectedItem, ErrorDetail, AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -104,8 +105,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -120,8 +121,6 @@ export { EncryptionDetails, MabFileFolderProtectedItem, MabFileFolderProtectedItemExtendedInfo, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -133,6 +132,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -155,6 +158,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -172,16 +176,19 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/recoveryPointsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/recoveryPointsMappers.ts index 86aa72b5a346..a8c179ebbfd9 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/recoveryPointsMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/recoveryPointsMappers.ts @@ -104,6 +104,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -112,8 +113,8 @@ export { AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, @@ -143,8 +144,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -155,6 +154,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -171,10 +174,12 @@ export { WorkloadInquiryDetails, InquiryValidation, DistributedNodesInfo, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -186,8 +191,10 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/restoresMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/restoresMappers.ts index b710a7bb82bd..3a9ec27da16c 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/models/restoresMappers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/restoresMappers.ts @@ -19,8 +19,8 @@ export { RestoreFileSpecs, TargetAFSRestoreInfo, AzureWorkloadRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest, SQLDataDirectoryMapping, IaasVMRestoreRequest, @@ -88,6 +88,7 @@ export { AzureVmWorkloadProtectionPolicy, Settings, SubProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, AzureWorkloadAutoProtectionIntent, @@ -95,6 +96,7 @@ export { AzureWorkloadErrorInfo, AzureWorkloadJobExtendedInfo, AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRestoreRequest, @@ -122,8 +124,6 @@ export { MabProtectionPolicy, SimpleRetentionPolicy, SimpleSchedulePolicy, - AzureBackupServerContainer, - DPMContainerExtendedInfo, AzureBackupServerEngine, AzureFileShareBackupRequest, AzureFileShareProtectableItem, @@ -135,6 +135,10 @@ export { AzureVmWorkloadItem, AzureVmWorkloadProtectableItem, PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemProtectableItem, @@ -157,6 +161,7 @@ export { AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, DpmContainer, + DPMContainerExtendedInfo, GenericContainer, GenericContainerExtendedInfo, ContainerIdentityInfo, @@ -174,14 +179,16 @@ export { MABContainerHealthDetails, AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem, + AzureBackupServerContainer, AzureIaaSClassicComputeVMContainer, AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMContainer, AzureIaaSComputeVMProtectableItem, AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer, - AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRecoveryPoint } from "../models/mappers"; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedBackupPoliciesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedBackupPoliciesMappers.ts new file mode 100644 index 000000000000..be769bd65a57 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedBackupPoliciesMappers.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ProtectionPolicyResourceList, + ResourceList, + ProtectionPolicyResource, + Resource, + BaseResource, + ProtectionPolicy, + CloudError, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSVMProtectionPolicy, + AzureSqlProtectionPolicy, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + GenericBackupFabricResource, + GenericBackupFabric, + GenericBackupFabricResourceList, + GenericProtectionPolicy, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabProtectionPolicy, + ProtectedItemResource, + ProtectedItem, + ProtectedItemResourceList, + ProtectionContainerResource, + ProtectionContainer, + ProtectionContainerResourceList, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + JobResource, + Job, + JobResourceList, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + ProtectionIntentResourceList, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupEngineBaseResourceList, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + ProtectableContainerResourceList, + RecoveryPointResource, + RecoveryPoint, + RecoveryPointResourceList, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadItemResourceList, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResourceList, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureStorageContainer, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectedItem, + IaaSVMContainer, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectedItem, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPoliciesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPoliciesMappers.ts new file mode 100644 index 000000000000..9c96e3f4bac8 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPoliciesMappers.ts @@ -0,0 +1,196 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ProtectionPolicyResource, + Resource, + BaseResource, + ProtectionPolicy, + CloudError, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSVMProtectionPolicy, + AzureSqlProtectionPolicy, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + GenericBackupFabricResource, + GenericBackupFabric, + GenericProtectionPolicy, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabProtectionPolicy, + ProtectedItemResource, + ProtectedItem, + ProtectionContainerResource, + ProtectionContainer, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + JobResource, + Job, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + RecoveryPointResource, + RecoveryPoint, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureStorageContainer, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectedItem, + IaaSVMContainer, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectedItem, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationResultsMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationResultsMappers.ts new file mode 100644 index 000000000000..9c96e3f4bac8 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationResultsMappers.ts @@ -0,0 +1,196 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ProtectionPolicyResource, + Resource, + BaseResource, + ProtectionPolicy, + CloudError, + AzureFileShareProtectionPolicy, + SchedulePolicy, + RetentionPolicy, + AzureIaaSVMProtectionPolicy, + AzureSqlProtectionPolicy, + AzureVmWorkloadProtectionPolicy, + Settings, + SubProtectionPolicy, + GenericBackupFabricResource, + GenericBackupFabric, + GenericProtectionPolicy, + LogSchedulePolicy, + LongTermRetentionPolicy, + DailyRetentionSchedule, + RetentionDuration, + WeeklyRetentionSchedule, + MonthlyRetentionSchedule, + DailyRetentionFormat, + Day, + WeeklyRetentionFormat, + YearlyRetentionSchedule, + LongTermSchedulePolicy, + MabProtectionPolicy, + ProtectedItemResource, + ProtectedItem, + ProtectionContainerResource, + ProtectionContainer, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + JobResource, + Job, + MabJob, + MabErrorInfo, + MabJobExtendedInfo, + MabJobTaskDetails, + ProtectionIntentResource, + ProtectionIntent, + BackupEngineBaseResource, + BackupEngineBase, + BackupEngineExtendedInfo, + BackupRequestResource, + BackupRequest, + BackupResourceConfigResource, + BackupResourceConfig, + BackupResourceVaultConfigResource, + BackupResourceVaultConfig, + DpmBackupEngine, + IaasVMBackupRequest, + ILRRequestResource, + ILRRequest, + ProtectableContainerResource, + ProtectableContainer, + RecoveryPointResource, + RecoveryPoint, + RestoreRequestResource, + RestoreRequest, + WorkloadItemResource, + WorkloadItem, + WorkloadProtectableItemResource, + WorkloadProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureIaaSVMProtectedItem, + AzureIaaSVMHealthDetails, + AzureIaaSVMProtectedItemExtendedInfo, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureStorageContainer, + AzureVmWorkloadProtectedItem, + ErrorDetail, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + InquiryInfo, + WorkloadInquiryDetails, + InquiryValidation, + DistributedNodesInfo, + DpmContainer, + DPMContainerExtendedInfo, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + GenericContainer, + GenericContainerExtendedInfo, + ContainerIdentityInfo, + GenericProtectedItem, + IaaSVMContainer, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + AzureFileShareRestoreRequest, + RestoreFileSpecs, + TargetAFSRestoreInfo, + AzureIaaSVMJob, + AzureIaaSVMErrorInfo, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureStorageJob, + AzureStorageErrorInfo, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadJob, + AzureWorkloadErrorInfo, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadRestoreRequest, + TargetRestoreInfo, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLRestoreRequest, + SQLDataDirectoryMapping, + DpmJob, + DpmErrorInfo, + DpmJobExtendedInfo, + DpmJobTaskDetails, + IaasVMRestoreRequest, + EncryptionDetails, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileShareRecoveryPoint, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + PreBackupValidation, + AzureVmWorkloadSAPAseDatabaseProtectableItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + SQLDataDirectory, + AzureWorkloadBackupRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + GenericRecoveryPoint, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + KeyAndSecretDetails, + KEKDetails, + BEKDetails, + RecoveryPointTierInformation, + AzureBackupServerContainer, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectedItem, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem, + AzureWorkloadPointInTimeRecoveryPoint, + PointInTimeRange, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationStatusesMappers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationStatusesMappers.ts new file mode 100644 index 000000000000..25a3ba38b457 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/models/scopedProtectionPolicyOperationStatusesMappers.ts @@ -0,0 +1,23 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + OperationStatus, + OperationStatusError, + OperationStatusExtendedInfo, + CloudError, + OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, + OperationStatusProvisionILRExtendedInfo, + InstantItemRecoveryTarget, + ClientScriptForConnect +} from "../models/mappers"; + diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupFabrics.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupFabrics.ts new file mode 100644 index 000000000000..330cb1844fc7 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupFabrics.ts @@ -0,0 +1,350 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupFabricsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupFabrics. */ +export class BackupFabrics { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupFabrics. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Retruns backup fabrics registered to Recovery Services Vault. Returns a pageable list of + * fabrics. + * @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.BackupFabricsListOptionalParams): 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.BackupFabricsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupFabricsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Returns backup fabric registered to Recovery Services 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 fabricName Name of the backup backup fabric. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.BackupFabricsGetOptionalParams): 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 Name of the backup backup fabric. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: 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 Name of the backup backup fabric. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, options: Models.BackupFabricsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.BackupFabricsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update the backup fabric in Recovery Services 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 fabricName Name of the backup backup fabric. + * @param parameters fabric resource item + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, parameters: Models.GenericBackupFabricResource, 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 Name of the backup backup fabric. + * @param parameters fabric resource item + * @param callback The callback + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, parameters: Models.GenericBackupFabricResource, 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 Name of the backup backup fabric. + * @param parameters fabric resource item + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, parameters: Models.GenericBackupFabricResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, parameters: Models.GenericBackupFabricResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the backup fabric in Recovery Services 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 fabricName Name of the backup backup fabric. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: 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 fabricName Name of the backup backup fabric. + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: 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 Name of the backup backup fabric. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retruns backup fabrics registered to Recovery Services Vault. Returns a pageable list of + * fabrics. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GenericBackupFabricResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GenericBackupFabricResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GenericBackupFabricResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GenericBackupFabricResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GenericBackupFabricResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectedItemsInContainer.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectedItemsInContainer.ts new file mode 100644 index 000000000000..61a956cc0506 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectedItemsInContainer.ts @@ -0,0 +1,151 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupProtectedItemsInContainerMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupProtectedItemsInContainer. */ +export class BackupProtectedItemsInContainer { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupProtectedItemsInContainer. + * @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 container. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.BackupProtectedItemsInContainerListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: 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 + * @param containerName + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options: Models.BackupProtectedItemsInContainerListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.BackupProtectedItemsInContainerListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Provides a pageable list of all items that are backed up within a container. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectionContainersInFabric.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectionContainersInFabric.ts new file mode 100644 index 000000000000..3803a8e267cb --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupProtectionContainersInFabric.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupProtectionContainersInFabricMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupProtectionContainersInFabric. */ +export class BackupProtectionContainersInFabric { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupProtectionContainersInFabric. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the containers registered to a backup fabric. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.BackupProtectionContainersInFabricListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: 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 + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, options: Models.BackupProtectionContainersInFabricListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.BackupProtectionContainersInFabricListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the containers registered to a backup fabric. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionContainerResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionContainerResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfig.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfig.ts new file mode 100644 index 000000000000..a94413703fab --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfig.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupResourceStorageConfigMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupResourceStorageConfig. */ +export class BackupResourceStorageConfig { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupResourceStorageConfig. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Updates vault storage model type. + * @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 storage config request + * @param [options] The optional parameters + * @returns Promise + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 storage config request + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 storage config request + * @param options The optional parameters + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceConfigResource, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfigs.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfigs.ts index cea2a82afeb2..88b432170271 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfigs.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/backupResourceStorageConfigs.ts @@ -68,9 +68,9 @@ export class BackupResourceStorageConfigs { * present. * @param parameters Vault storage config request * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase): Promise; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 @@ -78,7 +78,7 @@ export class BackupResourceStorageConfigs { * @param parameters Vault storage config request * @param callback The callback */ - update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 @@ -87,8 +87,8 @@ export class BackupResourceStorageConfigs { * @param options The optional parameters * @param callback The callback */ - update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -97,6 +97,45 @@ export class BackupResourceStorageConfigs { options }, updateOperationSpec, + callback) as Promise; + } + + /** + * Updates vault storage model type. + * @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 storage config request + * @param [options] The optional parameters + * @returns Promise + */ + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 storage config request + * @param callback The callback + */ + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, 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 storage config request + * @param options The optional parameters + * @param callback The callback + */ + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + patchOperationSpec, callback); } } @@ -129,6 +168,38 @@ const getOperationSpec: msRest.OperationSpec = { }; const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupResourceConfigResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/jobDetails.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/jobDetails.ts index 931eef600d36..a454cc6a422e 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/operations/jobDetails.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/jobDetails.ts @@ -27,7 +27,7 @@ export class JobDetails { } /** - * Gets exteded information associated with the job. + * Gets extended information associated with the job. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/protectableContainers.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/protectableContainers.ts index 09cd2204507e..55b6cc6fbbc9 100644 --- a/packages/@azure/arm-recoveryservicesbackup/lib/operations/protectableContainers.ts +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/protectableContainers.ts @@ -31,7 +31,7 @@ export class ProtectableContainers { * @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 fabricName * @param [options] The optional parameters * @returns Promise */ @@ -40,7 +40,7 @@ export class ProtectableContainers { * @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 fabricName * @param callback The callback */ list(vaultName: string, resourceGroupName: string, fabricName: string, callback: msRest.ServiceCallback): void; @@ -48,7 +48,7 @@ export class ProtectableContainers { * @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 fabricName * @param options The optional parameters * @param callback The callback */ diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedBackupPolicies.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedBackupPolicies.ts new file mode 100644 index 000000000000..0211c714cbce --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedBackupPolicies.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/scopedBackupPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ScopedBackupPolicies. */ +export class ScopedBackupPolicies { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ScopedBackupPolicies. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists of backup policies associated with Recovery Services Vault. + * API provides pagination parameters to fetch scoped results. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ScopedBackupPoliciesListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: 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 + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, options: Models.ScopedBackupPoliciesListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ScopedBackupPoliciesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists of backup policies associated with Recovery Services Vault. + * API provides pagination parameters to fetch scoped results. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/policies", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionPolicyResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionPolicyResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicies.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicies.ts new file mode 100644 index 000000000000..0329f784cc67 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicies.ts @@ -0,0 +1,255 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/scopedProtectionPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ScopedProtectionPolicies. */ +export class ScopedProtectionPolicies { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ScopedProtectionPolicies. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides the details of the backup policies associated to Recovery Services Vault. + * This is an asynchronous operation. Status of the operation can be fetched using + * GetScopedPolicyOperationResult 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 fabricName + * @param policyName Backup policy information to be fetched. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, fabricName: 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 fabricName + * @param policyName Backup policy information to be fetched. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 + * @param policyName Backup policy information to be fetched. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + policyName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or modifies a backup policy. This is an asynchronous operation. Status of the + * operation can be fetched using GetScopedPolicyOperationResult 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 fabricName + * @param policyName Backup policy to be created. + * @param parameters resource backup policy + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param policyName Backup policy to be created. + * @param parameters resource backup policy + * @param callback The callback + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, parameters: Models.ProtectionPolicyResource, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param policyName Backup policy to be created. + * @param parameters resource backup policy + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + policyName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes specified backup policy from your Backup Fabric. This is an asynchronous operation. + * Status of the operation can be fetched using GetScopedPolicyOperationResult 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 fabricName + * @param policyName Backup policy to be deleted. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: 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 fabricName + * @param policyName Backup policy to be deleted. + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 + * @param policyName Backup policy to be deleted. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + policyName, + options + }, + deleteMethodOperationSpec, + 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}/backupFabrics/{fabricName}/policies/{policyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.policyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionPolicyResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/policies/{policyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.policyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProtectionPolicyResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProtectionPolicyResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/policies/{policyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.policyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationResults.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationResults.ts new file mode 100644 index 000000000000..f07bc7be7f9d --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationResults.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/scopedProtectionPolicyOperationResultsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ScopedProtectionPolicyOperationResults. */ +export class ScopedProtectionPolicyOperationResults { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ScopedProtectionPolicyOperationResults. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides the result of an 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 fabricName + * @param policyName Backup policy name whose operation's result needs to be fetched. + * @param operationId Operation ID which represents the operation whose result needs to be fetched. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 fabricName + * @param policyName Backup policy name whose operation's result needs to be fetched. + * @param operationId Operation ID which represents the operation whose result needs to be fetched. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 fabricName + * @param policyName Backup policy name whose operation's result needs to be fetched. + * @param operationId Operation ID which represents the operation whose result needs to be fetched. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + policyName, + 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}/backupFabrics/{fabricName}/policies/{policyName}/operationResults/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.policyName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectionPolicyResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationStatuses.ts b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationStatuses.ts new file mode 100644 index 000000000000..9537e0923558 --- /dev/null +++ b/packages/@azure/arm-recoveryservicesbackup/lib/operations/scopedProtectionPolicyOperationStatuses.ts @@ -0,0 +1,108 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/scopedProtectionPolicyOperationStatusesMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ScopedProtectionPolicyOperationStatuses. */ +export class ScopedProtectionPolicyOperationStatuses { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ScopedProtectionPolicyOperationStatuses. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides the status of the asynchronous operations like backup, restore. The status can + * be in progress, completed or failed. You can refer to the Operation Status enum for all + * the possible states of an operation. Some operations create jobs. This method returns the + * list of jobs associated with 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 fabricName + * @param policyName Backup policy name whose operation's status needs to be fetched. + * @param operationId Operation ID which represents an operation whose status needs to be fetched. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 fabricName + * @param policyName Backup policy name whose operation's status needs to be fetched. + * @param operationId Operation ID which represents an operation whose status needs to be fetched. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: 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 fabricName + * @param policyName Backup policy name whose operation's status needs to be fetched. + * @param operationId Operation ID which represents an operation whose status needs to be fetched. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + policyName, + 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}/backupFabrics/{fabricName}/policies/{policyName}/operations/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.policyName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-recoveryservicesbackup/package.json b/packages/@azure/arm-recoveryservicesbackup/package.json index bfde5f25c08e..726a735cecd4 100644 --- a/packages/@azure/arm-recoveryservicesbackup/package.json +++ b/packages/@azure/arm-recoveryservicesbackup/package.json @@ -4,8 +4,8 @@ "description": "RecoveryServicesBackupClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-recoveryservicesbackup", diff --git a/packages/@azure/arm-recoveryservicesbackup/rollup.config.js b/packages/@azure/arm-recoveryservicesbackup/rollup.config.js index 788ec7bfa777..342fdfee87c9 100644 --- a/packages/@azure/arm-recoveryservicesbackup/rollup.config.js +++ b/packages/@azure/arm-recoveryservicesbackup/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/recoveryServicesBackupClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/recoveryServicesBackupClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-recoveryservicesbackup.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;