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 aafe7db48b39..3c78f8771d43 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 @@ -465,6 +465,8 @@ public static partial class RecoveryServicesBackupExtensions public static Azure.Response GetProtectionContainerResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetProtectionContainerResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceCollection GetProtectionContainerResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetProtectionContainerResourcesByBackupDeletedProtectionContainer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetProtectionContainerResourcesByBackupDeletedProtectionContainerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetProtectionContainerResourcesByBackupProtectionContainer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetProtectionContainerResourcesByBackupProtectionContainerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResource GetProtectionIntentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -626,6 +628,7 @@ public partial class AzureFileShareRecoveryPoint : Azure.ResourceManager.Recover public AzureFileShareRecoveryPoint() { } public System.Uri FileShareSnapshotUri { get { throw null; } set { } } public System.DateTimeOffset? RecoveryPointOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } public int? RecoveryPointSizeInGB { get { throw null; } set { } } public string RecoveryPointType { get { throw null; } set { } } } @@ -1079,6 +1082,7 @@ public partial class AzureWorkloadRecoveryPoint : Azure.ResourceManager.Recovery { public AzureWorkloadRecoveryPoint() { } public System.Collections.Generic.IDictionary RecoveryPointMoveReadinessInfo { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } public System.Collections.Generic.IList RecoveryPointTierDetails { get { throw null; } } public System.DateTimeOffset? RecoveryPointTimeInUTC { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RestorePointType? RestorePointType { get { throw null; } set { } } @@ -1733,6 +1737,7 @@ public GenericRecoveryPoint() { } public string FriendlyName { get { throw null; } set { } } public string RecoveryPointAdditionalInfo { get { throw null; } set { } } public System.DateTimeOffset? RecoveryPointOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } public string RecoveryPointType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1871,6 +1876,7 @@ public IaasVmRecoveryPoint() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointDiskConfiguration RecoveryPointDiskConfiguration { get { throw null; } set { } } public System.Collections.Generic.IDictionary RecoveryPointMoveReadinessInfo { get { throw null; } } public System.DateTimeOffset? RecoveryPointOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } public System.Collections.Generic.IList RecoveryPointTierDetails { get { throw null; } } public string RecoveryPointType { get { throw null; } set { } } public string SourceVmStorageType { get { throw null; } set { } } @@ -2486,6 +2492,7 @@ protected ProtectedItem() { } public string 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 string SourceResourceId { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType? WorkloadType { get { throw null; } } } @@ -2516,6 +2523,7 @@ protected ProtectedItem() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ProtectedItemState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState BackupsSuspended { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState Invalid { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState IRPending { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState Protected { get { throw null; } } @@ -2562,6 +2570,7 @@ protected ProtectionPolicy() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ProtectionState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState BackupsSuspended { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState Invalid { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState IRPending { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState Protected { get { throw null; } } @@ -2656,6 +2665,12 @@ public RecoveryPointMoveReadinessInfo() { } public string AdditionalInfo { get { throw null; } set { } } public bool? IsReadyForMove { get { throw null; } set { } } } + public partial class RecoveryPointProperties + { + public RecoveryPointProperties() { } + public string ExpiryTime { get { throw null; } set { } } + public string RuleName { get { throw null; } set { } } + } public partial class RecoveryPointRehydrationInfo { public RecoveryPointRehydrationInfo() { } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs index 4682c07e35af..b1b767585d84 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs @@ -1713,6 +1713,60 @@ public static Pageable GetProtectionContainerResour return GetExtensionClient(resourceGroupResource).GetProtectionContainerResourcesByBackupProtectionContainer(vaultName, filter, cancellationToken); } + /// + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers + /// + /// + /// Operation Id + /// DeletedProtectionContainers_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetProtectionContainerResourcesByBackupDeletedProtectionContainerAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + return GetExtensionClient(resourceGroupResource).GetProtectionContainerResourcesByBackupDeletedProtectionContainerAsync(vaultName, filter, cancellationToken); + } + + /// + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers + /// + /// + /// Operation Id + /// DeletedProtectionContainers_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetProtectionContainerResourcesByBackupDeletedProtectionContainer(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + return GetExtensionClient(resourceGroupResource).GetProtectionContainerResourcesByBackupDeletedProtectionContainer(vaultName, filter, cancellationToken); + } + /// /// Get the security PIN. /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index fbd4c53c6dfe..45f6b1a1a854 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -51,6 +51,8 @@ internal partial class ResourceGroupResourceExtensionClient : ArmResource private BackupProtectableItemsRestOperations _backupProtectableItemsRestClient; private ClientDiagnostics _backupProtectionContainersClientDiagnostics; private BackupProtectionContainersRestOperations _backupProtectionContainersRestClient; + private ClientDiagnostics _deletedProtectionContainersClientDiagnostics; + private DeletedProtectionContainersRestOperations _deletedProtectionContainersRestClient; private ClientDiagnostics _securityPINsClientDiagnostics; private SecurityPINsRestOperations _securityPINsRestClient; @@ -98,6 +100,8 @@ internal ResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifi private BackupProtectableItemsRestOperations BackupProtectableItemsRestClient => _backupProtectableItemsRestClient ??= new BackupProtectableItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics BackupProtectionContainersClientDiagnostics => _backupProtectionContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BackupProtectionContainersRestOperations BackupProtectionContainersRestClient => _backupProtectionContainersRestClient ??= new BackupProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics DeletedProtectionContainersClientDiagnostics => _deletedProtectionContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private DeletedProtectionContainersRestOperations DeletedProtectionContainersRestClient => _deletedProtectionContainersRestClient ??= new DeletedProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics SecurityPINsClientDiagnostics => _securityPINsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private SecurityPINsRestOperations SecurityPINsRestClient => _securityPINsRestClient ??= new SecurityPINsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); @@ -1149,6 +1153,54 @@ public virtual Pageable GetProtectionContainerResou return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), BackupProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionContainerResourcesByBackupProtectionContainer", "value", "nextLink", cancellationToken); } + /// + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers + /// + /// + /// Operation Id + /// DeletedProtectionContainers_List + /// + /// + /// + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetProtectionContainerResourcesByBackupDeletedProtectionContainerAsync(string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => DeletedProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeletedProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionContainerResourcesByBackupDeletedProtectionContainer", "value", "nextLink", cancellationToken); + } + + /// + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers + /// + /// + /// Operation Id + /// DeletedProtectionContainers_List + /// + /// + /// + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetProtectionContainerResourcesByBackupDeletedProtectionContainer(string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => DeletedProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeletedProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionContainerResourcesByBackupDeletedProtectionContainer", "value", "nextLink", cancellationToken); + } + /// /// Get the security PIN. /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs index cca0354592fa..b0bb035887a0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("recoveryPointSizeInGB"); writer.WriteNumberValue(RecoveryPointSizeInGB.Value); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -47,6 +52,7 @@ internal static AzureFileShareRecoveryPoint DeserializeAzureFileShareRecoveryPoi Optional recoveryPointTime = default; Optional fileShareSnapshotUri = default; Optional recoveryPointSizeInGB = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -85,13 +91,23 @@ internal static AzureFileShareRecoveryPoint DeserializeAzureFileShareRecoveryPoi recoveryPointSizeInGB = property.Value.GetInt32(); continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureFileShareRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), fileShareSnapshotUri.Value, Optional.ToNullable(recoveryPointSizeInGB)); + return new AzureFileShareRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), fileShareSnapshotUri.Value, Optional.ToNullable(recoveryPointSizeInGB), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs index 52e219c8db09..50457877973f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs @@ -24,12 +24,14 @@ public AzureFileShareRecoveryPoint() /// Time at which this backup copy was created. /// Contains Url to the snapshot of fileshare, if applicable. /// Contains recovery point size. - internal AzureFileShareRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB) : base(objectType) + /// Properties of Recovery Point. + internal AzureFileShareRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB, RecoveryPointProperties recoveryPointProperties) : base(objectType) { RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; FileShareSnapshotUri = fileShareSnapshotUri; RecoveryPointSizeInGB = recoveryPointSizeInGB; + RecoveryPointProperties = recoveryPointProperties; ObjectType = objectType ?? "AzureFileShareRecoveryPoint"; } @@ -41,5 +43,7 @@ internal AzureFileShareRecoveryPoint(string objectType, string recoveryPointType public Uri FileShareSnapshotUri { get; set; } /// Contains recovery point size. public int? RecoveryPointSizeInGB { get; set; } + /// Properties of Recovery Point. + public RecoveryPointProperties RecoveryPointProperties { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs index 618d355c006e..ccee8c1a1cc0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs @@ -135,6 +135,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -164,6 +169,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -366,8 +372,18 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureFileshareProtectedItem(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, friendlyName.Value, protectionStatus.Value, Optional.ToNullable(protectionState), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), Optional.ToDictionary(kpisHealths), extendedInfo.Value); + return new AzureFileshareProtectedItem(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); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs index c86d14161936..bb9cf09208fe 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs @@ -39,6 +39,7 @@ public AzureFileshareProtectedItem() /// 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. /// Friendly name of the fileshare represented by this backup item. /// Backup status of this backup item. /// Backup state of this backup item. @@ -46,7 +47,7 @@ public AzureFileshareProtectedItem() /// Timestamp of the last backup operation on this backup item. /// Health details of different KPIs. /// Additional information with this backup item. - internal AzureFileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string protectionStatus, ProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, AzureFileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal AzureFileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string protectionStatus, ProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, AzureFileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ProtectionStatus = protectionStatus; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs index 99417e67f11b..d28250c82d25 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs @@ -140,6 +140,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -174,6 +179,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -421,8 +427,18 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureIaaSClassicComputeVmProtectedItem(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, 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 AzureIaaSClassicComputeVmProtectedItem(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); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs index 58a36c3a917e..28ab439c5951 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs @@ -37,6 +37,7 @@ public AzureIaaSClassicComputeVmProtectedItem() /// 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. /// 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. @@ -49,7 +50,7 @@ public AzureIaaSClassicComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaaSClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal AzureIaaSClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, 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/AzureIaaSComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs index 33301cf02467..0b59d8c7c0de 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs @@ -140,6 +140,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -174,6 +179,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -421,8 +427,18 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureIaaSComputeVmProtectedItem(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, 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 AzureIaaSComputeVmProtectedItem(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); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs index aaf970014751..c8526de3842b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs @@ -37,6 +37,7 @@ public AzureIaaSComputeVmProtectedItem() /// 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. /// 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. @@ -49,7 +50,7 @@ public AzureIaaSComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaaSComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal AzureIaaSComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, 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/AzureIaasVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs index fd1194fae3e9..1a3a257d83f2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs @@ -140,6 +140,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -182,6 +187,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -429,8 +435,18 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureIaasVmProtectedItem(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, 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 AzureIaasVmProtectedItem(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); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs index 3fbcb3518248..f991320eb2f3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs @@ -44,6 +44,7 @@ public AzureIaasVmProtectedItem() /// 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. /// 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. @@ -56,7 +57,7 @@ public AzureIaasVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal AzureIaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs index b603bef83ac8..bc7e8f757265 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs @@ -109,6 +109,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -134,6 +139,7 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectedItemDataId")) @@ -301,8 +307,18 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureSqlProtectedItem(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, protectedItemDataId.Value, Optional.ToNullable(protectionState), extendedInfo.Value); + return new AzureSqlProtectedItem(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); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs index 48ff8291a788..7ac3c7263077 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs @@ -37,10 +37,11 @@ public AzureSqlProtectedItem() /// 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 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 AzureSqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string protectedItemDataId, ProtectedItemState? protectionState, AzureSqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal AzureSqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string protectedItemDataId, ProtectedItemState? protectionState, AzureSqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { ProtectedItemDataId = protectedItemDataId; ProtectionState = protectionState; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs index 76480ce9a963..8142f2add342 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs @@ -155,6 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -200,6 +205,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -447,8 +453,18 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureVmWorkloadProtectedItem(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, 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 AzureVmWorkloadProtectedItem(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)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs index 6e7b42eeb66c..1b68f9085ae2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs @@ -43,6 +43,7 @@ public AzureVmWorkloadProtectedItem() /// 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. /// 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. @@ -56,7 +57,7 @@ public AzureVmWorkloadProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal AzureVmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ServerName = serverName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs index 1a6de3d97bc6..c7e8457b0c1a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs @@ -155,6 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -190,6 +195,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -437,8 +443,18 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureVmWorkloadSAPAseDatabaseProtectedItem(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, 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 AzureVmWorkloadSAPAseDatabaseProtectedItem(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)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs index e44d6dbe5f9c..fc68cc8d20c5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs @@ -37,6 +37,7 @@ public AzureVmWorkloadSAPAseDatabaseProtectedItem() /// 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. /// 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. @@ -50,7 +51,7 @@ public AzureVmWorkloadSAPAseDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal AzureVmWorkloadSAPAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPAseDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs index 4ce55ce0da58..b18efbf82061 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs @@ -155,6 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -190,6 +195,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -437,8 +443,18 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureVmWorkloadSAPHanaDBInstanceProtectedItem(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, 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 AzureVmWorkloadSAPHanaDBInstanceProtectedItem(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)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs index f380087d21ef..c83d06e1e72b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs @@ -37,6 +37,7 @@ public AzureVmWorkloadSAPHanaDBInstanceProtectedItem() /// 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. /// 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. @@ -50,7 +51,7 @@ public AzureVmWorkloadSAPHanaDBInstanceProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal AzureVmWorkloadSAPHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDBInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs index 2a839e7adbf0..14acba4c7f36 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs @@ -155,6 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -190,6 +195,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -437,8 +443,18 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureVmWorkloadSAPHanaDatabaseProtectedItem(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, 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 AzureVmWorkloadSAPHanaDatabaseProtectedItem(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)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs index e89438fdfd7d..dbb2d4dfb16e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs @@ -37,6 +37,7 @@ public AzureVmWorkloadSAPHanaDatabaseProtectedItem() /// 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. /// 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. @@ -50,7 +51,7 @@ public AzureVmWorkloadSAPHanaDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal AzureVmWorkloadSAPHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs index 865c92b457a7..ef510015d89e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs @@ -155,6 +155,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -190,6 +195,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -437,8 +443,18 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = property.Value.GetInt32(); + continue; + } } - return new AzureVmWorkloadSQLDatabaseProtectedItem(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, 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 AzureVmWorkloadSQLDatabaseProtectedItem(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)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs index 4fa6ddd5367a..0b41a35caa22 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs @@ -37,6 +37,7 @@ public AzureVmWorkloadSQLDatabaseProtectedItem() /// 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. /// 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. @@ -50,7 +51,7 @@ public AzureVmWorkloadSQLDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSQLDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal AzureVmWorkloadSQLDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSQLDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs index bad2ac7adf2c..d4f8ee5334d5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs @@ -58,6 +58,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -77,6 +82,7 @@ internal static AzureWorkloadPointInTimeRecoveryPoint DeserializeAzureWorkloadPo Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = "AzureWorkloadPointInTimeRecoveryPoint"; foreach (var property in element.EnumerateObject()) { @@ -145,13 +151,23 @@ internal static AzureWorkloadPointInTimeRecoveryPoint DeserializeAzureWorkloadPo recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), Optional.ToList(timeRanges)); + return new AzureWorkloadPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs index df8a61641574..598565a4ef4f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs @@ -31,8 +31,9 @@ public AzureWorkloadPointInTimeRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. /// List of log ranges. - internal AzureWorkloadPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo) + internal AzureWorkloadPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { TimeRanges = timeRanges; ObjectType = objectType ?? "AzureWorkloadPointInTimeRecoveryPoint"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs index 8e3d08169332..ea7c04717dcf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs @@ -48,6 +48,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -70,6 +75,7 @@ internal static AzureWorkloadRecoveryPoint DeserializeAzureWorkloadRecoveryPoint Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = "AzureWorkloadRecoveryPoint"; foreach (var property in element.EnumerateObject()) { @@ -123,13 +129,23 @@ internal static AzureWorkloadRecoveryPoint DeserializeAzureWorkloadRecoveryPoint recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo)); + return new AzureWorkloadRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs index 5ce861c4f48b..df4649ff7a0a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs @@ -32,12 +32,14 @@ public AzureWorkloadRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. - internal AzureWorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo) : base(objectType) + /// Properties of Recovery Point. + internal AzureWorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType) { RecoveryPointTimeInUTC = recoveryPointTimeInUTC; RestorePointType = restorePointType; RecoveryPointTierDetails = recoveryPointTierDetails; RecoveryPointMoveReadinessInfo = recoveryPointMoveReadinessInfo; + RecoveryPointProperties = recoveryPointProperties; ObjectType = objectType ?? "AzureWorkloadRecoveryPoint"; } @@ -49,5 +51,7 @@ internal AzureWorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryP public IList RecoveryPointTierDetails { get; } /// Eligibility of RP to be moved to another tier. public IDictionary RecoveryPointMoveReadinessInfo { get; } + /// Properties of Recovery Point. + public RecoveryPointProperties RecoveryPointProperties { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs index 2ea906136376..3d4caac254db 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs @@ -58,6 +58,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -70,6 +75,7 @@ internal static AzureWorkloadSAPHanaPointInTimeRecoveryPoint DeserializeAzureWor Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -138,13 +144,23 @@ internal static AzureWorkloadSAPHanaPointInTimeRecoveryPoint DeserializeAzureWor recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadSAPHanaPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), Optional.ToList(timeRanges)); + return new AzureWorkloadSAPHanaPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs index 4d4cffef2261..5799f871ed0f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs @@ -25,8 +25,9 @@ public AzureWorkloadSAPHanaPointInTimeRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. /// List of log ranges. - internal AzureWorkloadSAPHanaPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, timeRanges) + internal AzureWorkloadSAPHanaPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, timeRanges) { ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRecoveryPoint"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs index 0471f9ac67b7..7ec9036aa508 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs @@ -48,6 +48,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -59,6 +64,7 @@ internal static AzureWorkloadSAPHanaRecoveryPoint DeserializeAzureWorkloadSAPHan Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -112,13 +118,23 @@ internal static AzureWorkloadSAPHanaRecoveryPoint DeserializeAzureWorkloadSAPHan recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadSAPHanaRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo)); + return new AzureWorkloadSAPHanaRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs index b1f15f7e2c06..5f8e9965369b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs @@ -25,7 +25,8 @@ public AzureWorkloadSAPHanaRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. - internal AzureWorkloadSAPHanaRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo) + /// Properties of Recovery Point. + internal AzureWorkloadSAPHanaRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { ObjectType = objectType ?? "AzureWorkloadSAPHanaRecoveryPoint"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs index dd240c10b423..44eb6aba9d4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs @@ -63,6 +63,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -76,6 +81,7 @@ internal static AzureWorkloadSQLPointInTimeRecoveryPoint DeserializeAzureWorkloa Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -154,13 +160,23 @@ internal static AzureWorkloadSQLPointInTimeRecoveryPoint DeserializeAzureWorkloa recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadSQLPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), extendedInfo.Value, Optional.ToList(timeRanges)); + return new AzureWorkloadSQLPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs index 0ddd6d623661..77c333184948 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs @@ -27,13 +27,14 @@ public AzureWorkloadSQLPointInTimeRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. /// /// Extended Info that provides data directory details. Will be populated in two cases: /// When a specific recovery point is accessed using GetRecoveryPoint /// Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter /// /// List of log ranges. - internal AzureWorkloadSQLPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, extendedInfo) + internal AzureWorkloadSQLPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, extendedInfo) { TimeRanges = timeRanges; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRecoveryPoint"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs index 5344f58f3909..dc6bb76e409f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs @@ -53,6 +53,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -72,6 +77,7 @@ internal static AzureWorkloadSQLRecoveryPoint DeserializeAzureWorkloadSQLRecover Optional type = default; Optional> recoveryPointTierDetails = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = "AzureWorkloadSQLRecoveryPoint"; foreach (var property in element.EnumerateObject()) { @@ -135,13 +141,23 @@ internal static AzureWorkloadSQLRecoveryPoint DeserializeAzureWorkloadSQLRecover recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new AzureWorkloadSQLRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), extendedInfo.Value); + return new AzureWorkloadSQLRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs index bdfeabad6068..c6fe93bf5fa1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs @@ -29,12 +29,13 @@ public AzureWorkloadSQLRecoveryPoint() /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. /// /// Extended Info that provides data directory details. Will be populated in two cases: /// When a specific recovery point is accessed using GetRecoveryPoint /// Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter /// - internal AzureWorkloadSQLRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo) + internal AzureWorkloadSQLRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { ExtendedInfo = extendedInfo; ObjectType = objectType ?? "AzureWorkloadSQLRecoveryPoint"; 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 9bf11829862e..0d932c00b2e1 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,6 +114,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -140,6 +145,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -312,8 +318,18 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = 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, 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(softDeleteRetentionPeriod), 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 8c593ce4cb5c..a1a82c05fbef 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 @@ -37,11 +37,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. /// 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, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; 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 84e1c8335a82..186b9e762cea 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,6 +130,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -158,6 +163,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -350,8 +356,18 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = 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, 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(softDeleteRetentionPeriod), 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 e131dcacd96c..c64bccc43054 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,13 +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. /// 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, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string policyState, ProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal GenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string policyState, ProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; PolicyState = policyState; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.Serialization.cs index d4458cac4c27..22b1101ddf54 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("recoveryPointAdditionalInfo"); writer.WriteStringValue(RecoveryPointAdditionalInfo); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -47,6 +52,7 @@ internal static GenericRecoveryPoint DeserializeGenericRecoveryPoint(JsonElement Optional recoveryPointType = default; Optional recoveryPointTime = default; Optional recoveryPointAdditionalInfo = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -75,13 +81,23 @@ internal static GenericRecoveryPoint DeserializeGenericRecoveryPoint(JsonElement recoveryPointAdditionalInfo = property.Value.GetString(); continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new GenericRecoveryPoint(objectType, friendlyName.Value, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), recoveryPointAdditionalInfo.Value); + return new GenericRecoveryPoint(objectType, friendlyName.Value, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), recoveryPointAdditionalInfo.Value, recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs index a921a9b7bd57..f90e0db53853 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs @@ -24,12 +24,14 @@ public GenericRecoveryPoint() /// Type of the backup copy. /// Time at which this backup copy was created. /// Additional information associated with this backup copy. - internal GenericRecoveryPoint(string objectType, string friendlyName, string recoveryPointType, DateTimeOffset? recoveryPointOn, string recoveryPointAdditionalInfo) : base(objectType) + /// Properties of Recovery Point. + internal GenericRecoveryPoint(string objectType, string friendlyName, string recoveryPointType, DateTimeOffset? recoveryPointOn, string recoveryPointAdditionalInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType) { FriendlyName = friendlyName; RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; RecoveryPointAdditionalInfo = recoveryPointAdditionalInfo; + RecoveryPointProperties = recoveryPointProperties; ObjectType = objectType ?? "GenericRecoveryPoint"; } @@ -41,5 +43,7 @@ internal GenericRecoveryPoint(string objectType, string friendlyName, string rec public DateTimeOffset? RecoveryPointOn { get; set; } /// Additional information associated with this backup copy. public string RecoveryPointAdditionalInfo { get; set; } + /// Properties of Recovery Point. + public RecoveryPointProperties RecoveryPointProperties { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.Serialization.cs index dcb4e4f0e852..52fa1e4e1ab8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.Serialization.cs @@ -108,6 +108,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + if (Optional.IsDefined(RecoveryPointProperties)) + { + writer.WritePropertyName("recoveryPointProperties"); + writer.WriteObjectValue(RecoveryPointProperties); + } writer.WritePropertyName("objectType"); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -130,6 +135,7 @@ internal static IaasVmRecoveryPoint DeserializeIaasVmRecoveryPoint(JsonElement e Optional recoveryPointDiskConfiguration = default; Optional> zones = default; Optional> recoveryPointMoveReadinessInfo = default; + Optional recoveryPointProperties = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -273,13 +279,23 @@ internal static IaasVmRecoveryPoint DeserializeIaasVmRecoveryPoint(JsonElement e recoveryPointMoveReadinessInfo = dictionary; continue; } + if (property.NameEquals("recoveryPointProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value); + continue; + } if (property.NameEquals("objectType")) { objectType = property.Value.GetString(); continue; } } - return new IaasVmRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), recoveryPointAdditionalInfo.Value, sourceVmStorageType.Value, Optional.ToNullable(isSourceVmEncrypted), keyAndSecret.Value, Optional.ToNullable(isInstantIlrSessionActive), Optional.ToList(recoveryPointTierDetails), Optional.ToNullable(isManagedVirtualMachine), virtualMachineSize.Value, Optional.ToNullable(originalStorageAccountOption), osType.Value, recoveryPointDiskConfiguration.Value, Optional.ToList(zones), Optional.ToDictionary(recoveryPointMoveReadinessInfo)); + return new IaasVmRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), recoveryPointAdditionalInfo.Value, sourceVmStorageType.Value, Optional.ToNullable(isSourceVmEncrypted), keyAndSecret.Value, Optional.ToNullable(isInstantIlrSessionActive), Optional.ToList(recoveryPointTierDetails), Optional.ToNullable(isManagedVirtualMachine), virtualMachineSize.Value, Optional.ToNullable(originalStorageAccountOption), osType.Value, recoveryPointDiskConfiguration.Value, Optional.ToList(zones), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs index 549a80680811..b1f78bcdd547 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs @@ -40,7 +40,8 @@ public IaasVmRecoveryPoint() /// Disk configuration. /// Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms. /// Eligibility of RP to be moved to another tier. - internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, string recoveryPointAdditionalInfo, string sourceVmStorageType, bool? isSourceVmEncrypted, KeyAndSecretDetails keyAndSecret, bool? isInstantIlrSessionActive, IList recoveryPointTierDetails, bool? isManagedVirtualMachine, string virtualMachineSize, bool? originalStorageAccountOption, string osType, RecoveryPointDiskConfiguration recoveryPointDiskConfiguration, IList zones, IDictionary recoveryPointMoveReadinessInfo) : base(objectType) + /// Properties of Recovery Point. + internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, string recoveryPointAdditionalInfo, string sourceVmStorageType, bool? isSourceVmEncrypted, KeyAndSecretDetails keyAndSecret, bool? isInstantIlrSessionActive, IList recoveryPointTierDetails, bool? isManagedVirtualMachine, string virtualMachineSize, bool? originalStorageAccountOption, string osType, RecoveryPointDiskConfiguration recoveryPointDiskConfiguration, IList zones, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType) { RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; @@ -57,6 +58,7 @@ internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTi RecoveryPointDiskConfiguration = recoveryPointDiskConfiguration; Zones = zones; RecoveryPointMoveReadinessInfo = recoveryPointMoveReadinessInfo; + RecoveryPointProperties = recoveryPointProperties; ObjectType = objectType ?? "IaasVMRecoveryPoint"; } @@ -90,5 +92,7 @@ internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTi public IList Zones { get; } /// Eligibility of RP to be moved to another tier. public IDictionary RecoveryPointMoveReadinessInfo { get; } + /// Properties of Recovery Point. + public RecoveryPointProperties RecoveryPointProperties { get; set; } } } 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 0a510dfa3779..392f5e7039d3 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,6 +129,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -158,6 +163,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName")) @@ -350,8 +356,18 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = 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, 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(softDeleteRetentionPeriod), 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 94195b83ec28..7d7f8f65e2cb 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 @@ -37,6 +37,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. /// Friendly name of this backup item. /// Name of the computer associated with this backup item. /// Status of last backup operation. @@ -44,7 +45,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, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, string friendlyName, string computerName, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, MabFileFolderProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + internal MabFileFolderProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, 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, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ComputerName = computerName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs index 3198aeb75b28..c606293f2eca 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs @@ -92,6 +92,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs index 7f69f5f0b967..d27984e4cfed 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs @@ -42,7 +42,8 @@ protected ProtectedItem() /// ResourceGuardOperationRequests on which LAC check will be performed. /// Flag to identify whether datasource is protected in archive. /// Name of the policy used for protection. - internal ProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName) + /// Soft delete retention period in days. + internal ProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) { ProtectedItemType = protectedItemType; BackupManagementType = backupManagementType; @@ -61,6 +62,7 @@ internal ProtectedItem(string protectedItemType, BackupManagementType? backupMan ResourceGuardOperationRequests = resourceGuardOperationRequests; IsArchiveEnabled = isArchiveEnabled; PolicyName = policyName; + SoftDeleteRetentionPeriod = softDeleteRetentionPeriod; } /// backup item type. @@ -97,5 +99,7 @@ internal ProtectedItem(string protectedItemType, BackupManagementType? backupMan public bool? IsArchiveEnabled { get; set; } /// Name of the policy used for protection. public string PolicyName { get; set; } + /// Soft delete retention period in days. + public int? SoftDeleteRetentionPeriod { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemState.cs index ce754aeae478..0f4c4fa73180 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemState.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemState.cs @@ -28,6 +28,7 @@ public ProtectedItemState(string value) private const string ProtectionErrorValue = "ProtectionError"; private const string ProtectionStoppedValue = "ProtectionStopped"; private const string ProtectionPausedValue = "ProtectionPaused"; + private const string BackupsSuspendedValue = "BackupsSuspended"; /// Invalid. public static ProtectedItemState Invalid { get; } = new ProtectedItemState(InvalidValue); @@ -41,6 +42,8 @@ public ProtectedItemState(string value) public static ProtectedItemState ProtectionStopped { get; } = new ProtectedItemState(ProtectionStoppedValue); /// ProtectionPaused. public static ProtectedItemState ProtectionPaused { get; } = new ProtectedItemState(ProtectionPausedValue); + /// BackupsSuspended. + public static ProtectedItemState BackupsSuspended { get; } = new ProtectedItemState(BackupsSuspendedValue); /// Determines if two values are the same. public static bool operator ==(ProtectedItemState left, ProtectedItemState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs index 35746ab5060d..79a2dc0d6831 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs @@ -28,6 +28,7 @@ public ProtectionState(string value) private const string ProtectionErrorValue = "ProtectionError"; private const string ProtectionStoppedValue = "ProtectionStopped"; private const string ProtectionPausedValue = "ProtectionPaused"; + private const string BackupsSuspendedValue = "BackupsSuspended"; /// Invalid. public static ProtectionState Invalid { get; } = new ProtectionState(InvalidValue); @@ -41,6 +42,8 @@ public ProtectionState(string value) public static ProtectionState ProtectionStopped { get; } = new ProtectionState(ProtectionStoppedValue); /// ProtectionPaused. public static ProtectionState ProtectionPaused { get; } = new ProtectionState(ProtectionPausedValue); + /// BackupsSuspended. + public static ProtectionState BackupsSuspended { get; } = new ProtectionState(BackupsSuspendedValue); /// Determines if two values are the same. public static bool operator ==(ProtectionState left, ProtectionState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs new file mode 100644 index 000000000000..ceae3b0ef75c --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class RecoveryPointProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ExpiryTime)) + { + writer.WritePropertyName("expiryTime"); + writer.WriteStringValue(ExpiryTime); + } + if (Optional.IsDefined(RuleName)) + { + writer.WritePropertyName("ruleName"); + writer.WriteStringValue(RuleName); + } + writer.WriteEndObject(); + } + + internal static RecoveryPointProperties DeserializeRecoveryPointProperties(JsonElement element) + { + Optional expiryTime = default; + Optional ruleName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("expiryTime")) + { + expiryTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("ruleName")) + { + ruleName = property.Value.GetString(); + continue; + } + } + return new RecoveryPointProperties(expiryTime.Value, ruleName.Value); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs new file mode 100644 index 000000000000..1bfe66213f1a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Properties of Recovery Point. + public partial class RecoveryPointProperties + { + /// Initializes a new instance of RecoveryPointProperties. + public RecoveryPointProperties() + { + } + + /// Initializes a new instance of RecoveryPointProperties. + /// Expiry time of Recovery Point in UTC. + /// Rule name tagged on Recovery Point that governs life cycle. + internal RecoveryPointProperties(string expiryTime, string ruleName) + { + ExpiryTime = expiryTime; + RuleName = ruleName; + } + + /// Expiry time of Recovery Point in UTC. + public string ExpiryTime { get; set; } + /// Rule name tagged on Recovery Point that governs life cycle. + public string RuleName { get; set; } + } +} 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 ba96dfcc608e..31b59585cab0 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,6 +94,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyName"); writer.WriteStringValue(PolicyName); } + if (Optional.IsDefined(SoftDeleteRetentionPeriod)) + { + writer.WritePropertyName("softDeleteRetentionPeriod"); + writer.WriteNumberValue(SoftDeleteRetentionPeriod.Value); + } writer.WriteEndObject(); } @@ -116,6 +121,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement Optional> resourceGuardOperationRequests = default; Optional isArchiveEnabled = default; Optional policyName = default; + Optional softDeleteRetentionPeriod = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectedItemType")) @@ -258,8 +264,18 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement policyName = property.Value.GetString(); continue; } + if (property.NameEquals("softDeleteRetentionPeriod")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + softDeleteRetentionPeriod = 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); + 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)); } } } 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 7a59b6eb655d..3c47d605c303 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 @@ -31,7 +31,8 @@ internal partial class UnknownProtectedItem : ProtectedItem /// ResourceGuardOperationRequests on which LAC check will be performed. /// Flag to identify whether datasource is protected in archive. /// Name of the policy used for protection. - internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName) + /// Soft delete retention period in days. + internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { ProtectedItemType = protectedItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs index a099a4f7ffc0..d19ed1986448 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs @@ -33,7 +33,7 @@ public BMSPrepareDataMoveOperationResultRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 4167a4905496..6e937d51e9f7 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 2bdb787290da..8c744da6ba26 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs index ec409e6464fd..f9feb35bcac6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs @@ -31,7 +31,7 @@ public BackupOperationResultsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs index 1fd261d3af04..ed542c8da312 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs @@ -33,7 +33,7 @@ public BackupOperationStatusesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 b316e34e9bdf..d6ec4fa0a660 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 4f79643696b1..db1dac6c5594 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 3e94cc2f7720..5c929cc72703 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 4a8a310f5f75..9b211899f384 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 ad840c78e11d..bb267beba529 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 5ecef8735b04..9311fa19675e 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 5f3f83807b59..63ecef330acd 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 078d0fb79f55..f14aa0bb3c30 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 29f1c2b02e3e..aca61539165e 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 ac57aca4b268..5f2d505542b5 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 2272a26d7578..36f58e56455d 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 ea72ac951365..29023a019a8c 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 new file mode 100644 index 000000000000..583ba2514cb8 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + internal partial class DeletedProtectionContainersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of DeletedProtectionContainersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public DeletedProtectionContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-01-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupDeletedProtectionContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, vaultName, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ProtectionContainerResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ProtectionContainerResourceList.DeserializeProtectionContainerResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, vaultName, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ProtectionContainerResourceList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ProtectionContainerResourceList.DeserializeProtectionContainerResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// The URL to the next page of results. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ProtectionContainerResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ProtectionContainerResourceList.DeserializeProtectionContainerResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the soft deleted containers registered to Recovery Services Vault. + /// The URL to the next page of results. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// OData filter options. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ProtectionContainerResourceList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ProtectionContainerResourceList.DeserializeProtectionContainerResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs index 94524775e773..937d42329172 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs @@ -33,7 +33,7 @@ public ExportJobsOperationResultsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 6d0c3be05971..bb4f9cbc9ef8 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 16d984943b4a..78361d5d1bfe 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 aba5daa71f35..8a997b24b10f 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 a75b4d8e09ef..695929ca50a8 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs index f2103616640d..a904ed131650 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs @@ -31,7 +31,7 @@ public JobOperationResultsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 2ca8bb6bdca1..4119d40e8763 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs index edec955ab195..60e964aae25f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs @@ -33,7 +33,7 @@ public OperationRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 bf15b2c8975b..8eaf6c80d2f4 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs index 80f5ebf1c195..db17784853bd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 52906ca07a19..5ced496b8313 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs index ca11c0a9f542..0cfe43582542 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs @@ -33,7 +33,7 @@ public ProtectedItemOperationStatusesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 540a00fde147..c5440ebe2b41 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs index 987e7ac468d7..ed406b5db11c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs @@ -31,7 +31,7 @@ public ProtectionContainerRefreshOperationResultsRestOperations(HttpPipeline pip { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 97bf7bac04b2..d499e1ada252 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 87ac5642a6f0..4cffe914c056 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 aeb51d69c004..5152d2f0cd45 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs index 34826905d373..642c7b02877d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs @@ -33,7 +33,7 @@ public ProtectionPolicyOperationStatusesRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 77a4e965f14e..91cf1c4781f4 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 114fdf7afaed..f70cfd5f0cff 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 29b99ab9c1cb..6d75bcb45dc0 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 @@ -33,7 +33,7 @@ public RecoveryServicesBackupRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs index 1d9a50fdcd00..b4dc0616a0cc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs @@ -33,7 +33,7 @@ public ResourceGuardProxiesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 8ed2fab51071..b21b44de761a 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 5ebe824217f3..6cd8caf39e19 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 1e9c00183abb..0bb84743880a 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 ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs index 0b1de7f36cde..195db36efb05 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs @@ -32,7 +32,7 @@ public ValidateOperationRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs index 6b3f982cc591..dc35b9540381 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs @@ -33,7 +33,7 @@ public ValidateOperationResultsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs index 9560c2bd651f..57db99d2985f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs @@ -33,7 +33,7 @@ public ValidateOperationStatusesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-01-preview"; + _apiVersion = apiVersion ?? "2023-01-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 e9ab3eaa3f6d..10fe4922d27a 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 # default tag is a preview version -require: https://github.com/Azure/azure-rest-api-specs/blob/34ba022add0034e30462b76e1548ce5a7e053e33/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