From 43ebb4d8fa2108e1dd60d7389031312da1291469 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 22 Sep 2023 23:15:36 +0000 Subject: [PATCH] CodeGen from PR 25713 in Azure/azure-rest-api-specs Merge 9ab65c969351f616e27787332eb98cbcc75a3331 into 1d7059db3c66d17d75e325d15c597ebbecfc60f4 --- ...r.RecoveryServicesBackup.netstandard2.0.cs | 5 ++++- .../ArmRecoveryServicesBackupModelFactory.cs | 6 +++-- .../BackupStatusResult.Serialization.cs | 22 ++++++++++++++++++- .../Generated/Models/BackupStatusResult.cs | 10 ++++++++- .../IaasVmRecoveryPoint.Serialization.cs | 18 ++++++++++++++- .../Generated/Models/IaasVmRecoveryPoint.cs | 13 ++++++++++- .../src/autorest.md | 2 +- 7 files changed, 68 insertions(+), 8 deletions(-) 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 73773e6577ff..82f17aab3fe1 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 @@ -579,7 +579,7 @@ public static partial class ArmRecoveryServicesBackupModelFactory public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedCreateOrUpdateContent BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfig properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedData BackupResourceEncryptionConfigExtendedData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedProperties properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData BackupResourceVaultConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceVaultConfigProperties properties = null, Azure.ETag? eTag = default(Azure.ETag?)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusResult BackupStatusResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? protectionStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus?), Azure.Core.ResourceIdentifier vaultId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? fabricName = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName?), string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusResult BackupStatusResult(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? protectionStatus = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus?), Azure.Core.ResourceIdentifier vaultId = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? fabricName = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName?), string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null, int? protectedItemsCount = default(int?), Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? acquireStorageAccountLock = default(Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock?)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItem DpmProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string friendlyName = null, string backupEngineName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState?), Azure.ResourceManager.RecoveryServicesBackup.Models.DpmProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItem FileshareProtectedItem(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? backupManagementType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType?), Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? workloadType = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType?), string containerName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, Azure.Core.ResourceIdentifier policyId = null, System.DateTimeOffset? lastRecoverOn = default(System.DateTimeOffset?), string backupSetName = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? createMode = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode?), System.DateTimeOffset? deferredDeletedOn = default(System.DateTimeOffset?), bool? isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = default(bool?), bool? isRehydrate = default(bool?), System.Collections.Generic.IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = default(bool?), string policyName = null, int? softDeleteRetentionPeriodInDays = default(int?), string friendlyName = null, string protectionStatus = null, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? protectionState = default(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState?), string lastBackupStatus = null, System.DateTimeOffset? lastBackupOn = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary kpisHealths = null, Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo extendedInfo = null) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedInfo(System.DateTimeOffset? oldestRecoverOn = default(System.DateTimeOffset?), int? recoveryPointCount = default(int?), string policyState = null, string resourceState = null, System.DateTimeOffset? resourceStateSyncOn = default(System.DateTimeOffset?)) { throw null; } @@ -1097,12 +1097,14 @@ public BackupStatusContent() { } public partial class BackupStatusResult { internal BackupStatusResult() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? AcquireStorageAccountLock { get { throw null; } } public string ContainerName { get { throw null; } } public string ErrorCode { get { throw null; } } public string ErrorMessage { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? FabricName { get { throw null; } } public string PolicyName { get { throw null; } } public string ProtectedItemName { get { throw null; } } + public int? ProtectedItemsCount { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? ProtectionStatus { get { throw null; } } public string RegistrationStatus { get { throw null; } } public Azure.Core.ResourceIdentifier VaultId { get { throw null; } } @@ -1793,6 +1795,7 @@ public IaasVmProtectionPolicy() { } public partial class IaasVmRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint { public IaasVmRecoveryPoint() { } + public Azure.ResourceManager.Resources.Models.ExtendedLocation ExtendedLocation { get { throw null; } set { } } public bool? IsInstantIlrSessionActive { get { throw null; } set { } } public bool? IsManagedVirtualMachine { get { throw null; } set { } } public bool? IsPrivateAccessEnabledOnAnyDisk { get { throw null; } set { } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs index b085eb4927d8..6e98e36bff86 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs @@ -61,10 +61,12 @@ public static PreValidateEnableBackupResult PreValidateEnableBackupResult(Backup /// ErrorMessage in case of intent failed. /// Specifies the policy name which is used for protection. /// Container registration status. + /// Number of protected items. + /// Specifies whether the storage account lock has been acquired or not. /// A new instance for mocking. - public static BackupStatusResult BackupStatusResult(BackupProtectionStatus? protectionStatus = null, ResourceIdentifier vaultId = null, BackupFabricName? fabricName = null, string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null) + public static BackupStatusResult BackupStatusResult(BackupProtectionStatus? protectionStatus = null, ResourceIdentifier vaultId = null, BackupFabricName? fabricName = null, string containerName = null, string protectedItemName = null, string errorCode = null, string errorMessage = null, string policyName = null, string registrationStatus = null, int? protectedItemsCount = null, AcquireStorageAccountLock? acquireStorageAccountLock = null) { - return new BackupStatusResult(protectionStatus, vaultId, fabricName, containerName, protectedItemName, errorCode, errorMessage, policyName, registrationStatus); + return new BackupStatusResult(protectionStatus, vaultId, fabricName, containerName, protectedItemName, errorCode, errorMessage, policyName, registrationStatus, protectedItemsCount, acquireStorageAccountLock); } /// Initializes a new instance of VmResourceFeatureSupportResult. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs index 9b234d4421b1..001cec2b63e4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs @@ -27,6 +27,8 @@ internal static BackupStatusResult DeserializeBackupStatusResult(JsonElement ele Optional errorMessage = default; Optional policyName = default; Optional registrationStatus = default; + Optional protectedItemsCount = default; + Optional acquireStorageAccountLock = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectionStatus"u8)) @@ -86,8 +88,26 @@ internal static BackupStatusResult DeserializeBackupStatusResult(JsonElement ele registrationStatus = property.Value.GetString(); continue; } + if (property.NameEquals("protectedItemsCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protectedItemsCount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("acquireStorageAccountLock"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + acquireStorageAccountLock = new AcquireStorageAccountLock(property.Value.GetString()); + continue; + } } - return new BackupStatusResult(Optional.ToNullable(protectionStatus), vaultId.Value, Optional.ToNullable(fabricName), containerName.Value, protectedItemName.Value, errorCode.Value, errorMessage.Value, policyName.Value, registrationStatus.Value); + return new BackupStatusResult(Optional.ToNullable(protectionStatus), vaultId.Value, Optional.ToNullable(fabricName), containerName.Value, protectedItemName.Value, errorCode.Value, errorMessage.Value, policyName.Value, registrationStatus.Value, Optional.ToNullable(protectedItemsCount), Optional.ToNullable(acquireStorageAccountLock)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs index b73111b6c62f..7034d0a864ac 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs @@ -27,7 +27,9 @@ internal BackupStatusResult() /// ErrorMessage in case of intent failed. /// Specifies the policy name which is used for protection. /// Container registration status. - internal BackupStatusResult(BackupProtectionStatus? protectionStatus, ResourceIdentifier vaultId, BackupFabricName? fabricName, string containerName, string protectedItemName, string errorCode, string errorMessage, string policyName, string registrationStatus) + /// Number of protected items. + /// Specifies whether the storage account lock has been acquired or not. + internal BackupStatusResult(BackupProtectionStatus? protectionStatus, ResourceIdentifier vaultId, BackupFabricName? fabricName, string containerName, string protectedItemName, string errorCode, string errorMessage, string policyName, string registrationStatus, int? protectedItemsCount, AcquireStorageAccountLock? acquireStorageAccountLock) { ProtectionStatus = protectionStatus; VaultId = vaultId; @@ -38,6 +40,8 @@ internal BackupStatusResult(BackupProtectionStatus? protectionStatus, ResourceId ErrorMessage = errorMessage; PolicyName = policyName; RegistrationStatus = registrationStatus; + ProtectedItemsCount = protectedItemsCount; + AcquireStorageAccountLock = acquireStorageAccountLock; } /// Specifies whether the container is registered or not. @@ -58,5 +62,9 @@ internal BackupStatusResult(BackupProtectionStatus? protectionStatus, ResourceId public string PolicyName { get; } /// Container registration status. public string RegistrationStatus { get; } + /// Number of protected items. + public int? ProtectedItemsCount { get; } + /// Specifies whether the storage account lock has been acquired or not. + public AcquireStorageAccountLock? AcquireStorageAccountLock { get; } } } 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 2104af894e04..47f2cc8559fe 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 @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { @@ -123,6 +124,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isPrivateAccessEnabledOnAnyDisk"u8); writer.WriteBooleanValue(IsPrivateAccessEnabledOnAnyDisk.Value); } + if (Optional.IsDefined(ExtendedLocation)) + { + writer.WritePropertyName("extendedLocation"u8); + JsonSerializer.Serialize(writer, ExtendedLocation); + } writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); @@ -152,6 +158,7 @@ internal static IaasVmRecoveryPoint DeserializeIaasVmRecoveryPoint(JsonElement e Optional securityType = default; Optional recoveryPointProperties = default; Optional isPrivateAccessEnabledOnAnyDisk = default; + Optional extendedLocation = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -308,13 +315,22 @@ internal static IaasVmRecoveryPoint DeserializeIaasVmRecoveryPoint(JsonElement e isPrivateAccessEnabledOnAnyDisk = property.Value.GetBoolean(); continue; } + if (property.NameEquals("extendedLocation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + extendedLocation = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } if (property.NameEquals("objectType"u8)) { 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), securityType.Value, recoveryPointProperties.Value, Optional.ToNullable(isPrivateAccessEnabledOnAnyDisk)); + 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), securityType.Value, recoveryPointProperties.Value, Optional.ToNullable(isPrivateAccessEnabledOnAnyDisk), extendedLocation); } } } 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 1fcd9c5f5d01..70c3511f3004 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 @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { @@ -43,7 +44,11 @@ public IaasVmRecoveryPoint() /// Security Type of the Disk. /// Properties of Recovery Point. /// This flag denotes if any of the disks in the VM are using Private access network setting. - 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, string securityType, RecoveryPointProperties recoveryPointProperties, bool? isPrivateAccessEnabledOnAnyDisk) : base(objectType) + /// + /// Extended location of the VM recovery point, + /// should be null if VM is in public cloud + /// + 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, string securityType, RecoveryPointProperties recoveryPointProperties, bool? isPrivateAccessEnabledOnAnyDisk, ExtendedLocation extendedLocation) : base(objectType) { RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; @@ -63,6 +68,7 @@ internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTi SecurityType = securityType; RecoveryPointProperties = recoveryPointProperties; IsPrivateAccessEnabledOnAnyDisk = isPrivateAccessEnabledOnAnyDisk; + ExtendedLocation = extendedLocation; ObjectType = objectType ?? "IaasVMRecoveryPoint"; } @@ -102,5 +108,10 @@ internal IaasVmRecoveryPoint(string objectType, string recoveryPointType, DateTi public RecoveryPointProperties RecoveryPointProperties { get; set; } /// This flag denotes if any of the disks in the VM are using Private access network setting. public bool? IsPrivateAccessEnabledOnAnyDisk { get; set; } + /// + /// Extended location of the VM recovery point, + /// should be null if VM is in public cloud + /// + public ExtendedLocation ExtendedLocation { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index b10abdde01b4..7376b095ac67 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -9,7 +9,7 @@ csharp: true library-name: RecoveryServicesBackup namespace: Azure.ResourceManager.RecoveryServicesBackup # tag: package-2023-01 -require: https://github.com/Azure/azure-rest-api-specs/blob/80c21c17b4a7aa57f637ee594f7cfd653255a7e0/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 sample-gen: