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 d8caa91d1ee6..b1f0accc587d 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 @@ -541,7 +541,7 @@ public static partial class ArmRecoveryServicesBackupModelFactory { public static Azure.ResourceManager.RecoveryServicesBackup.BackupEngineData BackupEngineData(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.BackupGenericEngine properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail BackupErrorDetail(string code = null, string message = null, System.Collections.Generic.IEnumerable recommendations = 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, 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? softDeleteRetentionPeriod = default(int?)) { 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, 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?)) { 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; } @@ -556,37 +556,41 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedData BackupResourceEncryptionConfigExtendedData(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.BackupResourceEncryptionConfigExtendedProperties properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData BackupResourceVaultConfigData(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.BackupResourceVaultConfigProperties properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } 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) { 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, 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? softDeleteRetentionPeriod = default(int?), 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.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? softDeleteRetentionPeriod = default(int?), 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.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 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.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 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; } - 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? softDeleteRetentionPeriod = default(int?), 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.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? softDeleteRetentionPeriod = default(int?), 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, 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? softDeleteRetentionPeriod = default(int?), 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.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 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.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 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, 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 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; } - 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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 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; } - 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? softDeleteRetentionPeriod = default(int?), 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, 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 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.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; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisionIlrConnectionContent ProvisionIlrConnectionContent(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.IlrContent properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData ResourceGuardProxyData(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.ResourceGuardProxyProperties properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } 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; } - 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? softDeleteRetentionPeriod = default(int?), 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, 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 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.TokenInformation TokenInformation(string token = null, long? expiryTimeInUtcTicks = default(long?), string securityPin = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent TriggerBackupContent(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.BackupContent properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerRestoreContent TriggerRestoreContent(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.RestoreContent properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.UnlockDeleteResult UnlockDeleteResult(System.DateTimeOffset? unlockDeleteExpireOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportResult VmResourceFeatureSupportResult(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus? supportStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus?)) { 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, 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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? softDeleteRetentionPeriod = default(int?), 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) { 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, 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 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, 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 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, 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 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, 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 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, 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 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; } } + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public AzureVmWorkloadSapHanaHSRProtectableItem() { } + } public partial class BackupCommonSettings { public BackupCommonSettings() { } @@ -784,7 +788,7 @@ protected BackupGenericProtectedItem() { } public Azure.Core.ResourceIdentifier PolicyId { get { throw null; } set { } } public string PolicyName { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } - public int? SoftDeleteRetentionPeriod { get { throw null; } set { } } + public int? SoftDeleteRetentionPeriodInDays { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? WorkloadType { get { throw null; } } } @@ -927,6 +931,7 @@ internal BackupNameInfo() { } public partial class BackupPrivateEndpointConnectionProperties { public BackupPrivateEndpointConnectionProperties() { } + public System.Collections.Generic.IList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } set { } } @@ -1033,6 +1038,7 @@ public BackupResourceVaultConfigProperties() { } public bool? IsSoftDeleteFeatureStateEditable { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState? SoftDeleteFeatureState { get { throw null; } set { } } + public int? SoftDeleteRetentionPeriodInDays { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageModelType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState? StorageTypeState { get { throw null; } set { } } @@ -1301,6 +1307,7 @@ public partial class DistributedNodesInfo public DistributedNodesInfo() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail ErrorDetail { get { throw null; } set { } } public string NodeName { get { throw null; } set { } } + public string SourceResourceId { get { throw null; } set { } } public string Status { get { throw null; } set { } } } public partial class DpmBackupEngine : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericEngine @@ -1862,6 +1869,7 @@ public partial class InquiryValidation public InquiryValidation() { } public string AdditionalDetail { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail ErrorDetail { get { throw null; } set { } } + public System.BinaryData ProtectableItemCount { get { throw null; } } public string Status { get { throw null; } set { } } } public partial class InstantRPAdditionalDetails @@ -2273,7 +2281,7 @@ public enum RecoveryPointTierType public partial class RecoveryServicesBackupPrivateLinkServiceConnectionState { public RecoveryServicesBackupPrivateLinkServiceConnectionState() { } - public string ActionRequired { get { throw null; } set { } } + public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.PrivateEndpointConnectionStatus? Status { get { throw null; } set { } } } @@ -2500,6 +2508,7 @@ public SimpleSchedulePolicyV2() { } private readonly object _dummy; private readonly int _dummyPrimitive; public SoftDeleteFeatureState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState AlwaysON { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState Disabled { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState Enabled { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState Invalid { get { throw null; } } @@ -2759,6 +2768,25 @@ public VaultBackupJobErrorInfo() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VaultSubResourceType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VaultSubResourceType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureBackup { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureBackupSecondary { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureSiteRecovery { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct VaultXcoolState : System.IEquatable { private readonly object _dummy; @@ -2840,6 +2868,7 @@ public partial class VmWorkloadProtectableItem : Azure.ResourceManager.RecoveryS public VmWorkloadProtectableItem() { } public bool? IsAutoProtectable { get { throw null; } set { } } public bool? IsAutoProtected { get { throw null; } set { } } + public bool? IsProtectable { get { throw null; } set { } } public string ParentName { get { throw null; } set { } } public string ParentUniqueName { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.PreBackupValidation PreBackupValidation { get { throw null; } set { } } @@ -2856,6 +2885,7 @@ public VmWorkloadProtectedItem() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail LastBackupErrorDetail { get { throw null; } set { } } public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? LastBackupStatus { get { throw null; } set { } } + public System.Collections.Generic.IList NodesList { get { throw null; } } public string ParentName { get { throw null; } set { } } public string ParentType { get { throw null; } set { } } public string ProtectedItemDataSourceId { get { throw null; } set { } } @@ -2940,10 +2970,6 @@ public partial class VmWorkloadSapHanaDBInstanceProtectedItem : Azure.ResourceMa { public VmWorkloadSapHanaDBInstanceProtectedItem() { } } - public partial class VmWorkloadSapHanaHsr : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem - { - public VmWorkloadSapHanaHsr() { } - } public partial class VmWorkloadSapHanaSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem { public VmWorkloadSapHanaSystemProtectableItem() { } @@ -2955,6 +2981,7 @@ public VmWorkloadSapHanaSystemWorkloadItem() { } public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem { public VmWorkloadSqlAvailabilityGroupProtectableItem() { } + public System.Collections.Generic.IList NodesList { get { throw null; } } } public partial class VmWorkloadSqlDatabaseProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem { 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 7af3d8b24721..fa63151e473e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs @@ -225,13 +225,13 @@ public static BackupProtectedItemData BackupProtectedItemData(ResourceIdentifier /// 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. + /// Soft delete retention period in days. /// 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? softDeleteRetentionPeriod = null) + 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) { resourceGuardOperationRequests ??= new List(); - return new UnknownProtectedItem(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod); + return new UnknownProtectedItem(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays); } /// Initializes a new instance of BackupRecoveryPointData. @@ -454,7 +454,7 @@ public static ProvisionIlrConnectionContent ProvisionIlrConnectionContent(Resour /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// Optional ETag. /// A new instance for mocking. @@ -517,7 +517,7 @@ public static UnlockDeleteResult UnlockDeleteResult(DateTimeOffset? unlockDelete /// 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. + /// Soft delete retention period in days. /// Friendly name of the fileshare represented by this backup item. /// Backup status of this backup item. /// Backup state of this backup item. @@ -526,12 +526,12 @@ public static UnlockDeleteResult UnlockDeleteResult(DateTimeOffset? unlockDelete /// 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, kpisHealths, extendedInfo); + return new FileshareProtectedItem("AzureFileShareProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, kpisHealths, extendedInfo); } /// Initializes a new instance of ResourceHealthDetails. @@ -576,7 +576,7 @@ public static FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedI /// 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. + /// Soft delete retention period in days. /// 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. @@ -590,13 +590,13 @@ 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); + return new IaasClassicComputeVmProtectedItem("Microsoft.ClassicCompute/virtualMachines", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); } /// Initializes a new instance of IaasVmProtectedItem. @@ -616,7 +616,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte /// 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. + /// Soft delete retention period in days. /// 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. @@ -630,13 +630,13 @@ 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); + return new IaasVmProtectedItem("AzureIaaSVMProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); } /// Initializes a new instance of IaasVmHealthDetails. @@ -669,7 +669,7 @@ public static IaasVmHealthDetails IaasVmHealthDetails(int? code = null, string t /// 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. + /// Soft delete retention period in days. /// 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. @@ -683,13 +683,13 @@ 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); + return new IaasComputeVmProtectedItem("Microsoft.Compute/virtualMachines", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails?.ToList(), kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties); } /// Initializes a new instance of IaasVmErrorInfo. @@ -722,16 +722,16 @@ public static IaasVmErrorInfo IaasVmErrorInfo(int? errorCode = null, string erro /// 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. + /// Soft delete retention period in days. /// 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? softDeleteRetentionPeriod = 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, 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 protectedItemDataId = null, ProtectedItemState? protectionState = null, SqlProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); - return new SqlProtectedItem("Microsoft.Sql/servers/databases", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, protectedItemDataId, protectionState, extendedInfo); + return new SqlProtectedItem("Microsoft.Sql/servers/databases", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, protectedItemDataId, protectionState, extendedInfo); } /// Initializes a new instance of VmWorkloadProtectedItem. @@ -751,7 +751,7 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana /// 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. + /// Soft delete retention period in days. /// 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. @@ -765,13 +765,15 @@ public static SqlProtectedItem SqlProtectedItem(BackupManagementType? backupMana /// 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? softDeleteRetentionPeriod = 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) + 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths); + return new VmWorkloadProtectedItem("AzureVmWorkloadProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList?.ToList()); } /// Initializes a new instance of BackupErrorDetail. @@ -803,7 +805,7 @@ public static BackupErrorDetail BackupErrorDetail(string code = null, string mes /// 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. + /// Soft delete retention period in days. /// 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. @@ -817,13 +819,15 @@ public static BackupErrorDetail BackupErrorDetail(string code = null, string mes /// 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? softDeleteRetentionPeriod = 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) + 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths); + return new VmWorkloadSapAseDatabaseProtectedItem("AzureVmWorkloadSAPAseDatabase", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList?.ToList()); } /// Initializes a new instance of VmWorkloadSapHanaDatabaseProtectedItem. @@ -843,7 +847,7 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt /// 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. + /// Soft delete retention period in days. /// 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. @@ -857,13 +861,15 @@ public static VmWorkloadSapAseDatabaseProtectedItem VmWorkloadSapAseDatabaseProt /// 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? softDeleteRetentionPeriod = 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) + 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths); + return new VmWorkloadSapHanaDatabaseProtectedItem("AzureVmWorkloadSAPHanaDatabase", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList?.ToList()); } /// Initializes a new instance of VmWorkloadSapHanaDBInstanceProtectedItem. @@ -883,7 +889,7 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr /// 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. + /// Soft delete retention period in days. /// 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. @@ -897,13 +903,15 @@ public static VmWorkloadSapHanaDatabaseProtectedItem VmWorkloadSapHanaDatabasePr /// 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? softDeleteRetentionPeriod = 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) + 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths); + return new VmWorkloadSapHanaDBInstanceProtectedItem("AzureVmWorkloadSAPHanaDBInstance", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList?.ToList()); } /// Initializes a new instance of VmWorkloadSqlDatabaseProtectedItem. @@ -923,7 +931,7 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan /// 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. + /// Soft delete retention period in days. /// 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. @@ -937,13 +945,15 @@ public static VmWorkloadSapHanaDBInstanceProtectedItem VmWorkloadSapHanaDBInstan /// 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? softDeleteRetentionPeriod = 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) + 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths); + return new VmWorkloadSqlDatabaseProtectedItem("AzureVmWorkloadSQLDatabase", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths, nodesList?.ToList()); } /// Initializes a new instance of DpmProtectedItem. @@ -963,17 +973,17 @@ public static VmWorkloadSqlDatabaseProtectedItem VmWorkloadSqlDatabaseProtectedI /// 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. + /// Soft delete retention period in days. /// 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? softDeleteRetentionPeriod = 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, 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 friendlyName = null, string backupEngineName = null, ProtectedItemState? protectionState = null, DpmProtectedItemExtendedInfo extendedInfo = null) { resourceGuardOperationRequests ??= new List(); - return new DpmProtectedItem("DPMProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, backupEngineName, protectionState, extendedInfo); + return new DpmProtectedItem("DPMProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, backupEngineName, protectionState, extendedInfo); } /// Initializes a new instance of GenericProtectedItem. @@ -993,7 +1003,7 @@ public static DpmProtectedItem DpmProtectedItem(BackupManagementType? backupMana /// 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. + /// Soft delete retention period in days. /// Friendly name of the container. /// Indicates consistency of policy object and policy applied to this backup item. /// Backup state of this backup item. @@ -1001,12 +1011,12 @@ 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, policyState, protectionState, protectedItemId, sourceAssociations, fabricName); + return new GenericProtectedItem("GenericProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, policyState, protectionState, protectedItemId, sourceAssociations, fabricName); } /// Initializes a new instance of MabErrorInfo. @@ -1037,7 +1047,7 @@ public static MabErrorInfo MabErrorInfo(string errorString = null, IEnumerable 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. + /// Soft delete retention period in days. /// Friendly name of this backup item. /// Name of the computer associated with this backup item. /// Status of last backup operation. @@ -1046,21 +1056,22 @@ 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? softDeleteRetentionPeriod = 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, 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 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, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, computerName, lastBackupStatus, lastBackupOn, protectionState, deferredDeleteSyncTimeInUTC, extendedInfo); + return new MabFileFolderProtectedItem("MabFileFolderProtectedItem", backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests?.ToList(), isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, friendlyName, computerName, lastBackupStatus, lastBackupOn, protectionState, deferredDeleteSyncTimeInUTC, extendedInfo); } /// Initializes a new instance of InquiryValidation. /// Status for the Inquiry Validation. /// Error Detail in case the status is non-success. /// Error Additional Detail in case the status is non-success. + /// Dictionary to store the count of ProtectableItems with key POType. /// A new instance for mocking. - public static InquiryValidation InquiryValidation(string status = null, BackupErrorDetail errorDetail = null, string additionalDetail = null) + public static InquiryValidation InquiryValidation(string status = null, BackupErrorDetail errorDetail = null, string additionalDetail = null, BinaryData protectableItemCount = null) { - return new InquiryValidation(status, errorDetail, additionalDetail); + return new InquiryValidation(status, errorDetail, additionalDetail, protectableItemCount); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs index 65bd5abca409..c19724a78dc3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class VmWorkloadSapHanaHsr : IUtf8JsonSerializable + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -80,7 +85,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement element) + internal static AzureVmWorkloadSapHanaHSRProtectableItem DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -94,6 +99,7 @@ internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement continue; } } - return new VmWorkloadSapHanaHsr(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new AzureVmWorkloadSapHanaHSRProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs similarity index 57% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs index 261cc51b9045..de789f1476ed 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs @@ -7,16 +7,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// Azure VM workload-specific protectable item representing SAP HANA Dbinstance. - public partial class VmWorkloadSapHanaHsr : VmWorkloadProtectableItem + /// Azure VM workload-specific protectable item representing HANA HSR. + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of VmWorkloadSapHanaHsr. - public VmWorkloadSapHanaHsr() + /// Initializes a new instance of AzureVmWorkloadSapHanaHSRProtectableItem. + public AzureVmWorkloadSapHanaHSRProtectableItem() { - ProtectableItemType = "SAPHanaHSR"; + ProtectableItemType = "HanaHSRContainer"; } - /// Initializes a new instance of VmWorkloadSapHanaHsr. + /// Initializes a new instance of AzureVmWorkloadSapHanaHSRProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -33,9 +33,10 @@ public VmWorkloadSapHanaHsr() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapHanaHsr(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal AzureVmWorkloadSapHanaHSRProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { - ProtectableItemType = protectableItemType ?? "SAPHanaHSR"; + ProtectableItemType = protectableItemType ?? "HanaHSRContainer"; } } } 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 c69c30e2be5b..eaa619b65f00 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 @@ -92,10 +92,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } 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 e56467b07bb6..a9960dad2827 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 @@ -42,8 +42,8 @@ protected BackupGenericProtectedItem() /// 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. - 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? softDeleteRetentionPeriod) + /// Soft delete retention period in days. + 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) { ProtectedItemType = protectedItemType; BackupManagementType = backupManagementType; @@ -62,7 +62,7 @@ internal BackupGenericProtectedItem(string protectedItemType, BackupManagementTy ResourceGuardOperationRequests = resourceGuardOperationRequests; IsArchiveEnabled = isArchiveEnabled; PolicyName = policyName; - SoftDeleteRetentionPeriod = softDeleteRetentionPeriod; + SoftDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays; } /// backup item type. @@ -100,6 +100,6 @@ internal BackupGenericProtectedItem(string protectedItemType, BackupManagementTy /// Name of the policy used for protection. public string PolicyName { get; set; } /// Soft delete retention period in days. - public int? SoftDeleteRetentionPeriod { get; set; } + public int? SoftDeleteRetentionPeriodInDays { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs index d543475ca455..028bce9f59f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Resources.Models; @@ -26,6 +27,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("privateEndpoint"u8); JsonSerializer.Serialize(writer, PrivateEndpoint); } + if (Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PrivateLinkServiceConnectionState)) { writer.WritePropertyName("privateLinkServiceConnectionState"u8); @@ -42,6 +53,7 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva } Optional provisioningState = default; Optional privateEndpoint = default; + Optional> groupIds = default; Optional privateLinkServiceConnectionState = default; foreach (var property in element.EnumerateObject()) { @@ -63,6 +75,20 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva privateEndpoint = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } + if (property.NameEquals("groupIds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new VaultSubResourceType(item.GetString())); + } + groupIds = array; + continue; + } if (property.NameEquals("privateLinkServiceConnectionState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -73,7 +99,7 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva continue; } } - return new BackupPrivateEndpointConnectionProperties(Optional.ToNullable(provisioningState), privateEndpoint, privateLinkServiceConnectionState.Value); + return new BackupPrivateEndpointConnectionProperties(Optional.ToNullable(provisioningState), privateEndpoint, Optional.ToList(groupIds), privateLinkServiceConnectionState.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs index efff7ee40e2f..9f196c9d0b6a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; @@ -16,16 +17,19 @@ public partial class BackupPrivateEndpointConnectionProperties /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. public BackupPrivateEndpointConnectionProperties() { + GroupIds = new ChangeTrackingList(); } /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. /// Gets or sets provisioning state of the private endpoint connection. /// Gets or sets private endpoint associated with the private endpoint connection. + /// Group Ids for the Private Endpoint. /// Gets or sets private link service connection state. - internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, IList groupIds, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) { ProvisioningState = provisioningState; PrivateEndpoint = privateEndpoint; + GroupIds = groupIds; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; } @@ -45,6 +49,8 @@ public ResourceIdentifier PrivateEndpointId } } + /// Group Ids for the Private Endpoint. + public IList GroupIds { get; } /// Gets or sets private link service connection state. public RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs index cb4fe98a5d69..d1a13315b039 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs @@ -41,6 +41,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("softDeleteFeatureState"u8); writer.WriteStringValue(SoftDeleteFeatureState.Value.ToString()); } + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) + { + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); + } if (Optional.IsCollectionDefined(ResourceGuardOperationRequests)) { writer.WritePropertyName("resourceGuardOperationRequests"u8); @@ -70,6 +75,7 @@ internal static BackupResourceVaultConfigProperties DeserializeBackupResourceVau Optional storageTypeState = default; Optional enhancedSecurityState = default; Optional softDeleteFeatureState = default; + Optional softDeleteRetentionPeriodInDays = default; Optional> resourceGuardOperationRequests = default; Optional isSoftDeleteFeatureStateEditable = default; foreach (var property in element.EnumerateObject()) @@ -119,6 +125,15 @@ internal static BackupResourceVaultConfigProperties DeserializeBackupResourceVau softDeleteFeatureState = new SoftDeleteFeatureState(property.Value.GetString()); continue; } + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); + continue; + } if (property.NameEquals("resourceGuardOperationRequests"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -143,7 +158,7 @@ internal static BackupResourceVaultConfigProperties DeserializeBackupResourceVau continue; } } - return new BackupResourceVaultConfigProperties(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(enhancedSecurityState), Optional.ToNullable(softDeleteFeatureState), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isSoftDeleteFeatureStateEditable)); + return new BackupResourceVaultConfigProperties(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(enhancedSecurityState), Optional.ToNullable(softDeleteFeatureState), Optional.ToNullable(softDeleteRetentionPeriodInDays), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isSoftDeleteFeatureStateEditable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs index 6e78859bdc1d..d01b2cc32ee4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs @@ -25,15 +25,17 @@ public BackupResourceVaultConfigProperties() /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. /// Enabled or Disabled. /// Soft Delete feature state. + /// Soft delete retention period in days. /// ResourceGuard Operation Requests. - /// Is soft delete feature state editable. - internal BackupResourceVaultConfigProperties(BackupStorageType? storageModelType, BackupStorageType? storageType, BackupStorageTypeState? storageTypeState, EnhancedSecurityState? enhancedSecurityState, SoftDeleteFeatureState? softDeleteFeatureState, IList resourceGuardOperationRequests, bool? isSoftDeleteFeatureStateEditable) + /// This flag is no longer in use. Please use 'softDeleteFeatureState' to set the soft delete state for the vault. + internal BackupResourceVaultConfigProperties(BackupStorageType? storageModelType, BackupStorageType? storageType, BackupStorageTypeState? storageTypeState, EnhancedSecurityState? enhancedSecurityState, SoftDeleteFeatureState? softDeleteFeatureState, int? softDeleteRetentionPeriodInDays, IList resourceGuardOperationRequests, bool? isSoftDeleteFeatureStateEditable) { StorageModelType = storageModelType; StorageType = storageType; StorageTypeState = storageTypeState; EnhancedSecurityState = enhancedSecurityState; SoftDeleteFeatureState = softDeleteFeatureState; + SoftDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays; ResourceGuardOperationRequests = resourceGuardOperationRequests; IsSoftDeleteFeatureStateEditable = isSoftDeleteFeatureStateEditable; } @@ -48,9 +50,11 @@ internal BackupResourceVaultConfigProperties(BackupStorageType? storageModelType public EnhancedSecurityState? EnhancedSecurityState { get; set; } /// Soft Delete feature state. public SoftDeleteFeatureState? SoftDeleteFeatureState { get; set; } + /// Soft delete retention period in days. + public int? SoftDeleteRetentionPeriodInDays { get; set; } /// ResourceGuard Operation Requests. public IList ResourceGuardOperationRequests { get; } - /// Is soft delete feature state editable. + /// This flag is no longer in use. Please use 'softDeleteFeatureState' to set the soft delete state for the vault. public bool? IsSoftDeleteFeatureStateEditable { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs index bbfabb391bad..02ebf4e23348 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs @@ -30,6 +30,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("errorDetail"u8); writer.WriteObjectValue(ErrorDetail); } + if (Optional.IsDefined(SourceResourceId)) + { + writer.WritePropertyName("sourceResourceId"u8); + writer.WriteStringValue(SourceResourceId); + } writer.WriteEndObject(); } @@ -42,6 +47,7 @@ internal static DistributedNodesInfo DeserializeDistributedNodesInfo(JsonElement Optional nodeName = default; Optional status = default; Optional errorDetail = default; + Optional sourceResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nodeName"u8)) @@ -63,8 +69,13 @@ internal static DistributedNodesInfo DeserializeDistributedNodesInfo(JsonElement errorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } + if (property.NameEquals("sourceResourceId"u8)) + { + sourceResourceId = property.Value.GetString(); + continue; + } } - return new DistributedNodesInfo(nodeName.Value, status.Value, errorDetail.Value); + return new DistributedNodesInfo(nodeName.Value, status.Value, errorDetail.Value, sourceResourceId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs index dc02fcbe5b56..0a3ec5978950 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs @@ -22,11 +22,13 @@ public DistributedNodesInfo() /// Failed | Succeeded /// /// Error Details if the Status is non-success. - internal DistributedNodesInfo(string nodeName, string status, BackupErrorDetail errorDetail) + /// ARM resource id of the node. + internal DistributedNodesInfo(string nodeName, string status, BackupErrorDetail errorDetail, string sourceResourceId) { NodeName = nodeName; Status = status; ErrorDetail = errorDetail; + SourceResourceId = sourceResourceId; } /// Name of the node under a distributed container. @@ -38,5 +40,7 @@ internal DistributedNodesInfo(string nodeName, string status, BackupErrorDetail public string Status { get; set; } /// Error Details if the Status is non-success. public BackupErrorDetail ErrorDetail { get; set; } + /// ARM resource id of the node. + public string SourceResourceId { get; set; } } } 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 5dab5aa80f2f..f2752206691b 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 @@ -114,10 +114,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -149,7 +149,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -318,17 +318,17 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new DpmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, backupEngineName.Value, Optional.ToNullable(protectionState), extendedInfo.Value); + return new DpmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, backupEngineName.Value, Optional.ToNullable(protectionState), extendedInfo.Value); } } } 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 1d391a2367e2..563644823f5b 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 @@ -38,12 +38,12 @@ public DpmProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. - 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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod) + 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 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) { 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 e2f7f3a894b1..d2d7373d12d9 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 @@ -135,10 +135,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -173,7 +173,7 @@ internal static FileshareProtectedItem DeserializeFileshareProtectedItem(JsonEle Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -370,17 +370,17 @@ internal static FileshareProtectedItem DeserializeFileshareProtectedItem(JsonEle policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new FileshareProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, protectionStatus.Value, Optional.ToNullable(protectionState), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), Optional.ToDictionary(kpisHealths), extendedInfo.Value); + return new FileshareProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, protectionStatus.Value, Optional.ToNullable(protectionState), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), Optional.ToDictionary(kpisHealths), extendedInfo.Value); } } } 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 145fe6a8719f..a343edb2b502 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 @@ -39,7 +39,7 @@ public FileshareProtectedItem() /// 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. + /// Soft delete retention period in days. /// Friendly name of the fileshare represented by this backup item. /// Backup status of this backup item. /// Backup state of this backup item. @@ -47,7 +47,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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod) + 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 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) { 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 9d1ad8b75778..e0a08ac6a3f6 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 @@ -130,10 +130,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -167,7 +167,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -355,17 +355,17 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new GenericProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, policyState.Value, Optional.ToNullable(protectionState), Optional.ToNullable(protectedItemId), Optional.ToDictionary(sourceAssociations), fabricName.Value); + return new GenericProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, policyState.Value, Optional.ToNullable(protectionState), Optional.ToNullable(protectedItemId), Optional.ToDictionary(sourceAssociations), fabricName.Value); } } } 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 303262abb973..8a9bb70c3c2c 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 @@ -39,14 +39,14 @@ public GenericProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. - 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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod) + 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 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) { 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 ab49307bc113..6d0421ae01e2 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 @@ -140,10 +140,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -183,7 +183,7 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -426,17 +426,17 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new IaasClassicComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasClassicComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } 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 9f37850825a3..0a4d6e6725f3 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 @@ -38,7 +38,7 @@ public IaasClassicComputeVmProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -51,7 +51,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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + 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 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, 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 b9a5885e0fcb..a208a595849b 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 @@ -140,10 +140,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -183,7 +183,7 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -426,17 +426,17 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new IaasComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } 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 664d35d4cdf2..dd3a286e8718 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 @@ -38,7 +38,7 @@ public IaasComputeVmProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -51,7 +51,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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + 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 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, 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 829d8624cdb9..296ac3e92340 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 @@ -140,10 +140,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -191,7 +191,7 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -434,17 +434,17 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new IaasVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } 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 4ae7eca6bbcc..26ef07ef6a19 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 @@ -44,7 +44,7 @@ public IaasVmProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -57,7 +57,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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod) + 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 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) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs index 3bd030e832a3..1b067d04840f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -37,6 +38,7 @@ internal static InquiryValidation DeserializeInquiryValidation(JsonElement eleme Optional status = default; Optional errorDetail = default; Optional additionalDetail = default; + Optional protectableItemCount = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("status"u8)) @@ -58,8 +60,17 @@ internal static InquiryValidation DeserializeInquiryValidation(JsonElement eleme additionalDetail = property.Value.GetString(); continue; } + if (property.NameEquals("protectableItemCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protectableItemCount = BinaryData.FromString(property.Value.GetRawText()); + continue; + } } - return new InquiryValidation(status.Value, errorDetail.Value, additionalDetail.Value); + return new InquiryValidation(status.Value, errorDetail.Value, additionalDetail.Value, protectableItemCount.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs index baba3bcd03cb..fb6c37b4fb59 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Validation for inquired protectable items under a given container. @@ -19,11 +21,13 @@ public InquiryValidation() /// Status for the Inquiry Validation. /// Error Detail in case the status is non-success. /// Error Additional Detail in case the status is non-success. - internal InquiryValidation(string status, BackupErrorDetail errorDetail, string additionalDetail) + /// Dictionary to store the count of ProtectableItems with key POType. + internal InquiryValidation(string status, BackupErrorDetail errorDetail, string additionalDetail, BinaryData protectableItemCount) { Status = status; ErrorDetail = errorDetail; AdditionalDetail = additionalDetail; + ProtectableItemCount = protectableItemCount; } /// Status for the Inquiry Validation. @@ -32,5 +36,36 @@ internal InquiryValidation(string status, BackupErrorDetail errorDetail, string public BackupErrorDetail ErrorDetail { get; set; } /// Error Additional Detail in case the status is non-success. public string AdditionalDetail { get; } + /// + /// Dictionary to store the count of ProtectableItems with key POType. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData ProtectableItemCount { get; } } } 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 e640c0283909..bdc4bafacd0e 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 @@ -129,10 +129,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -167,7 +167,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -355,17 +355,17 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new MabFileFolderProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, computerName.Value, lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectionState.Value, Optional.ToNullable(deferredDeleteSyncTimeInUTC), extendedInfo.Value); + return new MabFileFolderProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, computerName.Value, lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectionState.Value, Optional.ToNullable(deferredDeleteSyncTimeInUTC), extendedInfo.Value); } } } 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 f4f74b5739bc..8e7533260fc0 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 @@ -38,7 +38,7 @@ public MabFileFolderProtectedItem() /// 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. + /// Soft delete retention period in days. /// Friendly name of this backup item. /// Name of the computer associated with this backup item. /// Status of last backup operation. @@ -46,7 +46,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? softDeleteRetentionPeriod, 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, softDeleteRetentionPeriod) + 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 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) { FriendlyName = friendlyName; ComputerName = computerName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs index 72aa27ac58e5..3be1289fd75f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs @@ -25,10 +25,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } - if (Optional.IsDefined(ActionRequired)) + if (Optional.IsDefined(ActionsRequired)) { - writer.WritePropertyName("actionRequired"u8); - writer.WriteStringValue(ActionRequired); + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); } writer.WriteEndObject(); } @@ -41,7 +41,7 @@ internal static RecoveryServicesBackupPrivateLinkServiceConnectionState Deserial } Optional status = default; Optional description = default; - Optional actionRequired = default; + Optional actionsRequired = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("status"u8)) @@ -58,13 +58,13 @@ internal static RecoveryServicesBackupPrivateLinkServiceConnectionState Deserial description = property.Value.GetString(); continue; } - if (property.NameEquals("actionRequired"u8)) + if (property.NameEquals("actionsRequired"u8)) { - actionRequired = property.Value.GetString(); + actionsRequired = property.Value.GetString(); continue; } } - return new RecoveryServicesBackupPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value, actionRequired.Value); + return new RecoveryServicesBackupPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value, actionsRequired.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs index 9766d847f4b0..d093e3e54fe4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs @@ -18,12 +18,12 @@ public RecoveryServicesBackupPrivateLinkServiceConnectionState() /// Initializes a new instance of RecoveryServicesBackupPrivateLinkServiceConnectionState. /// Gets or sets the status. /// Gets or sets description. - /// Gets or sets actions required. - internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpointConnectionStatus? status, string description, string actionRequired) + /// Gets or sets actions required. + internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpointConnectionStatus? status, string description, string actionsRequired) { Status = status; Description = description; - ActionRequired = actionRequired; + ActionsRequired = actionsRequired; } /// Gets or sets the status. @@ -31,6 +31,6 @@ internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpoint /// Gets or sets description. public string Description { get; set; } /// Gets or sets actions required. - public string ActionRequired { get; set; } + public string ActionsRequired { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SoftDeleteFeatureState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SoftDeleteFeatureState.cs index bd3347fd18ce..9874a22c40cb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SoftDeleteFeatureState.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SoftDeleteFeatureState.cs @@ -25,6 +25,7 @@ public SoftDeleteFeatureState(string value) private const string InvalidValue = "Invalid"; private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; + private const string AlwaysONValue = "AlwaysON"; /// Invalid. public static SoftDeleteFeatureState Invalid { get; } = new SoftDeleteFeatureState(InvalidValue); @@ -32,6 +33,8 @@ public SoftDeleteFeatureState(string value) public static SoftDeleteFeatureState Enabled { get; } = new SoftDeleteFeatureState(EnabledValue); /// Disabled. public static SoftDeleteFeatureState Disabled { get; } = new SoftDeleteFeatureState(DisabledValue); + /// AlwaysON. + public static SoftDeleteFeatureState AlwaysON { get; } = new SoftDeleteFeatureState(AlwaysONValue); /// Determines if two values are the same. public static bool operator ==(SoftDeleteFeatureState left, SoftDeleteFeatureState right) => left.Equals(right); /// Determines if two values are not the same. 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 b76ed929c32b..7325bacb1569 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 @@ -109,10 +109,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -143,7 +143,7 @@ internal static SqlProtectedItem DeserializeSqlProtectedItem(JsonElement element Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectedItemDataId"u8)) @@ -307,17 +307,17 @@ internal static SqlProtectedItem DeserializeSqlProtectedItem(JsonElement element policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new SqlProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), protectedItemDataId.Value, Optional.ToNullable(protectionState), extendedInfo.Value); + return new SqlProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), protectedItemDataId.Value, Optional.ToNullable(protectionState), extendedInfo.Value); } } } 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 ef9834566de1..c29ede929061 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 @@ -38,11 +38,11 @@ public SqlProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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? softDeleteRetentionPeriod, string protectedItemDataId, ProtectedItemState? protectionState, SqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + 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 protectedItemDataId, ProtectedItemState? protectionState, SqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays) { 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 57be2b66ef44..b72747c528e4 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 @@ -94,10 +94,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -125,7 +125,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectedItemType"u8)) @@ -266,17 +266,17 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new UnknownProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod)); + return new UnknownProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays)); } } } 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 5caa1e6d1771..4f40cbe7b394 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 @@ -32,8 +32,8 @@ internal partial class UnknownProtectedItem : BackupGenericProtectedItem /// 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. - 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? softDeleteRetentionPeriod) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + /// Soft delete retention period in days. + 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays) { ProtectedItemType = protectedItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs new file mode 100644 index 000000000000..561264f3ee9e --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or AzureSiteRecovery. + public readonly partial struct VaultSubResourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VaultSubResourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureBackupValue = "AzureBackup"; + private const string AzureBackupSecondaryValue = "AzureBackup_secondary"; + private const string AzureSiteRecoveryValue = "AzureSiteRecovery"; + + /// AzureBackup. + public static VaultSubResourceType AzureBackup { get; } = new VaultSubResourceType(AzureBackupValue); + /// AzureBackup_secondary. + public static VaultSubResourceType AzureBackupSecondary { get; } = new VaultSubResourceType(AzureBackupSecondaryValue); + /// AzureSiteRecovery. + public static VaultSubResourceType AzureSiteRecovery { get; } = new VaultSubResourceType(AzureSiteRecoveryValue); + /// Determines if two values are the same. + public static bool operator ==(VaultSubResourceType left, VaultSubResourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VaultSubResourceType left, VaultSubResourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VaultSubResourceType(string value) => new VaultSubResourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VaultSubResourceType other && Equals(other); + /// + public bool Equals(VaultSubResourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs index ad6eed79569a..422f165c2c24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -90,10 +95,10 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J { switch (discriminator.GetString()) { + case "HanaHSRContainer": return AzureVmWorkloadSapHanaHSRProtectableItem.DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(element); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); @@ -108,6 +113,7 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = "AzureVmWorkloadProtectableItem"; @@ -175,6 +181,15 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -205,7 +220,7 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J continue; } } - return new VmWorkloadProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs index 4bcf4af00416..919b6d0daf30 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Azure VM workload-specific protectable item. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// The available derived classes include , , , , , , and . /// public partial class VmWorkloadProtectableItem : WorkloadProtectableItem { @@ -37,7 +37,8 @@ public VmWorkloadProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) + /// Indicates if item is protectable. + internal VmWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) { ParentName = parentName; ParentUniqueName = parentUniqueName; @@ -47,6 +48,7 @@ internal VmWorkloadProtectableItem(string backupManagementType, string workloadT SubInquiredItemCount = subInquiredItemCount; SubProtectableItemCount = subProtectableItemCount; PreBackupValidation = preBackupValidation; + IsProtectable = isProtectable; ProtectableItemType = protectableItemType ?? "AzureVmWorkloadProtectableItem"; } @@ -69,5 +71,7 @@ internal VmWorkloadProtectableItem(string backupManagementType, string workloadT public int? SubProtectableItemCount { get; set; } /// Pre-backup validation for protectable objects. public PreBackupValidation PreBackupValidation { get; set; } + /// Indicates if item is protectable. + public bool? IsProtectable { get; set; } } } 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 44a2fe091a00..6e7f15ab64d7 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 @@ -78,6 +78,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("protectedItemType"u8); writer.WriteStringValue(ProtectedItemType); if (Optional.IsDefined(ContainerName)) @@ -155,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -192,6 +202,7 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE Optional protectedItemHealthStatus = default; Optional extendedInfo = default; Optional> kpisHealths = default; + Optional> nodesList = default; string protectedItemType = "AzureVmWorkloadProtectedItem"; Optional backupManagementType = default; Optional workloadType = default; @@ -209,7 +220,7 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -310,6 +321,20 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE kpisHealths = dictionary; continue; } + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -448,17 +473,17 @@ internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonE policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new VmWorkloadProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths), Optional.ToList(nodesList)); } } } 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 310bc5445761..51470be31f81 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 @@ -22,6 +22,7 @@ public partial class VmWorkloadProtectedItem : BackupGenericProtectedItem public VmWorkloadProtectedItem() { KpisHealths = new ChangeTrackingDictionary(); + NodesList = new ChangeTrackingList(); ProtectedItemType = "AzureVmWorkloadProtectedItem"; } @@ -43,7 +44,7 @@ public VmWorkloadProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -57,7 +58,8 @@ public VmWorkloadProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - 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? softDeleteRetentionPeriod, 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + /// 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 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) { FriendlyName = friendlyName; ServerName = serverName; @@ -72,6 +74,7 @@ internal VmWorkloadProtectedItem(string protectedItemType, BackupManagementType? ProtectedItemHealthStatus = protectedItemHealthStatus; ExtendedInfo = extendedInfo; KpisHealths = kpisHealths; + NodesList = nodesList; ProtectedItemType = protectedItemType ?? "AzureVmWorkloadProtectedItem"; } @@ -101,5 +104,7 @@ internal VmWorkloadProtectedItem(string protectedItemType, BackupManagementType? public VmWorkloadProtectedItemExtendedInfo ExtendedInfo { get; set; } /// Health details of different KPIs. public IDictionary KpisHealths { get; } + /// List of the nodes in case of distributed container. + public IList NodesList { get; } } } 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 24517e4e471f..92626c76717e 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 @@ -78,6 +78,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("protectedItemType"u8); writer.WriteStringValue(ProtectedItemType); if (Optional.IsDefined(ContainerName)) @@ -155,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -182,6 +192,7 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs Optional protectedItemHealthStatus = default; Optional extendedInfo = default; Optional> kpisHealths = default; + Optional> nodesList = default; string protectedItemType = default; Optional backupManagementType = default; Optional workloadType = default; @@ -199,7 +210,7 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -300,6 +311,20 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs kpisHealths = dictionary; continue; } + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -438,17 +463,17 @@ internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAs policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new VmWorkloadSapAseDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapAseDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths), Optional.ToList(nodesList)); } } } 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 bf98a1636c3a..f63cf998fcbe 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 @@ -38,7 +38,7 @@ public VmWorkloadSapAseDatabaseProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -52,7 +52,8 @@ public VmWorkloadSapAseDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - 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? softDeleteRetentionPeriod, 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + /// 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 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, 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/VmWorkloadSapAseSystemProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs index 87076cb2e97f..67bfeb854cb0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSapAseSystemProtectableItem DeserializeVmWorkloadSapAs Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSapAseSystemProtectableItem DeserializeVmWorkloadSapAs prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSapAseSystemProtectableItem DeserializeVmWorkloadSapAs continue; } } - return new VmWorkloadSapAseSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapAseSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs index ba19aab679f9..d7c1247c0757 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs @@ -33,7 +33,8 @@ public VmWorkloadSapAseSystemProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapAseSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSapAseSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SAPAseSystem"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs index 55d9f47b6545..22f4c62c07a0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSapHanaDBInstance DeserializeVmWorkloadSapHanaDBInstan Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSapHanaDBInstance DeserializeVmWorkloadSapHanaDBInstan prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSapHanaDBInstance DeserializeVmWorkloadSapHanaDBInstan continue; } } - return new VmWorkloadSapHanaDBInstance(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaDBInstance(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs index 9928e543f01b..e46ca54ac2b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs @@ -33,7 +33,8 @@ public VmWorkloadSapHanaDBInstance() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapHanaDBInstance(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSapHanaDBInstance(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SAPHanaDBInstance"; } 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 394a10340498..92c640f06c3f 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 @@ -78,6 +78,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("protectedItemType"u8); writer.WriteStringValue(ProtectedItemType); if (Optional.IsDefined(ContainerName)) @@ -155,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -182,6 +192,7 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa Optional protectedItemHealthStatus = default; Optional extendedInfo = default; Optional> kpisHealths = default; + Optional> nodesList = default; string protectedItemType = default; Optional backupManagementType = default; Optional workloadType = default; @@ -199,7 +210,7 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -300,6 +311,20 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa kpisHealths = dictionary; continue; } + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -438,17 +463,17 @@ internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSa policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new VmWorkloadSapHanaDBInstanceProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapHanaDBInstanceProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths), Optional.ToList(nodesList)); } } } 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 466153c2a0c8..979523536182 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 @@ -38,7 +38,7 @@ public VmWorkloadSapHanaDBInstanceProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -52,7 +52,8 @@ public VmWorkloadSapHanaDBInstanceProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - 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? softDeleteRetentionPeriod, 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + /// 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 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, 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/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs index 096469dd7b92..5af40a410420 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSapHanaDatabaseProtectableItem DeserializeVmWorkloadSa Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSapHanaDatabaseProtectableItem DeserializeVmWorkloadSa prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSapHanaDatabaseProtectableItem DeserializeVmWorkloadSa continue; } } - return new VmWorkloadSapHanaDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs index 5cfe16891e33..3c40c3c03afa 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs @@ -33,7 +33,8 @@ public VmWorkloadSapHanaDatabaseProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapHanaDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSapHanaDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SAPHanaDatabase"; } 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 5b986d7c390d..6f476ff794b5 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 @@ -78,6 +78,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("protectedItemType"u8); writer.WriteStringValue(ProtectedItemType); if (Optional.IsDefined(ContainerName)) @@ -155,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -182,6 +192,7 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH Optional protectedItemHealthStatus = default; Optional extendedInfo = default; Optional> kpisHealths = default; + Optional> nodesList = default; string protectedItemType = default; Optional backupManagementType = default; Optional workloadType = default; @@ -199,7 +210,7 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -300,6 +311,20 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH kpisHealths = dictionary; continue; } + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -438,17 +463,17 @@ internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapH policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new VmWorkloadSapHanaDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapHanaDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths), Optional.ToList(nodesList)); } } } 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 5ce79bb50f70..8ebff5af7bd1 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 @@ -38,7 +38,7 @@ public VmWorkloadSapHanaDatabaseProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -52,7 +52,8 @@ public VmWorkloadSapHanaDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - 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? softDeleteRetentionPeriod, 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + /// 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 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, 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/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs index 8a4d0c5d7641..8e1d33d4490c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSapHanaSystemProtectableItem DeserializeVmWorkloadSapH Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSapHanaSystemProtectableItem DeserializeVmWorkloadSapH prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSapHanaSystemProtectableItem DeserializeVmWorkloadSapH continue; } } - return new VmWorkloadSapHanaSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs index 095f5fcda30d..e02706daea53 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs @@ -33,7 +33,8 @@ public VmWorkloadSapHanaSystemProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapHanaSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSapHanaSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SAPHanaSystem"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs index 703230b72313..a634bdbcf4d1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -15,6 +16,16 @@ public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : IUtf8JsonSe void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(ParentName)) { writer.WritePropertyName("parentName"u8); @@ -55,6 +66,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -86,6 +102,7 @@ internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkl { return null; } + Optional> nodesList = default; Optional parentName = default; Optional parentUniqueName = default; Optional serverName = default; @@ -94,6 +111,7 @@ internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkl Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -101,6 +119,20 @@ internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkl Optional protectionState = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("parentName"u8)) { parentName = property.Value.GetString(); @@ -161,6 +193,15 @@ internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkl prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +232,7 @@ internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkl continue; } } - return new VmWorkloadSqlAvailabilityGroupProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSqlAvailabilityGroupProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable), Optional.ToList(nodesList)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs index e2de1135bff7..eb438d8322e6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs @@ -5,6 +5,9 @@ #nullable disable +using System.Collections.Generic; +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SQL Availability Group. @@ -13,6 +16,7 @@ public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : VmWorkloadP /// Initializes a new instance of VmWorkloadSqlAvailabilityGroupProtectableItem. public VmWorkloadSqlAvailabilityGroupProtectableItem() { + NodesList = new ChangeTrackingList(); ProtectableItemType = "SQLAvailabilityGroupContainer"; } @@ -33,9 +37,15 @@ public VmWorkloadSqlAvailabilityGroupProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSqlAvailabilityGroupProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + /// List of the nodes in case of distributed container. + internal VmWorkloadSqlAvailabilityGroupProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable, IList nodesList) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { + NodesList = nodesList; ProtectableItemType = protectableItemType ?? "SQLAvailabilityGroupContainer"; } + + /// List of the nodes in case of distributed container. + public IList NodesList { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs index bf41e35e5ba1..16ac985c5959 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSqlDatabaseProtectableItem DeserializeVmWorkloadSqlDat Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSqlDatabaseProtectableItem DeserializeVmWorkloadSqlDat prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSqlDatabaseProtectableItem DeserializeVmWorkloadSqlDat continue; } } - return new VmWorkloadSqlDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSqlDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs index beb1d9c76473..da92318dcc0e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs @@ -33,7 +33,8 @@ public VmWorkloadSqlDatabaseProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSqlDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSqlDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SQLDataBase"; } 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 9c1c2fc3a468..8174eb67ac7c 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 @@ -78,6 +78,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsCollectionDefined(NodesList)) + { + writer.WritePropertyName("nodesList"u8); + writer.WriteStartArray(); + foreach (var item in NodesList) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("protectedItemType"u8); writer.WriteStringValue(ProtectedItemType); if (Optional.IsDefined(ContainerName)) @@ -155,10 +165,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"u8); writer.WriteStringValue(PolicyName); } - if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + if (Optional.IsDefined(SoftDeleteRetentionPeriodInDays)) { - writer.WritePropertyName("softDeleteRetentionPeriod"u8); - writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + writer.WritePropertyName("softDeleteRetentionPeriodInDays"u8); + writer.WriteNumberValue(SoftDeleteRetentionPeriodInDays.Value); } writer.WriteEndObject(); } @@ -182,6 +192,7 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab Optional protectedItemHealthStatus = default; Optional extendedInfo = default; Optional> kpisHealths = default; + Optional> nodesList = default; string protectedItemType = default; Optional backupManagementType = default; Optional workloadType = default; @@ -199,7 +210,7 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; - Optional softDeleteRetentionPeriod = default; + Optional softDeleteRetentionPeriodInDays = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -300,6 +311,20 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab kpisHealths = dictionary; continue; } + if (property.NameEquals("nodesList"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DistributedNodesInfo.DeserializeDistributedNodesInfo(item)); + } + nodesList = array; + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -438,17 +463,17 @@ internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatab policyName = property.Value.GetString(); continue; } - if (property.NameEquals("softDeleteRetentionPeriod"u8)) + if (property.NameEquals("softDeleteRetentionPeriodInDays"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - softDeleteRetentionPeriod = property.Value.GetInt32(); + softDeleteRetentionPeriodInDays = property.Value.GetInt32(); continue; } } - return new VmWorkloadSqlDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSqlDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriodInDays), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths), Optional.ToList(nodesList)); } } } 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 9ef6087128f9..8a1836bdc062 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 @@ -38,7 +38,7 @@ public VmWorkloadSqlDatabaseProtectedItem() /// 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. + /// Soft delete retention period in days. /// 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. @@ -52,7 +52,8 @@ public VmWorkloadSqlDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - 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? softDeleteRetentionPeriod, 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) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + /// 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 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, 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/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs index ec2ef43eef51..6eac67fa3ed9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("prebackupvalidation"u8); writer.WriteObjectValue(PreBackupValidation); } + if (Optional.IsDefined(IsProtectable)) + { + writer.WritePropertyName("isProtectable"u8); + writer.WriteBooleanValue(IsProtectable.Value); + } if (Optional.IsDefined(BackupManagementType)) { writer.WritePropertyName("backupManagementType"u8); @@ -94,6 +99,7 @@ internal static VmWorkloadSqlInstanceProtectableItem DeserializeVmWorkloadSqlIns Optional subinquireditemcount = default; Optional subprotectableitemcount = default; Optional prebackupvalidation = default; + Optional isProtectable = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; @@ -161,6 +167,15 @@ internal static VmWorkloadSqlInstanceProtectableItem DeserializeVmWorkloadSqlIns prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); continue; } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("backupManagementType"u8)) { backupManagementType = property.Value.GetString(); @@ -191,7 +206,7 @@ internal static VmWorkloadSqlInstanceProtectableItem DeserializeVmWorkloadSqlIns continue; } } - return new VmWorkloadSqlInstanceProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSqlInstanceProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value, Optional.ToNullable(isProtectable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs index 91d8d151cbd8..068dfa754755 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs @@ -33,7 +33,8 @@ public VmWorkloadSqlInstanceProtectableItem() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSqlInstanceProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + /// Indicates if item is protectable. + internal VmWorkloadSqlInstanceProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) { ProtectableItemType = protectableItemType ?? "SQLInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs index ff2cb05a9a69..1142b214bc4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs @@ -52,13 +52,13 @@ internal static WorkloadProtectableItem DeserializeWorkloadProtectableItem(JsonE { case "AzureFileShare": return FileShareProtectableItem.DeserializeFileShareProtectableItem(element); case "AzureVmWorkloadProtectableItem": return VmWorkloadProtectableItem.DeserializeVmWorkloadProtectableItem(element); + case "HanaHSRContainer": return AzureVmWorkloadSapHanaHSRProtectableItem.DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(element); case "IaaSVMProtectableItem": return IaasVmProtectableItem.DeserializeIaasVmProtectableItem(element); case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectableItem.DeserializeIaasClassicComputeVmProtectableItem(element); case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectableItem.DeserializeIaasComputeVmProtectableItem(element); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs index 99c4b0032f15..2caf5431747d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup item. Workload-specific backup items are derived from this class. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public abstract partial class WorkloadProtectableItem { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs index 1a0344c385c6..22b9e8617250 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs @@ -31,7 +31,7 @@ public WorkloadProtectableItemResource(AzureLocation location) : base(location) /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// Optional ETag. internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, WorkloadProtectableItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) @@ -43,7 +43,7 @@ internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, Res /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public WorkloadProtectableItem Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs index 55f97b4fada9..098cdd016544 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs @@ -33,7 +33,7 @@ public BackupEnginesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs index 6f7737d9b817..4d523de00dfd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs @@ -33,7 +33,7 @@ public BackupJobsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index a2aaef6de9ac..a035b17265c2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs index af790eed213e..4d58449d9342 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs @@ -33,7 +33,7 @@ public BackupProtectableItemsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs index 89d50f774338..dc49ab5cfa64 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs @@ -33,7 +33,7 @@ public BackupProtectedItemsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs index a934d8f6cf99..7be6a7657990 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs @@ -33,7 +33,7 @@ public BackupProtectionContainersRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs index 4b6b62ab5224..1d45c880da24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs @@ -33,7 +33,7 @@ public BackupProtectionIntentRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs index 3d0cbfc1a564..17d742126aaf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs @@ -33,7 +33,7 @@ public BackupResourceEncryptionConfigsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs index b19f4d35f82f..3720cf1fcb25 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs @@ -32,7 +32,7 @@ public BackupResourceStorageConfigsNonCRRRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs index 1cf33d153d95..0cf2febba2e0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs @@ -32,7 +32,7 @@ public BackupResourceVaultConfigsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs index ac6d19d2024f..c3c8444800d5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs @@ -33,7 +33,7 @@ public BackupStatusRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs index 36f2e8634c08..403c597d7b8e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs @@ -33,7 +33,7 @@ public BackupUsageSummariesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs index 0d0fd2f0603c..557f940c855e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs @@ -33,7 +33,7 @@ public BackupWorkloadItemsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs index ba79a7ac39f1..eb1a99af367e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs @@ -32,7 +32,7 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs index fd7c581b1820..7eb3d6f780ee 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs @@ -33,7 +33,7 @@ public DeletedProtectionContainersRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs index 0b334afb93cb..27a8be5bf8bc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs @@ -33,7 +33,7 @@ public FeatureSupportRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs index 1a22f6d4c62d..18095061e621 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ItemLevelRecoveryConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs index 471d3fbf3bc7..07df4f9f5509 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs @@ -31,7 +31,7 @@ public JobCancellationsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs index 8f3adaf372a7..83aa246d3e19 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs @@ -32,7 +32,7 @@ public JobDetailsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs index 26225c4270a3..5931c15786f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs @@ -31,7 +31,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index a97de14f5c76..9b02be1c601d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs index 475d89d01879..06b073dd8650 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs @@ -33,7 +33,7 @@ public ProtectableContainersRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs index c5e07e27b9ce..fa6c61e61544 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs @@ -32,7 +32,7 @@ public ProtectedItemsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs index d4c158744b5e..0b9d9189f586 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs @@ -32,7 +32,7 @@ public ProtectionContainersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs index 3c399b12cb38..ec3b9c2d6c62 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs @@ -33,7 +33,7 @@ public ProtectionIntentRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs index 2cc2e217ca20..f0c77119e1b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public ProtectionPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs index 5408c70d4fa6..32770d2cd509 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs @@ -33,7 +33,7 @@ public RecoveryPointsRecommendedForMoveRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index 9f9daba9d967..9bdf3a56581c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -33,7 +33,7 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs index ec2c1e3799c7..3f85c4d7d7ca 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs @@ -32,7 +32,7 @@ public RecoveryServicesBackupRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs index 4b9fb0f755be..58ab84a107e1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs @@ -33,7 +33,7 @@ public ResourceGuardProxyRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs index 1d8b48b642f8..3285a73dedf2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs @@ -32,7 +32,7 @@ public RestoresRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs index aa8d69ba1b19..d60c76af682f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs @@ -33,7 +33,7 @@ public SecurityPINsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index 96aaa42ddb4e..1c9cb94eacca 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -9,7 +9,7 @@ csharp: true library-name: RecoveryServicesBackup namespace: Azure.ResourceManager.RecoveryServicesBackup # tag: package-2023-01 -require: https://github.com/Azure/azure-rest-api-specs/blob/add28efcd3a5fd422285d992fb1ec5ee5a7a40a6/specification/recoveryservicesbackup/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true