From 93c1371f3278a19a75cbac8533b2f4a4d746c393 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Wed, 18 Dec 2024 17:21:38 +0800 Subject: [PATCH 1/6] Create ProtectedBackupItemsTests.cs --- .../ProtectedBackupItemsTests.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs new file mode 100644 index 0000000000000..01d55c9d6f8f0 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.RecoveryServices; +using Azure.ResourceManager.RecoveryServices.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Storage; +using Azure.ResourceManager.Storage.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Tests +{ + public class ProtectedBackupItemsTests : RecoveryServicesBackupManagementTestBase + { + public ProtectedBackupItemsTests(bool isAsync) : + base(isAsync, RecordedTestMode.Record) + { + } + + [RecordedTest] + public async Task ListBackupProtectedItems() + { + var sub = await Client.GetDefaultSubscriptionAsync(); + var rg = await CreateResourceGroup(sub, "sdktest", AzureLocation.EastUS); + var resourceGroup = Client.GetResourceGroupResource(new ResourceIdentifier("/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/deleteme1218")); + var backupProtectedItems = resourceGroup.GetBackupProtectedItemsAsync("vaulttest001"); + await foreach (var backupProtectedItem in backupProtectedItems) + {//test normal and stop backup + Console.WriteLine(backupProtectedItem.Data.Name); + } + } + } +} From 3175d6692925ab677c8bb369a17874d008af3ff1 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 19 Dec 2024 16:28:47 +0800 Subject: [PATCH 2/6] update --- .../Sample_BackupProtectedItemCollection.cs | 2 +- .../Sample_BackupProtectedItemResource.cs | 2 +- .../ArmRecoveryServicesBackupModelFactory.cs | 945 +++++++++++++++++- .../Models/BackupGenericProtectedItem.cs | 10 + .../ArmRecoveryServicesBackupModelFactory.cs | 84 +- ...ackupGenericProtectedItem.Serialization.cs | 4 +- .../Models/BackupGenericProtectedItem.cs | 8 +- .../Models/DpmProtectedItem.Serialization.cs | 8 +- .../src/Generated/Models/DpmProtectedItem.cs | 4 +- .../FileshareProtectedItem.Serialization.cs | 8 +- .../Models/FileshareProtectedItem.cs | 4 +- .../GenericProtectedItem.Serialization.cs | 8 +- .../Generated/Models/GenericProtectedItem.cs | 4 +- ...sicComputeVmProtectedItem.Serialization.cs | 8 +- .../IaasClassicComputeVmProtectedItem.cs | 4 +- ...aasComputeVmProtectedItem.Serialization.cs | 8 +- .../Models/IaasComputeVmProtectedItem.cs | 4 +- .../IaasVmProtectedItem.Serialization.cs | 8 +- .../Generated/Models/IaasVmProtectedItem.cs | 4 +- ...abFileFolderProtectedItem.Serialization.cs | 8 +- .../Models/MabFileFolderProtectedItem.cs | 4 +- .../Models/SqlProtectedItem.Serialization.cs | 8 +- .../src/Generated/Models/SqlProtectedItem.cs | 4 +- .../UnknownProtectedItem.Serialization.cs | 8 +- .../Generated/Models/UnknownProtectedItem.cs | 4 +- .../VmWorkloadProtectedItem.Serialization.cs | 8 +- .../Models/VmWorkloadProtectedItem.cs | 4 +- ...pAseDatabaseProtectedItem.Serialization.cs | 8 +- .../VmWorkloadSapAseDatabaseProtectedItem.cs | 4 +- ...naDBInstanceProtectedItem.Serialization.cs | 8 +- ...mWorkloadSapHanaDBInstanceProtectedItem.cs | 4 +- ...HanaDatabaseProtectedItem.Serialization.cs | 8 +- .../VmWorkloadSapHanaDatabaseProtectedItem.cs | 4 +- ...dSqlDatabaseProtectedItem.Serialization.cs | 8 +- .../VmWorkloadSqlDatabaseProtectedItem.cs | 4 +- .../src/autorest.md | 2 +- .../ProtectedBackupItemsTests.cs | 2 +- 37 files changed, 1062 insertions(+), 165 deletions(-) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs index 437bd8ca4043a..ad42273bc18d9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs @@ -48,7 +48,7 @@ public async Task CreateOrUpdate_EnableProtectionOnAzureIaasVm() Properties = new IaasComputeVmProtectedItem { SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), - PolicyId = new ResourceIdentifier("/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy"), + PolicyStringId = "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy", }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, protectedItemName, data); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs index e5d07076cad70..bfc880b0ccecd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs @@ -140,7 +140,7 @@ public async Task Update_EnableProtectionOnAzureIaasVm() Properties = new IaasComputeVmProtectedItem { SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), - PolicyId = new ResourceIdentifier("/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy"), + PolicyStringId = "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy", }, }; ArmOperation lro = await backupProtectedItem.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs index f14e41bf6e7e3..27eea7483b882 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs @@ -487,5 +487,948 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IEnumerable nodesList) => VmWorkloadSqlDatabaseProtectedItem(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, null, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList); + + /// Initializes a new instance of . + /// backup item type. + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// A new instance for mocking. + public static BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null) + { + resourceGuardOperationRequests ??= new List(); + + return new UnknownProtectedItem( + protectedItemType, + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the fileshare represented by this backup item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Health details of different KPIs. + /// Additional information with this backup item. + /// A new instance for mocking. + public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string protectionStatus = null, BackupProtectionState? protectionState = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, IDictionary kpisHealths = null, FileshareProtectedItemExtendedInfo extendedInfo = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + + return new FileshareProtectedItem( + "AzureFileShareProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + kpisHealths, + extendedInfo); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + { + resourceGuardOperationRequests ??= new List(); + healthDetails ??= new List(); + kpisHealths ??= new Dictionary(); + + return new IaasClassicComputeVmProtectedItem( + "Microsoft.ClassicCompute/virtualMachines", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + virtualMachineId, + protectionStatus, + protectionState, + healthStatus, + healthDetails?.ToList(), + kpisHealths, + lastBackupStatus, + lastBackupOn, + protectedItemDataId, + extendedInfo, + extendedProperties); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + { + resourceGuardOperationRequests ??= new List(); + healthDetails ??= new List(); + kpisHealths ??= new Dictionary(); + + return new IaasVmProtectedItem( + "AzureIaaSVMProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + virtualMachineId, + protectionStatus, + protectionState, + healthStatus, + healthDetails?.ToList(), + kpisHealths, + lastBackupStatus, + lastBackupOn, + protectedItemDataId, + extendedInfo, + extendedProperties); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + { + resourceGuardOperationRequests ??= new List(); + healthDetails ??= new List(); + kpisHealths ??= new Dictionary(); + + return new IaasComputeVmProtectedItem( + "Microsoft.Compute/virtualMachines", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + virtualMachineId, + protectionStatus, + protectionState, + healthStatus, + healthDetails?.ToList(), + kpisHealths, + lastBackupStatus, + lastBackupOn, + protectedItemDataId, + extendedInfo, + extendedProperties); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. + /// Backup state of the backed up item. + /// Additional information for this backup item. + /// A new instance for mocking. + public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string protectedItemDataId = null, ProtectedItemState? protectionState = null, SqlProtectedItemExtendedInfo extendedInfo = null) + { + resourceGuardOperationRequests ??= new List(); + + return new SqlProtectedItem( + "Microsoft.Sql/servers/databases", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + protectedItemDataId, + protectionState, + extendedInfo); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the DB represented by this backup item. + /// Host/Cluster Name for instance or AG. + /// Parent name of the DB such as Instance or Availability Group. + /// Parent type of protected item, example: for a DB, standalone server or distributed. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Error details in last backup. + /// Data ID of the protected item. + /// Health status of the backup item, evaluated based on last heartbeat received. + /// Additional information for this backup item. + /// Health details of different KPIs. + /// List of the nodes in case of distributed container. + /// A new instance for mocking. + public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + nodesList ??= new List(); + + return new VmWorkloadProtectedItem( + "AzureVmWorkloadProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + serverName, + parentName, + parentType, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + lastBackupErrorDetail, + protectedItemDataSourceId, + protectedItemHealthStatus, + extendedInfo, + kpisHealths, + nodesList?.ToList()); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the DB represented by this backup item. + /// Host/Cluster Name for instance or AG. + /// Parent name of the DB such as Instance or Availability Group. + /// Parent type of protected item, example: for a DB, standalone server or distributed. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Error details in last backup. + /// Data ID of the protected item. + /// Health status of the backup item, evaluated based on last heartbeat received. + /// Additional information for this backup item. + /// Health details of different KPIs. + /// List of the nodes in case of distributed container. + /// A new instance for mocking. + public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + nodesList ??= new List(); + + return new VmWorkloadSapAseDatabaseProtectedItem( + "AzureVmWorkloadSAPAseDatabase", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + serverName, + parentName, + parentType, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + lastBackupErrorDetail, + protectedItemDataSourceId, + protectedItemHealthStatus, + extendedInfo, + kpisHealths, + nodesList?.ToList()); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the DB represented by this backup item. + /// Host/Cluster Name for instance or AG. + /// Parent name of the DB such as Instance or Availability Group. + /// Parent type of protected item, example: for a DB, standalone server or distributed. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Error details in last backup. + /// Data ID of the protected item. + /// Health status of the backup item, evaluated based on last heartbeat received. + /// Additional information for this backup item. + /// Health details of different KPIs. + /// List of the nodes in case of distributed container. + /// A new instance for mocking. + public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + nodesList ??= new List(); + + return new VmWorkloadSapHanaDatabaseProtectedItem( + "AzureVmWorkloadSAPHanaDatabase", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + serverName, + parentName, + parentType, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + lastBackupErrorDetail, + protectedItemDataSourceId, + protectedItemHealthStatus, + extendedInfo, + kpisHealths, + nodesList?.ToList()); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the DB represented by this backup item. + /// Host/Cluster Name for instance or AG. + /// Parent name of the DB such as Instance or Availability Group. + /// Parent type of protected item, example: for a DB, standalone server or distributed. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Error details in last backup. + /// Data ID of the protected item. + /// Health status of the backup item, evaluated based on last heartbeat received. + /// Additional information for this backup item. + /// Health details of different KPIs. + /// List of the nodes in case of distributed container. + /// A new instance for mocking. + public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + nodesList ??= new List(); + + return new VmWorkloadSapHanaDBInstanceProtectedItem( + "AzureVmWorkloadSAPHanaDBInstance", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + serverName, + parentName, + parentType, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + lastBackupErrorDetail, + protectedItemDataSourceId, + protectedItemHealthStatus, + extendedInfo, + kpisHealths, + nodesList?.ToList()); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the DB represented by this backup item. + /// Host/Cluster Name for instance or AG. + /// Parent name of the DB such as Instance or Availability Group. + /// Parent type of protected item, example: for a DB, standalone server or distributed. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Last backup operation status. Possible values: Healthy, Unhealthy. + /// Timestamp of the last backup operation on this backup item. + /// Error details in last backup. + /// Data ID of the protected item. + /// Health status of the backup item, evaluated based on last heartbeat received. + /// Additional information for this backup item. + /// Health details of different KPIs. + /// List of the nodes in case of distributed container. + /// A new instance for mocking. + public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + { + resourceGuardOperationRequests ??= new List(); + kpisHealths ??= new Dictionary(); + nodesList ??= new List(); + + return new VmWorkloadSqlDatabaseProtectedItem( + "AzureVmWorkloadSQLDatabase", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + serverName, + parentName, + parentType, + protectionStatus, + protectionState, + lastBackupStatus, + lastBackupOn, + lastBackupErrorDetail, + protectedItemDataSourceId, + protectedItemHealthStatus, + extendedInfo, + kpisHealths, + nodesList?.ToList()); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the managed item. + /// Backup Management server protecting this backup item. + /// Protection state of the backup engine. + /// Extended info of the backup item. + /// A new instance for mocking. + public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string backupEngineName = null, ProtectedItemState? protectionState = null, DpmProtectedItemExtendedInfo extendedInfo = null) + { + resourceGuardOperationRequests ??= new List(); + + return new DpmProtectedItem( + "DPMProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + backupEngineName, + protectionState, + extendedInfo); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the container. + /// Indicates consistency of policy object and policy applied to this backup item. + /// Backup state of this backup item. + /// Data Plane Service ID of the protected item. + /// Loosely coupled (type, value) associations (example - parent of a protected item). + /// Name of this backup item's fabric. + /// A new instance for mocking. + public static GenericProtectedItem GenericProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string policyState = null, BackupProtectionState? protectionState = null, long? protectedItemId = null, IDictionary sourceAssociations = null, string fabricName = null) + { + resourceGuardOperationRequests ??= new List(); + sourceAssociations ??= new Dictionary(); + + return new GenericProtectedItem( + "GenericProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + policyState, + protectionState, + protectedItemId, + sourceAssociations, + fabricName); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of this backup item. + /// Name of the computer associated with this backup item. + /// Status of last backup operation. + /// Timestamp of the last backup operation on this backup item. + /// Protected, ProtectionStopped, IRPending or ProtectionError. + /// Sync time for deferred deletion in UTC. + /// Additional information with this backup item. + /// A new instance for mocking. + public static MabFileFolderProtectedItem MabFileFolderProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectionState = null, long? deferredDeleteSyncTimeInUTC = null, MabFileFolderProtectedItemExtendedInfo extendedInfo = null) + { + resourceGuardOperationRequests ??= new List(); + + return new MabFileFolderProtectedItem( + "MabFileFolderProtectedItem", + backupManagementType, + workloadType, + containerName, + sourceResourceId, + policyId.ToString(), + lastRecoverOn, + backupSetName, + createMode, + deferredDeletedOn, + isScheduledForDeferredDelete, + deferredDeleteTimeRemaining, + isDeferredDeleteScheduleUpcoming, + isRehydrate, + resourceGuardOperationRequests?.ToList(), + isArchiveEnabled, + policyName, + softDeleteRetentionPeriodInDays, + vaultId, + serializedAdditionalRawData: null, + friendlyName, + computerName, + lastBackupStatus, + lastBackupOn, + protectionState, + deferredDeleteSyncTimeInUTC, + extendedInfo); + } } -} \ No newline at end of file +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs index c3885364ae286..12a8bf533be20 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs @@ -1,7 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.ComponentModel; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { @@ -20,5 +22,13 @@ public int? SoftDeleteRetentionPeriod SoftDeleteRetentionPeriodInDays = value; } } + + /// ID of the backup policy with which this item is backed up. + [EditorBrowsable(EditorBrowsableState.Never)] + public ResourceIdentifier PolicyId + { + get => string.IsNullOrEmpty(PolicyStringId) ? null : new ResourceIdentifier(PolicyId); + set => PolicyId = new ResourceIdentifier(PolicyStringId); + } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs index f4d0f20ab6fdc..033f217d1df21 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs @@ -348,7 +348,7 @@ public static BackupProtectedItemData BackupProtectedItemData(ResourceIdentifier /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -363,7 +363,7 @@ public static BackupProtectedItemData BackupProtectedItemData(ResourceIdentifier /// Soft delete retention period in days. /// ID of the vault which protects this item. /// A new instance for mocking. - public static BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null) + public static BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null) { resourceGuardOperationRequests ??= new List(); @@ -373,7 +373,7 @@ public static BackupGenericProtectedItem BackupGenericProtectedItem(string prote workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -779,7 +779,7 @@ public static FetchTieringCostInfoContent FetchTieringCostInfoContent(RecoveryPo /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -801,7 +801,7 @@ public static FetchTieringCostInfoContent FetchTieringCostInfoContent(RecoveryPo /// Health details of different KPIs. /// Additional information with this backup item. /// A new instance for mocking. - public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string protectionStatus = null, BackupProtectionState? protectionState = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, IDictionary kpisHealths = null, FileshareProtectedItemExtendedInfo extendedInfo = null) + public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string protectionStatus = null, BackupProtectionState? protectionState = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, IDictionary kpisHealths = null, FileshareProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -812,7 +812,7 @@ public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -872,7 +872,7 @@ public static FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedI /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -899,7 +899,7 @@ public static FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedI /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. - public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -911,7 +911,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -945,7 +945,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -972,7 +972,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. - public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -984,7 +984,7 @@ public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? back workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1031,7 +1031,7 @@ public static IaasVmHealthDetails IaasVmHealthDetails(int? code = null, string t /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1058,7 +1058,7 @@ public static IaasVmHealthDetails IaasVmHealthDetails(int? code = null, string t /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. - public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -1070,7 +1070,7 @@ public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManage workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1117,7 +1117,7 @@ public static IaasVmErrorInfo IaasVmErrorInfo(int? errorCode = null, string erro /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1135,7 +1135,7 @@ public static IaasVmErrorInfo IaasVmErrorInfo(int? errorCode = null, string erro /// Backup state of the backed up item. /// Additional information for this backup item. /// A new instance for mocking. - public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string protectedItemDataId = null, ProtectedItemState? protectionState = null, SqlProtectedItemExtendedInfo extendedInfo = null) + public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string protectedItemDataId = null, ProtectedItemState? protectionState = null, SqlProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -1145,7 +1145,7 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1170,7 +1170,7 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1199,7 +1199,7 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. - public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -1211,7 +1211,7 @@ public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementTy workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1259,7 +1259,7 @@ public static BackupErrorDetail BackupErrorDetail(string code = null, string mes /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1288,7 +1288,7 @@ public static BackupErrorDetail BackupErrorDetail(string code = null, string mes /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. - public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -1300,7 +1300,7 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1336,7 +1336,7 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1365,7 +1365,7 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. - public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -1377,7 +1377,7 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1413,7 +1413,7 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1442,7 +1442,7 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. - public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -1454,7 +1454,7 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1490,7 +1490,7 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1519,7 +1519,7 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. - public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) + public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); kpisHealths ??= new Dictionary(); @@ -1531,7 +1531,7 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1567,7 +1567,7 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1586,7 +1586,7 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI /// Protection state of the backup engine. /// Extended info of the backup item. /// A new instance for mocking. - public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string backupEngineName = null, ProtectedItemState? protectionState = null, DpmProtectedItemExtendedInfo extendedInfo = null) + public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string backupEngineName = null, ProtectedItemState? protectionState = null, DpmProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -1596,7 +1596,7 @@ public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupMana workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1622,7 +1622,7 @@ public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupMana /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1643,7 +1643,7 @@ public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupMana /// Loosely coupled (type, value) associations (example - parent of a protected item). /// Name of this backup item's fabric. /// A new instance for mocking. - public static GenericProtectedItem GenericProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string policyState = null, BackupProtectionState? protectionState = null, long? protectedItemId = null, IDictionary sourceAssociations = null, string fabricName = null) + public static GenericProtectedItem GenericProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string policyState = null, BackupProtectionState? protectionState = null, long? protectedItemId = null, IDictionary sourceAssociations = null, string fabricName = null) { resourceGuardOperationRequests ??= new List(); sourceAssociations ??= new Dictionary(); @@ -1654,7 +1654,7 @@ public static GenericProtectedItem GenericProtectedItem(BackupManagementType? ba workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, @@ -1693,7 +1693,7 @@ public static MabErrorInfo MabErrorInfo(string errorString = null, IEnumerable Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -1715,7 +1715,7 @@ public static MabErrorInfo MabErrorInfo(string errorString = null, IEnumerable Sync time for deferred deletion in UTC. /// Additional information with this backup item. /// A new instance for mocking. - public static MabFileFolderProtectedItem MabFileFolderProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectionState = null, long? deferredDeleteSyncTimeInUTC = null, MabFileFolderProtectedItemExtendedInfo extendedInfo = null) + public static MabFileFolderProtectedItem MabFileFolderProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, string policyStringId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectionState = null, long? deferredDeleteSyncTimeInUTC = null, MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -1725,7 +1725,7 @@ public static MabFileFolderProtectedItem MabFileFolderProtectedItem(BackupManage workloadType, containerName, sourceResourceId, - policyId, + policyStringId, lastRecoverOn, backupSetName, createMode, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs index a686de87b32f0..5166e6e35350e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs @@ -56,10 +56,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("sourceResourceId"u8); writer.WriteStringValue(SourceResourceId); } - if (Optional.IsDefined(PolicyId)) + if (Optional.IsDefined(PolicyStringId)) { writer.WritePropertyName("policyId"u8); - writer.WriteStringValue(PolicyId); + writer.WriteStringValue(PolicyStringId); } if (Optional.IsDefined(LastRecoverOn)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs index 01944609f343d..df7f88723622f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs @@ -62,7 +62,7 @@ protected BackupGenericProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -77,14 +77,14 @@ protected BackupGenericProtectedItem() /// Soft delete retention period in days. /// ID of the vault which protects this item. /// Keeps track of any properties unknown to the library. - internal BackupGenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData) + internal BackupGenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData) { ProtectedItemType = protectedItemType; BackupManagementType = backupManagementType; WorkloadType = workloadType; ContainerName = containerName; SourceResourceId = sourceResourceId; - PolicyId = policyId; + PolicyStringId = policyStringId; LastRecoverOn = lastRecoverOn; BackupSetName = backupSetName; CreateMode = createMode; @@ -112,7 +112,7 @@ internal BackupGenericProtectedItem(string protectedItemType, BackupManagementTy /// ARM ID of the resource to be backed up. public ResourceIdentifier SourceResourceId { get; set; } /// ID of the backup policy with which this item is backed up. - public ResourceIdentifier PolicyId { get; set; } + public string PolicyStringId { get; set; } /// Timestamp when the last (latest) backup copy was created for this backup item. public DateTimeOffset? LastRecoverOn { get; set; } /// Name of the backup set the backup item belongs to. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs index 18ee132f8753a..35a5584307b7b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs @@ -86,7 +86,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -171,11 +171,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs index 6f8a3383ca577..1fcc41f730931 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs @@ -26,7 +26,7 @@ public DpmProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -45,7 +45,7 @@ public DpmProtectedItem() /// Backup Management server protecting this backup item. /// Protection state of the backup engine. /// Extended info of the backup item. - internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs index bd875d4a0d0b6..04eca06911f14 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs @@ -110,7 +110,7 @@ internal static FileshareProtectedItem DeserializeFileshareProtectedItem(JsonEle BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -223,11 +223,7 @@ internal static FileshareProtectedItem DeserializeFileshareProtectedItem(JsonEle } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs index 192309bb5aabc..29e876a0c252b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs @@ -27,7 +27,7 @@ public FileshareProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -49,7 +49,7 @@ public FileshareProtectedItem() /// Timestamp of the last backup operation on this backup item. /// Health details of different KPIs. /// Additional information with this backup item. - internal FileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string protectionStatus, BackupProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, FileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal FileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string protectionStatus, BackupProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, FileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; ProtectionStatus = protectionStatus; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs index 9b757281d78b8..3692a066fb3e8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs @@ -104,7 +104,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -208,11 +208,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs index 9d858fefd9458..927f51756f4d4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs @@ -27,7 +27,7 @@ public GenericProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -48,7 +48,7 @@ public GenericProtectedItem() /// Data Plane Service ID of the protected item. /// Loosely coupled (type, value) associations (example - parent of a protected item). /// Name of this backup item's fabric. - internal GenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string policyState, BackupProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal GenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string policyState, BackupProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; PolicyState = policyState; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs index 7083314011391..15d6a260ade2e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs @@ -74,7 +74,7 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -233,11 +233,7 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs index e7be41085e3e7..1e82b938f08dd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs @@ -26,7 +26,7 @@ public IaasClassicComputeVmProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -53,7 +53,7 @@ public IaasClassicComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal IaasClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) { ProtectedItemType = protectedItemType ?? "Microsoft.ClassicCompute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs index b3286f304482f..940870922d6ab 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs @@ -74,7 +74,7 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -233,11 +233,7 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs index b125a90d1f1e2..9aa0a114408fc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs @@ -26,7 +26,7 @@ public IaasComputeVmProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -53,7 +53,7 @@ public IaasComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal IaasComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) { ProtectedItemType = protectedItemType ?? "Microsoft.Compute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs index 84111ce0aa810..cd97202997f8a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs @@ -153,7 +153,7 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -312,11 +312,7 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs index 69f322da24ea0..118c7c694379e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs @@ -32,7 +32,7 @@ public IaasVmProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -59,7 +59,7 @@ public IaasVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs index 4f5692c406e1b..e135c9628d7ec 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs @@ -104,7 +104,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -208,11 +208,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs index 0f8664fbda8b2..eb60b21852baf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs @@ -26,7 +26,7 @@ public MabFileFolderProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -48,7 +48,7 @@ public MabFileFolderProtectedItem() /// Protected, ProtectionStopped, IRPending or ProtectionError. /// Sync time for deferred deletion in UTC. /// Additional information with this backup item. - internal MabFileFolderProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string computerName, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, MabFileFolderProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal MabFileFolderProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string computerName, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, MabFileFolderProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; ComputerName = computerName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs index d69b30c58c861..52a1e3ef41db3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs @@ -80,7 +80,7 @@ internal static SqlProtectedItem DeserializeSqlProtectedItem(JsonElement element BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -160,11 +160,7 @@ internal static SqlProtectedItem DeserializeSqlProtectedItem(JsonElement element } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs index 07b68c8121e66..e0e410d3e2407 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs @@ -26,7 +26,7 @@ public SqlProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -44,7 +44,7 @@ public SqlProtectedItem() /// Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. /// Backup state of the backed up item. /// Additional information for this backup item. - internal SqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string protectedItemDataId, ProtectedItemState? protectionState, SqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal SqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string protectedItemDataId, ProtectedItemState? protectionState, SqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { ProtectedItemDataId = protectedItemDataId; ProtectionState = protectionState; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs index 5d4aba6c91b83..f8742dbb871b8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs @@ -62,7 +62,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -119,11 +119,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs index d10e203589f4a..46d1591919683 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs @@ -20,7 +20,7 @@ internal partial class UnknownProtectedItem : BackupGenericProtectedItem /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -35,7 +35,7 @@ internal partial class UnknownProtectedItem : BackupGenericProtectedItem /// Soft delete retention period in days. /// ID of the vault which protects this item. /// Keeps track of any properties unknown to the library. - internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { ProtectedItemType = protectedItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs index f53cf6bf328b5..18be31ba4320b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs @@ -167,7 +167,7 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -336,11 +336,7 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs index 2a25a9d43f64a..fbbfc3441dd0f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs @@ -32,7 +32,7 @@ public VmWorkloadProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -61,7 +61,7 @@ public VmWorkloadProtectedItem() /// Additional information for this backup item. /// Health details of different KPIs. /// List of the nodes in case of distributed container. - internal VmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + internal VmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; ServerName = serverName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs index e138cee4901f4..00d5200565645 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs @@ -76,7 +76,7 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -245,11 +245,7 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs index c604f8cc54d57..2a011b333e2f4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs @@ -26,7 +26,7 @@ public VmWorkloadSapAseDatabaseProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -55,7 +55,7 @@ public VmWorkloadSapAseDatabaseProtectedItem() /// Additional information for this backup item. /// Health details of different KPIs. /// List of the nodes in case of distributed container. - internal VmWorkloadSapAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) + internal VmWorkloadSapAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPAseDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs index 1d61f1317b81e..6a34d60771acd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs @@ -76,7 +76,7 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -245,11 +245,7 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs index 0f5ed0d0123f2..63c30fbdab30e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs @@ -26,7 +26,7 @@ public VmWorkloadSapHanaDBInstanceProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -55,7 +55,7 @@ public VmWorkloadSapHanaDBInstanceProtectedItem() /// Additional information for this backup item. /// Health details of different KPIs. /// List of the nodes in case of distributed container. - internal VmWorkloadSapHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) + internal VmWorkloadSapHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDBInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs index 2b505691b99b6..b50c1fe298715 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs @@ -76,7 +76,7 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -245,11 +245,7 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs index 98e2de1989f0b..feffa63664bab 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs @@ -26,7 +26,7 @@ public VmWorkloadSapHanaDatabaseProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -55,7 +55,7 @@ public VmWorkloadSapHanaDatabaseProtectedItem() /// Additional information for this backup item. /// Health details of different KPIs. /// List of the nodes in case of distributed container. - internal VmWorkloadSapHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) + internal VmWorkloadSapHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs index 65f3725f6acb3..901b1dcd19f02 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs @@ -76,7 +76,7 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab BackupDataSourceType? workloadType = default; string containerName = default; ResourceIdentifier sourceResourceId = default; - ResourceIdentifier policyId = default; + string policyId = default; DateTimeOffset? lastRecoveryPoint = default; string backupSetName = default; BackupCreateMode? createMode = default; @@ -245,11 +245,7 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab } if (property.NameEquals("policyId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - policyId = new ResourceIdentifier(property.Value.GetString()); + policyId = property.Value.GetString(); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs index e761ba7474fa0..0a8327c4d14ba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs @@ -26,7 +26,7 @@ public VmWorkloadSqlDatabaseProtectedItem() /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. - /// ID of the backup policy with which this item is backed up. + /// ID of the backup policy with which this item is backed up. /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. @@ -55,7 +55,7 @@ public VmWorkloadSqlDatabaseProtectedItem() /// Additional information for this backup item. /// Health details of different KPIs. /// List of the nodes in case of distributed container. - internal VmWorkloadSqlDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) + internal VmWorkloadSqlDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, string policyStringId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths, IList nodesList) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyStringId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSQLDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index 9b29b8157fcab..3b9fce832f559 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -190,7 +190,7 @@ rename-mapping: AzureVmWorkloadProtectionPolicy.makePolicyConsistent: DoesMakePolicyConsistent TriggerDataMoveRequest.pauseGC: DoesPauseGC ProtectedItem.sourceResourceId: -|arm-id - ProtectedItem.policyId: -|arm-id + ProtectedItem.policyId: policyStringId ProtectedItem.lastRecoveryPoint: LastRecoverOn ProtectionIntent.sourceResourceId: -|arm-id ProtectionIntent.itemId: -|arm-id diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs index 01d55c9d6f8f0..0eee7da40ea31 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Tests public class ProtectedBackupItemsTests : RecoveryServicesBackupManagementTestBase { public ProtectedBackupItemsTests(bool isAsync) : - base(isAsync, RecordedTestMode.Record) + base(isAsync)//, RecordedTestMode.Record) { } From bcf7887ecdaf669649d6910cc596e19d10f4b4ea Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 19 Dec 2024 16:56:12 +0800 Subject: [PATCH 3/6] update --- ...ceManager.RecoveryServicesBackup.net8.0.cs | 30 +++++++++++++++ ...r.RecoveryServicesBackup.netstandard2.0.cs | 30 +++++++++++++++ .../ArmRecoveryServicesBackupModelFactory.cs | 14 +++++++ .../ProtectedBackupItemsTests.cs | 38 ------------------- 4 files changed, 74 insertions(+), 38 deletions(-) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.net8.0.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.net8.0.cs index a2302cbd84eef..f676664465895 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.net8.0.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.net8.0.cs @@ -790,7 +790,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail BackupErrorDetail(string code = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupJobData BackupJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementUsage BackupManagementUsage(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit? unit = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit?), string quotaPeriod = null, System.DateTimeOffset? nextResetOn = default(System.DateTimeOffset?), long? currentValue = default(long?), long? limit = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupNameInfo name = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupNameInfo BackupNameInfo(string value = null, string localizedValue = null) { throw null; } @@ -809,7 +811,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusResult BackupStatusResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? protectionStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus?), Azure.Core.ResourceIdentifier vaultId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? fabricName = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName?), string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null, int? protectedItemsCount = default(int?), Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? acquireStorageAccountLock = default(Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string backupEngineName, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string backupEngineName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string backupEngineName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostInfoContent FetchTieringCostInfoContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string objectType = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostInfoForRehydrationContent FetchTieringCostInfoForRehydrationContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string containerName = null, string protectedItemName = null, string recoveryPointId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.RehydrationPriority rehydrationPriority = default(Azure.ResourceManager.RecoveryServicesBackup.Models.RehydrationPriority)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostSavingsInfoForPolicyContent FetchTieringCostSavingsInfoForPolicyContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string policyName = null) { throw null; } @@ -817,27 +821,39 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostSavingsInfoForVaultContent FetchTieringCostSavingsInfoForVaultContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, System.Collections.Generic.IDictionary kpisHealths, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary kpisHealths = null, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary kpisHealths = null, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedInfo(System.DateTimeOffset? oldestRecoverOn = default(System.DateTimeOffset?), int? recoveryPointCount = default(int?), string policyState = null, string resourceState = null, System.DateTimeOffset? resourceStateSyncOn = default(System.DateTimeOffset?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string policyState, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, long? protectedItemId, System.Collections.Generic.IDictionary sourceAssociations, string fabricName) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string policyState = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), long? protectedItemId = default(long?), System.Collections.Generic.IDictionary sourceAssociations = null, string fabricName = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string policyState = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), long? protectedItemId = default(long?), System.Collections.Generic.IDictionary sourceAssociations = null, string fabricName = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmErrorInfo IaasVmErrorInfo(int? errorCode = default(int?), string errorTitle = null, string errorString = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmHealthDetails IaasVmHealthDetails(int? code = default(int?), string title = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.InquiryValidation InquiryValidation(string status = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail errorDetail = null, string additionalDetail = null, System.BinaryData protectableItemCount = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabErrorInfo MabErrorInfo(string errorString = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string computerName, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectionState = null, long? deferredDeleteSyncTimeInUTC = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectionState = null, long? deferredDeleteSyncTimeInUTC = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent PrepareDataMoveContent(Azure.Core.ResourceIdentifier targetResourceId = null, Azure.Core.AzureLocation targetRegion = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel = default(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel), System.Collections.Generic.IEnumerable sourceContainerArmIds = null, bool? ignoreMoved = default(bool?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult PreValidateEnableBackupResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus? status = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus?), string errorCode = null, string errorMessage = null, string recommendation = null, string containerName = null, string protectedItemName = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainerResource ProtectableContainerResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } @@ -846,7 +862,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthDetails ResourceHealthDetails(int? code = default(int?), string title = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TieringCostRehydrationInfo TieringCostRehydrationInfo(long rehydrationSizeInBytes = (long)0, double retailRehydrationCostPerGBPerMonth = 0) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TieringCostSavingInfo TieringCostSavingInfo(long sourceTierSizeReductionInBytes = (long)0, long targetTierSizeIncreaseInBytes = (long)0, double retailSourceTierCostPerGBPerMonth = 0, double retailTargetTierCostPerGBPerMonth = 0) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TokenInformation TokenInformation(string token = null, long? expiryTimeInUtcTicks = default(long?), string securityPin = null) { throw null; } @@ -857,19 +875,29 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportResult VmResourceFeatureSupportResult(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus? supportStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemResource WorkloadItemResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource WorkloadProtectableItemResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } } @@ -1119,8 +1147,10 @@ protected BackupGenericProtectedItem() { } public bool? IsRehydrate { get { throw null; } set { } } public bool? IsScheduledForDeferredDelete { get { throw null; } set { } } public System.DateTimeOffset? LastRecoverOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Core.ResourceIdentifier PolicyId { get { throw null; } set { } } public string PolicyName { get { throw null; } set { } } + public string PolicyStringId { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public int? SoftDeleteRetentionPeriod { get { throw null; } set { } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs index a2302cbd84eef..f676664465895 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs @@ -790,7 +790,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail BackupErrorDetail(string code = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupJobData BackupJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementUsage BackupManagementUsage(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit? unit = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit?), string quotaPeriod = null, System.DateTimeOffset? nextResetOn = default(System.DateTimeOffset?), long? currentValue = default(long?), long? limit = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupNameInfo name = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupNameInfo BackupNameInfo(string value = null, string localizedValue = null) { throw null; } @@ -809,7 +811,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusResult BackupStatusResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? protectionStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus?), Azure.Core.ResourceIdentifier vaultId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? fabricName = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName?), string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null, int? protectedItemsCount = default(int?), Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? acquireStorageAccountLock = default(Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string backupEngineName, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string backupEngineName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string backupEngineName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostInfoContent FetchTieringCostInfoContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string objectType = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostInfoForRehydrationContent FetchTieringCostInfoForRehydrationContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string containerName = null, string protectedItemName = null, string recoveryPointId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.RehydrationPriority rehydrationPriority = default(Azure.ResourceManager.RecoveryServicesBackup.Models.RehydrationPriority)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostSavingsInfoForPolicyContent FetchTieringCostSavingsInfoForPolicyContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, string policyName = null) { throw null; } @@ -817,27 +821,39 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.FetchTieringCostSavingsInfoForVaultContent FetchTieringCostSavingsInfoForVaultContent(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType sourceTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType targetTierType = Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType.Invalid) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, System.Collections.Generic.IDictionary kpisHealths, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary kpisHealths = null, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary kpisHealths = null, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedInfo(System.DateTimeOffset? oldestRecoverOn = default(System.DateTimeOffset?), int? recoveryPointCount = default(int?), string policyState = null, string resourceState = null, System.DateTimeOffset? resourceStateSyncOn = default(System.DateTimeOffset?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string policyState, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, long? protectedItemId, System.Collections.Generic.IDictionary sourceAssociations, string fabricName) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string policyState = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), long? protectedItemId = default(long?), System.Collections.Generic.IDictionary sourceAssociations = null, string fabricName = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.GenericProtectedItem GenericProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string policyState = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), long? protectedItemId = default(long?), System.Collections.Generic.IDictionary sourceAssociations = null, string fabricName = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasComputeVmProtectedItem IaasComputeVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmErrorInfo IaasVmErrorInfo(int? errorCode = default(int?), string errorTitle = null, string errorString = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmHealthDetails IaasVmHealthDetails(int? code = default(int?), string title = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, Azure.Core.ResourceIdentifier virtualMachineId, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus, System.Collections.Generic.IEnumerable healthDetails, System.Collections.Generic.IDictionary kpisHealths, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem IaasVmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, Azure.Core.ResourceIdentifier virtualMachineId = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? healthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus?), System.Collections.Generic.IEnumerable healthDetails = null, System.Collections.Generic.IDictionary kpisHealths = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo extendedInfo = null, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties extendedProperties = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.InquiryValidation InquiryValidation(string status = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail errorDetail = null, string additionalDetail = null, System.BinaryData protectableItemCount = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabErrorInfo MabErrorInfo(string errorString = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string computerName, string lastBackupStatus, System.DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectionState = null, long? deferredDeleteSyncTimeInUTC = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItem MabFileFolderProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), string protectionState = null, long? deferredDeleteSyncTimeInUTC = default(long?), Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent PrepareDataMoveContent(Azure.Core.ResourceIdentifier targetResourceId = null, Azure.Core.AzureLocation targetRegion = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel = default(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel), System.Collections.Generic.IEnumerable sourceContainerArmIds = null, bool? ignoreMoved = default(bool?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupResult PreValidateEnableBackupResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus? status = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus?), string errorCode = null, string errorMessage = null, string recommendation = null, string containerName = null, string protectedItemName = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainerResource ProtectableContainerResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } @@ -846,7 +862,9 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthDetails ResourceHealthDetails(int? code = default(int?), string title = null, string message = null, System.Collections.Generic.IEnumerable recommendations = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string protectedItemDataId, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItem SqlProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string protectedItemDataId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TieringCostRehydrationInfo TieringCostRehydrationInfo(long rehydrationSizeInBytes = (long)0, double retailRehydrationCostPerGBPerMonth = 0) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TieringCostSavingInfo TieringCostSavingInfo(long sourceTierSizeReductionInBytes = (long)0, long targetTierSizeIncreaseInBytes = (long)0, double retailSourceTierCostPerGBPerMonth = 0, double retailTargetTierCostPerGBPerMonth = 0) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TokenInformation TokenInformation(string token = null, long? expiryTimeInUtcTicks = default(long?), string securityPin = null) { throw null; } @@ -857,19 +875,29 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportResult VmResourceFeatureSupportResult(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus? supportStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem VmWorkloadProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType, string containerName, Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.ResourceIdentifier policyId, System.DateTimeOffset? lastRecoverOn, string backupSetName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode, System.DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, System.Collections.Generic.IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState, Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus, System.DateTimeOffset? lastBackupOn, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo, System.Collections.Generic.IDictionary kpisHealths, System.Collections.Generic.IEnumerable nodesList) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string policyStringId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? lastBackupStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus?), System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus?), Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo extendedInfo = null, System.Collections.Generic.IDictionary kpisHealths = null, System.Collections.Generic.IEnumerable nodesList = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemResource WorkloadItemResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource WorkloadProtectableItemResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } } @@ -1119,8 +1147,10 @@ protected BackupGenericProtectedItem() { } public bool? IsRehydrate { get { throw null; } set { } } public bool? IsScheduledForDeferredDelete { get { throw null; } set { } } public System.DateTimeOffset? LastRecoverOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Core.ResourceIdentifier PolicyId { get { throw null; } set { } } public string PolicyName { get { throw null; } set { } } + public string PolicyStringId { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public int? SoftDeleteRetentionPeriod { get { throw null; } set { } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs index 27eea7483b882..dd2fea0595a51 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs @@ -509,6 +509,7 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI /// Soft delete retention period in days. /// ID of the vault which protects this item. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static BackupGenericProtectedItem BackupGenericProtectedItem(string protectedItemType = null, BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null) { resourceGuardOperationRequests ??= new List(); @@ -563,6 +564,7 @@ public static BackupGenericProtectedItem BackupGenericProtectedItem(string prote /// Health details of different KPIs. /// Additional information with this backup item. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string protectionStatus = null, BackupProtectionState? protectionState = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, IDictionary kpisHealths = null, FileshareProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -630,6 +632,7 @@ public static FileshareProtectedItem FileshareProtectedItem(BackupManagementType /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); @@ -703,6 +706,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); @@ -776,6 +780,7 @@ public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? back /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) { resourceGuardOperationRequests ??= new List(); @@ -840,6 +845,7 @@ public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManage /// Backup state of the backed up item. /// Additional information for this backup item. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string protectedItemDataId = null, ProtectedItemState? protectionState = null, SqlProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -904,6 +910,7 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); @@ -981,6 +988,7 @@ public static VmWorkloadProtectedItem VmWorkloadProtectedItem(BackupManagementTy /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); @@ -1058,6 +1066,7 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); @@ -1135,6 +1144,7 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstanceProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); @@ -1212,6 +1222,7 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan /// Health details of different KPIs. /// List of the nodes in case of distributed container. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string serverName = null, string parentName = null, string parentType = null, string protectionStatus = null, BackupProtectionState? protectionState = null, LastBackupStatus? lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, BackupErrorDetail lastBackupErrorDetail = null, string protectedItemDataSourceId = null, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus = null, VmWorkloadProtectedItemExtendedInfo extendedInfo = null, IDictionary kpisHealths = null, IEnumerable nodesList = null) { resourceGuardOperationRequests ??= new List(); @@ -1279,6 +1290,7 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI /// Protection state of the backup engine. /// Extended info of the backup item. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string backupEngineName = null, ProtectedItemState? protectionState = null, DpmProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); @@ -1336,6 +1348,7 @@ public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupMana /// Loosely coupled (type, value) associations (example - parent of a protected item). /// Name of this backup item's fabric. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static GenericProtectedItem GenericProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string policyState = null, BackupProtectionState? protectionState = null, long? protectedItemId = null, IDictionary sourceAssociations = null, string fabricName = null) { resourceGuardOperationRequests ??= new List(); @@ -1397,6 +1410,7 @@ public static GenericProtectedItem GenericProtectedItem(BackupManagementType? ba /// Sync time for deferred deletion in UTC. /// Additional information with this backup item. /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] public static MabFileFolderProtectedItem MabFileFolderProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, string computerName = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectionState = null, long? deferredDeleteSyncTimeInUTC = null, MabFileFolderProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs deleted file mode 100644 index 0eee7da40ea31..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/tests/ScenarioTests/ProtectedBackupItemsTests.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.TestFramework; -using Azure.ResourceManager.RecoveryServices; -using Azure.ResourceManager.RecoveryServices.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; -using Azure.ResourceManager.Storage; -using Azure.ResourceManager.Storage.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Tests -{ - public class ProtectedBackupItemsTests : RecoveryServicesBackupManagementTestBase - { - public ProtectedBackupItemsTests(bool isAsync) : - base(isAsync)//, RecordedTestMode.Record) - { - } - - [RecordedTest] - public async Task ListBackupProtectedItems() - { - var sub = await Client.GetDefaultSubscriptionAsync(); - var rg = await CreateResourceGroup(sub, "sdktest", AzureLocation.EastUS); - var resourceGroup = Client.GetResourceGroupResource(new ResourceIdentifier("/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/deleteme1218")); - var backupProtectedItems = resourceGroup.GetBackupProtectedItemsAsync("vaulttest001"); - await foreach (var backupProtectedItem in backupProtectedItems) - {//test normal and stop backup - Console.WriteLine(backupProtectedItem.Data.Name); - } - } - } -} From 6859bf6f0149f3c86282e467cb6093569717af48 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 19 Dec 2024 17:20:54 +0800 Subject: [PATCH 4/6] remove --- .../src/Custom/ArmRecoveryServicesBackupModelFactory.cs | 3 --- .../src/Custom/Models/BackupGenericProtectedItem.cs | 1 - 2 files changed, 4 deletions(-) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs index dd2fea0595a51..02bffbebc49d5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/ArmRecoveryServicesBackupModelFactory.cs @@ -7,10 +7,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Linq; -using Azure; using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs index 12a8bf533be20..e1f4fdb0feef4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.ComponentModel; using Azure.Core; From dba8faff201c7f02081d94478bd42f9216d7b236 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 20 Dec 2024 10:46:51 +0800 Subject: [PATCH 5/6] Update CHANGELOG.md --- .../Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md index e85531e522bed..2593fdc7b8538 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md @@ -11,6 +11,8 @@ ### Bugs Fixed +Convert the property policyId of type ResourceIdentifier to type String in ProtectedItem. Issue at https://github.com/Azure/azure-sdk-for-net/issues/47381 + ### Other Changes ## 1.2.0 (2024-01-03) From 14333ecde9be94c1e9e31f3d4eda6d24fe793830 Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Fri, 20 Dec 2024 14:47:43 +0800 Subject: [PATCH 6/6] Update BackupGenericProtectedItem.cs --- .../src/Custom/Models/BackupGenericProtectedItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs index e1f4fdb0feef4..0efb16f62bb93 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Custom/Models/BackupGenericProtectedItem.cs @@ -27,7 +27,7 @@ public int? SoftDeleteRetentionPeriod public ResourceIdentifier PolicyId { get => string.IsNullOrEmpty(PolicyStringId) ? null : new ResourceIdentifier(PolicyId); - set => PolicyId = new ResourceIdentifier(PolicyStringId); + set => PolicyStringId = value.ToString(); } } }