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 73395e6f1bea..eec29f67d4c3 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 @@ -537,6 +537,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock left, Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock right) { throw null; } public override string ToString() { throw null; } } + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public AzureVmWorkloadSapHanaHSRProtectableItem() { } + } public partial class BackupCommonSettings { public BackupCommonSettings() { } @@ -877,6 +881,7 @@ internal BackupNameInfo() { } public partial class BackupPrivateEndpointConnectionProperties { public BackupPrivateEndpointConnectionProperties() { } + public System.Collections.Generic.IList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } set { } } @@ -2223,7 +2228,7 @@ public enum RecoveryPointTierType public partial class RecoveryServicesBackupPrivateLinkServiceConnectionState { public RecoveryServicesBackupPrivateLinkServiceConnectionState() { } - public string ActionRequired { get { throw null; } set { } } + public string ActionsRequired { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.PrivateEndpointConnectionStatus? Status { get { throw null; } set { } } } @@ -2709,6 +2714,25 @@ public VaultBackupJobErrorInfo() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VaultSubResourceType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VaultSubResourceType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureBackup { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureBackupSecondary { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType AzureSiteRecovery { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultSubResourceType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct VaultXcoolState : System.IEquatable { private readonly object _dummy; @@ -2890,10 +2914,6 @@ public partial class VmWorkloadSapHanaDBInstanceProtectedItem : Azure.ResourceMa { public VmWorkloadSapHanaDBInstanceProtectedItem() { } } - public partial class VmWorkloadSapHanaHsr : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem - { - public VmWorkloadSapHanaHsr() { } - } public partial class VmWorkloadSapHanaSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem { public VmWorkloadSapHanaSystemProtectableItem() { } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs index 65bd5abca409..9756c7abb5a4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class VmWorkloadSapHanaHsr : IUtf8JsonSerializable + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement element) + internal static AzureVmWorkloadSapHanaHSRProtectableItem DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -191,7 +191,7 @@ internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement continue; } } - return new VmWorkloadSapHanaHsr(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new AzureVmWorkloadSapHanaHSRProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs index aa8f8d29beca..a2a59ff82091 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapHanaHSRProtectableItem.cs @@ -7,16 +7,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// Azure VM workload-specific protectable item representing SAP HANA Dbinstance. - public partial class VmWorkloadSapHanaHsr : VmWorkloadProtectableItem + /// Azure VM workload-specific protectable item representing HANA HSR. + public partial class AzureVmWorkloadSapHanaHSRProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of VmWorkloadSapHanaHsr. - public VmWorkloadSapHanaHsr() + /// Initializes a new instance of AzureVmWorkloadSapHanaHSRProtectableItem. + public AzureVmWorkloadSapHanaHSRProtectableItem() { - ProtectableItemType = "SAPHanaHSR"; + ProtectableItemType = "HanaHSRContainer"; } - /// Initializes a new instance of VmWorkloadSapHanaHsr. + /// Initializes a new instance of AzureVmWorkloadSapHanaHSRProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -33,9 +33,9 @@ public VmWorkloadSapHanaHsr() /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Pre-backup validation for protectable objects. - internal VmWorkloadSapHanaHsr(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + internal AzureVmWorkloadSapHanaHSRProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { - ProtectableItemType = protectableItemType ?? "SAPHanaHSR"; + ProtectableItemType = protectableItemType ?? "HanaHSRContainer"; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs index d543475ca455..028bce9f59f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Resources.Models; @@ -26,6 +27,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("privateEndpoint"u8); JsonSerializer.Serialize(writer, PrivateEndpoint); } + if (Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"u8); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(PrivateLinkServiceConnectionState)) { writer.WritePropertyName("privateLinkServiceConnectionState"u8); @@ -42,6 +53,7 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva } Optional provisioningState = default; Optional privateEndpoint = default; + Optional> groupIds = default; Optional privateLinkServiceConnectionState = default; foreach (var property in element.EnumerateObject()) { @@ -63,6 +75,20 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva privateEndpoint = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } + if (property.NameEquals("groupIds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new VaultSubResourceType(item.GetString())); + } + groupIds = array; + continue; + } if (property.NameEquals("privateLinkServiceConnectionState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -73,7 +99,7 @@ internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPriva continue; } } - return new BackupPrivateEndpointConnectionProperties(Optional.ToNullable(provisioningState), privateEndpoint, privateLinkServiceConnectionState.Value); + return new BackupPrivateEndpointConnectionProperties(Optional.ToNullable(provisioningState), privateEndpoint, Optional.ToList(groupIds), privateLinkServiceConnectionState.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs index efff7ee40e2f..9f196c9d0b6a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; @@ -16,16 +17,19 @@ public partial class BackupPrivateEndpointConnectionProperties /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. public BackupPrivateEndpointConnectionProperties() { + GroupIds = new ChangeTrackingList(); } /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. /// Gets or sets provisioning state of the private endpoint connection. /// Gets or sets private endpoint associated with the private endpoint connection. + /// Group Ids for the Private Endpoint. /// Gets or sets private link service connection state. - internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, IList groupIds, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) { ProvisioningState = provisioningState; PrivateEndpoint = privateEndpoint; + GroupIds = groupIds; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; } @@ -45,6 +49,8 @@ public ResourceIdentifier PrivateEndpointId } } + /// Group Ids for the Private Endpoint. + public IList GroupIds { get; } /// Gets or sets private link service connection state. public RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs index 72aa27ac58e5..3be1289fd75f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.Serialization.cs @@ -25,10 +25,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } - if (Optional.IsDefined(ActionRequired)) + if (Optional.IsDefined(ActionsRequired)) { - writer.WritePropertyName("actionRequired"u8); - writer.WriteStringValue(ActionRequired); + writer.WritePropertyName("actionsRequired"u8); + writer.WriteStringValue(ActionsRequired); } writer.WriteEndObject(); } @@ -41,7 +41,7 @@ internal static RecoveryServicesBackupPrivateLinkServiceConnectionState Deserial } Optional status = default; Optional description = default; - Optional actionRequired = default; + Optional actionsRequired = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("status"u8)) @@ -58,13 +58,13 @@ internal static RecoveryServicesBackupPrivateLinkServiceConnectionState Deserial description = property.Value.GetString(); continue; } - if (property.NameEquals("actionRequired"u8)) + if (property.NameEquals("actionsRequired"u8)) { - actionRequired = property.Value.GetString(); + actionsRequired = property.Value.GetString(); continue; } } - return new RecoveryServicesBackupPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value, actionRequired.Value); + return new RecoveryServicesBackupPrivateLinkServiceConnectionState(Optional.ToNullable(status), description.Value, actionsRequired.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs index 9766d847f4b0..d093e3e54fe4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateLinkServiceConnectionState.cs @@ -18,12 +18,12 @@ public RecoveryServicesBackupPrivateLinkServiceConnectionState() /// Initializes a new instance of RecoveryServicesBackupPrivateLinkServiceConnectionState. /// Gets or sets the status. /// Gets or sets description. - /// Gets or sets actions required. - internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpointConnectionStatus? status, string description, string actionRequired) + /// Gets or sets actions required. + internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpointConnectionStatus? status, string description, string actionsRequired) { Status = status; Description = description; - ActionRequired = actionRequired; + ActionsRequired = actionsRequired; } /// Gets or sets the status. @@ -31,6 +31,6 @@ internal RecoveryServicesBackupPrivateLinkServiceConnectionState(PrivateEndpoint /// Gets or sets description. public string Description { get; set; } /// Gets or sets actions required. - public string ActionRequired { get; set; } + public string ActionsRequired { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs new file mode 100644 index 000000000000..561264f3ee9e --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultSubResourceType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or AzureSiteRecovery. + public readonly partial struct VaultSubResourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VaultSubResourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureBackupValue = "AzureBackup"; + private const string AzureBackupSecondaryValue = "AzureBackup_secondary"; + private const string AzureSiteRecoveryValue = "AzureSiteRecovery"; + + /// AzureBackup. + public static VaultSubResourceType AzureBackup { get; } = new VaultSubResourceType(AzureBackupValue); + /// AzureBackup_secondary. + public static VaultSubResourceType AzureBackupSecondary { get; } = new VaultSubResourceType(AzureBackupSecondaryValue); + /// AzureSiteRecovery. + public static VaultSubResourceType AzureSiteRecovery { get; } = new VaultSubResourceType(AzureSiteRecoveryValue); + /// Determines if two values are the same. + public static bool operator ==(VaultSubResourceType left, VaultSubResourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VaultSubResourceType left, VaultSubResourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VaultSubResourceType(string value) => new VaultSubResourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VaultSubResourceType other && Equals(other); + /// + public bool Equals(VaultSubResourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs index ad6eed79569a..811e7960db5c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs @@ -90,10 +90,10 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J { switch (discriminator.GetString()) { + case "HanaHSRContainer": return AzureVmWorkloadSapHanaHSRProtectableItem.DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(element); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs index e83c951de708..e22f84e26799 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Azure VM workload-specific protectable item. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// The available derived classes include , , , , , , and . /// public partial class VmWorkloadProtectableItem : WorkloadProtectableItem { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs index ff2cb05a9a69..1142b214bc4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs @@ -52,13 +52,13 @@ internal static WorkloadProtectableItem DeserializeWorkloadProtectableItem(JsonE { case "AzureFileShare": return FileShareProtectableItem.DeserializeFileShareProtectableItem(element); case "AzureVmWorkloadProtectableItem": return VmWorkloadProtectableItem.DeserializeVmWorkloadProtectableItem(element); + case "HanaHSRContainer": return AzureVmWorkloadSapHanaHSRProtectableItem.DeserializeAzureVmWorkloadSapHanaHSRProtectableItem(element); case "IaaSVMProtectableItem": return IaasVmProtectableItem.DeserializeIaasVmProtectableItem(element); case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectableItem.DeserializeIaasClassicComputeVmProtectableItem(element); case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectableItem.DeserializeIaasComputeVmProtectableItem(element); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs index 99c4b0032f15..2caf5431747d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup item. Workload-specific backup items are derived from this class. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public abstract partial class WorkloadProtectableItem { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs index 1a0344c385c6..22b9e8617250 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs @@ -31,7 +31,7 @@ public WorkloadProtectableItemResource(AzureLocation location) : base(location) /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// Optional ETag. internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, WorkloadProtectableItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) @@ -43,7 +43,7 @@ internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, Res /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public WorkloadProtectableItem Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index c95d26657d5a..8b2f55a0e352 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -10,7 +10,7 @@ csharp: true library-name: RecoveryServicesBackup namespace: Azure.ResourceManager.RecoveryServicesBackup # tag: package-2023-01 -require: https://github.com/Azure/azure-rest-api-specs/blob/add28efcd3a5fd422285d992fb1ec5ee5a7a40a6/specification/recoveryservicesbackup/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true