From 1f916000617145b75bd12ac9a19742c473aeeb3d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Aug 2023 03:02:28 +0000 Subject: [PATCH] CodeGen from PR 25291 in Azure/azure-rest-api-specs Merge 78d5105a853ed00d21333307af7d1cd16c145728 into 2d2d12d271c13bd1b56c1ed5e41c5f418ae46067 --- ....ResourceManager.Compute.netstandard2.0.cs | 94 +++++++++++++++++-- .../src/Generated/ArmComputeModelFactory.cs | 15 +-- .../src/Generated/DiskImageCollection.cs | 4 +- .../src/Generated/ManagedDiskData.cs | 6 +- .../src/Generated/Models/DiskCreateOption.cs | 3 + .../Models/DiskCreationData.Serialization.cs | 13 ++- .../src/Generated/Models/DiskCreationData.cs | 6 +- .../Models/DomainNameLabelScopeType.cs | 57 +++++++++++ .../Models/ManagedDiskData.Serialization.cs | 12 ++- .../Models/NetworkInterfaceAuxiliaryMode.cs | 54 +++++++++++ .../Models/NetworkInterfaceAuxiliarySku.cs | 60 ++++++++++++ ...orkInterfaceConfiguration.Serialization.cs | 32 ++++++- ...ualMachineNetworkInterfaceConfiguration.cs | 11 ++- ...tualMachinePublicIPAddressConfiguration.cs | 9 +- ...sDnsSettingsConfiguration.Serialization.cs | 19 +++- ...PublicIPAddressDnsSettingsConfiguration.cs | 13 ++- ...leSetNetworkConfiguration.Serialization.cs | 32 ++++++- ...tualMachineScaleSetNetworkConfiguration.cs | 10 +- ...ineScaleSetPublicIPAddressConfiguration.cs | 9 +- ...sConfigurationDnsSettings.Serialization.cs | 19 +++- ...PublicIPAddressConfigurationDnsSettings.cs | 13 ++- ...pdateNetworkConfiguration.Serialization.cs | 10 ++ ...chineScaleSetUpdateNetworkConfiguration.cs | 4 + ...leSetUpdatePublicIPAddressConfiguration.cs | 9 +- ...tualMachineScaleSetVmData.Serialization.cs | 13 ++- .../AvailabilitySetsRestOperations.cs | 2 +- ...CapacityReservationGroupsRestOperations.cs | 2 +- .../CapacityReservationsRestOperations.cs | 2 +- .../DedicatedHostGroupsRestOperations.cs | 2 +- .../DedicatedHostsRestOperations.cs | 2 +- .../DiskAccessesRestOperations.cs | 2 +- .../DiskEncryptionSetsRestOperations.cs | 2 +- .../DiskRestorePointRestOperations.cs | 2 +- .../RestOperations/DisksRestOperations.cs | 2 +- .../RestOperations/ImagesRestOperations.cs | 10 +- .../LogAnalyticsRestOperations.cs | 2 +- .../ProximityPlacementGroupsRestOperations.cs | 2 +- .../RestorePointCollectionsRestOperations.cs | 2 +- .../RestorePointsRestOperations.cs | 2 +- .../RestOperations/SnapshotsRestOperations.cs | 2 +- .../SshPublicKeysRestOperations.cs | 2 +- .../RestOperations/UsageRestOperations.cs | 2 +- ...ualMachineExtensionImagesRestOperations.cs | 2 +- .../VirtualMachineExtensionsRestOperations.cs | 2 +- ...tualMachineImagesEdgeZoneRestOperations.cs | 2 +- .../VirtualMachineImagesRestOperations.cs | 2 +- ...VirtualMachineRunCommandsRestOperations.cs | 2 +- ...MachineScaleSetExtensionsRestOperations.cs | 2 +- ...neScaleSetRollingUpgradesRestOperations.cs | 2 +- ...chineScaleSetVMExtensionsRestOperations.cs | 2 +- ...hineScaleSetVMRunCommandsRestOperations.cs | 2 +- ...VirtualMachineScaleSetVMsRestOperations.cs | 2 +- .../VirtualMachineScaleSetsRestOperations.cs | 2 +- .../VirtualMachineSizesRestOperations.cs | 2 +- .../VirtualMachinesRestOperations.cs | 2 +- .../Generated/VirtualMachineScaleSetVmData.cs | 7 +- .../src/autorest.md | 2 +- 57 files changed, 515 insertions(+), 89 deletions(-) create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DomainNameLabelScopeType.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 9986601a22b6..3f400431da01 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -1276,6 +1276,7 @@ public ManagedDiskData(Azure.Core.AzureLocation location) : base (default(Azure. public Azure.ResourceManager.Resources.Models.ExtendedLocation ExtendedLocation { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.HyperVGeneration? HyperVGeneration { get { throw null; } set { } } public bool? IsOptimizedForFrequentAttach { get { throw null; } set { } } + public System.DateTimeOffset? LastOwnershipUpdateOn { get { throw null; } } public Azure.Core.ResourceIdentifier ManagedBy { get { throw null; } } public System.Collections.Generic.IReadOnlyList ManagedByExtended { get { throw null; } } public int? MaxShares { get { throw null; } set { } } @@ -2181,6 +2182,7 @@ public VirtualMachineScaleSetVmData(Azure.Core.AzureLocation location) : base (d public Azure.ResourceManager.Compute.Models.SecurityProfile SecurityProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputeSku Sku { get { throw null; } } public Azure.ResourceManager.Compute.Models.VirtualMachineStorageProfile StorageProfile { get { throw null; } set { } } + public System.DateTimeOffset? TimeCreated { get { throw null; } } public string UserData { get { throw null; } set { } } public string VmId { get { throw null; } } public System.Collections.Generic.IReadOnlyList Zones { get { throw null; } } @@ -2443,7 +2445,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.DedicatedHostInstanceView DedicatedHostInstanceView(string assetId = null, System.Collections.Generic.IEnumerable availableCapacityAllocatableVms = null, System.Collections.Generic.IEnumerable statuses = null) { throw null; } public static Azure.ResourceManager.Compute.Models.DedicatedHostInstanceViewWithName DedicatedHostInstanceViewWithName(string assetId = null, System.Collections.Generic.IEnumerable availableCapacityAllocatableVms = null, System.Collections.Generic.IEnumerable statuses = null, string name = null) { throw null; } public static Azure.ResourceManager.Compute.DiskAccessData DiskAccessData(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.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, string provisioningState = null, System.DateTimeOffset? timeCreated = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Compute.Models.DiskCreationData DiskCreationData(Azure.ResourceManager.Compute.Models.DiskCreateOption createOption = default(Azure.ResourceManager.Compute.Models.DiskCreateOption), Azure.Core.ResourceIdentifier storageAccountId = null, Azure.ResourceManager.Compute.Models.ImageDiskReference imageReference = null, Azure.ResourceManager.Compute.Models.ImageDiskReference galleryImageReference = null, System.Uri sourceUri = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceUniqueId = null, long? uploadSizeBytes = default(long?), int? logicalSectorSize = default(int?), System.Uri securityDataUri = null, bool? isPerformancePlusEnabled = default(bool?)) { throw null; } + public static Azure.ResourceManager.Compute.Models.DiskCreationData DiskCreationData(Azure.ResourceManager.Compute.Models.DiskCreateOption createOption = default(Azure.ResourceManager.Compute.Models.DiskCreateOption), Azure.Core.ResourceIdentifier storageAccountId = null, Azure.ResourceManager.Compute.Models.ImageDiskReference imageReference = null, Azure.ResourceManager.Compute.Models.ImageDiskReference galleryImageReference = null, System.Uri sourceUri = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceUniqueId = null, long? uploadSizeBytes = default(long?), int? logicalSectorSize = default(int?), System.Uri securityDataUri = null, bool? isPerformancePlusEnabled = default(bool?), string elasticSanResourceId = null) { throw null; } public static Azure.ResourceManager.Compute.DiskEncryptionSetData DiskEncryptionSetData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Compute.Models.DiskEncryptionSetType? encryptionType = default(Azure.ResourceManager.Compute.Models.DiskEncryptionSetType?), Azure.ResourceManager.Compute.Models.KeyForDiskEncryptionSet activeKey = null, System.Collections.Generic.IEnumerable previousKeys = null, string provisioningState = null, bool? rotationToLatestKeyVersionEnabled = default(bool?), System.DateTimeOffset? lastKeyRotationTimestamp = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ComputeApiError autoKeyRotationError = null, string federatedClientId = null) { throw null; } public static Azure.ResourceManager.Compute.DiskImageData DiskImageData(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.Resources.Models.ExtendedLocation extendedLocation = null, Azure.Core.ResourceIdentifier sourceVirtualMachineId = null, Azure.ResourceManager.Compute.Models.ImageStorageProfile storageProfile = null, string provisioningState = null, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?)) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskInstanceView DiskInstanceView(string name = null, System.Collections.Generic.IEnumerable encryptionSettings = null, System.Collections.Generic.IEnumerable statuses = null) { throw null; } @@ -2471,7 +2473,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.LastPatchInstallationSummary LastPatchInstallationSummary(Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default(Azure.ResourceManager.Compute.Models.PatchOperationStatus?), string installationActivityId = null, bool? maintenanceWindowExceeded = default(bool?), int? notSelectedPatchCount = default(int?), int? excludedPatchCount = default(int?), int? pendingPatchCount = default(int?), int? installedPatchCount = default(int?), int? failedPatchCount = default(int?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ComputeApiError error = null) { throw null; } public static Azure.ResourceManager.Compute.Models.LogAnalytics LogAnalytics(string logAnalyticsOutput = null) { throw null; } public static Azure.ResourceManager.Compute.Models.MaintenanceRedeployStatus MaintenanceRedeployStatus(bool? isCustomerInitiatedMaintenanceAllowed = default(bool?), System.DateTimeOffset? preMaintenanceWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? preMaintenanceWindowEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? maintenanceWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? maintenanceWindowEndOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.MaintenanceOperationResultCodeType? lastOperationResultCode = default(Azure.ResourceManager.Compute.Models.MaintenanceOperationResultCodeType?), string lastOperationMessage = null) { throw null; } - public static Azure.ResourceManager.Compute.ManagedDiskData ManagedDiskData(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.Core.ResourceIdentifier managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.Compute.Models.DiskSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.DateTimeOffset? timeCreated = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = null, Azure.ResourceManager.Compute.Models.DiskCreationData creationData = null, int? diskSizeGB = default(int?), long? diskSizeBytes = default(long?), string uniqueId = null, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = null, string provisioningState = null, long? diskIopsReadWrite = default(long?), long? diskMBpsReadWrite = default(long?), long? diskIopsReadOnly = default(long?), long? diskMBpsReadOnly = default(long?), Azure.ResourceManager.Compute.Models.DiskState? diskState = default(Azure.ResourceManager.Compute.Models.DiskState?), Azure.ResourceManager.Compute.Models.DiskEncryption encryption = null, int? maxShares = default(int?), System.Collections.Generic.IEnumerable shareInfo = null, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default(Azure.ResourceManager.Compute.Models.NetworkAccessPolicy?), Azure.Core.ResourceIdentifier diskAccessId = null, System.DateTimeOffset? burstingEnabledOn = default(System.DateTimeOffset?), string tier = null, bool? burstingEnabled = default(bool?), string propertyUpdatesInProgressTargetTier = null, bool? supportsHibernation = default(bool?), Azure.ResourceManager.Compute.Models.DiskSecurityProfile securityProfile = null, float? completionPercent = default(float?), Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess?), Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default(Azure.ResourceManager.Compute.Models.DataAccessAuthMode?), bool? isOptimizedForFrequentAttach = default(bool?)) { throw null; } + public static Azure.ResourceManager.Compute.ManagedDiskData ManagedDiskData(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.Core.ResourceIdentifier managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.Compute.Models.DiskSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.DateTimeOffset? timeCreated = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), Azure.ResourceManager.Compute.Models.DiskPurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.SupportedCapabilities supportedCapabilities = null, Azure.ResourceManager.Compute.Models.DiskCreationData creationData = null, int? diskSizeGB = default(int?), long? diskSizeBytes = default(long?), string uniqueId = null, Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup encryptionSettingsGroup = null, string provisioningState = null, long? diskIopsReadWrite = default(long?), long? diskMBpsReadWrite = default(long?), long? diskIopsReadOnly = default(long?), long? diskMBpsReadOnly = default(long?), Azure.ResourceManager.Compute.Models.DiskState? diskState = default(Azure.ResourceManager.Compute.Models.DiskState?), Azure.ResourceManager.Compute.Models.DiskEncryption encryption = null, int? maxShares = default(int?), System.Collections.Generic.IEnumerable shareInfo = null, Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? networkAccessPolicy = default(Azure.ResourceManager.Compute.Models.NetworkAccessPolicy?), Azure.Core.ResourceIdentifier diskAccessId = null, System.DateTimeOffset? burstingEnabledOn = default(System.DateTimeOffset?), string tier = null, bool? burstingEnabled = default(bool?), string propertyUpdatesInProgressTargetTier = null, bool? supportsHibernation = default(bool?), Azure.ResourceManager.Compute.Models.DiskSecurityProfile securityProfile = null, float? completionPercent = default(float?), Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess?), Azure.ResourceManager.Compute.Models.DataAccessAuthMode? dataAccessAuthMode = default(Azure.ResourceManager.Compute.Models.DataAccessAuthMode?), bool? isOptimizedForFrequentAttach = default(bool?), System.DateTimeOffset? lastOwnershipUpdateOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Compute.Models.OrchestrationServiceSummary OrchestrationServiceSummary(Azure.ResourceManager.Compute.Models.OrchestrationServiceName? serviceName = default(Azure.ResourceManager.Compute.Models.OrchestrationServiceName?), Azure.ResourceManager.Compute.Models.OrchestrationServiceState? serviceState = default(Azure.ResourceManager.Compute.Models.OrchestrationServiceState?)) { throw null; } public static Azure.ResourceManager.Compute.Models.OSVersionPropertiesBase OSVersionPropertiesBase(string version = null, string label = null, bool? isDefault = default(bool?), bool? isActive = default(bool?)) { throw null; } public static Azure.ResourceManager.Compute.Models.PatchInstallationDetail PatchInstallationDetail(string patchId = null, string name = null, string version = null, string kbId = null, System.Collections.Generic.IEnumerable classifications = null, Azure.ResourceManager.Compute.Models.PatchInstallationState? installationState = default(Azure.ResourceManager.Compute.Models.PatchInstallationState?)) { throw null; } @@ -2540,7 +2542,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.VirtualMachineScaleSetRollingUpgradeData VirtualMachineScaleSetRollingUpgradeData(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.Compute.Models.RollingUpgradePolicy policy = null, Azure.ResourceManager.Compute.Models.RollingUpgradeRunningStatus runningStatus = null, Azure.ResourceManager.Compute.Models.RollingUpgradeProgressInfo progress = null, Azure.ResourceManager.Compute.Models.ComputeApiError error = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetSku VirtualMachineScaleSetSku(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.Compute.Models.ComputeSku sku = null, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetSkuCapacity capacity = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetSkuCapacity VirtualMachineScaleSetSkuCapacity(long? minimum = default(long?), long? maximum = default(long?), long? defaultCapacity = default(long?), Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetSkuScaleType? scaleType = default(Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetSkuScaleType?)) { throw null; } - public static Azure.ResourceManager.Compute.VirtualMachineScaleSetVmData VirtualMachineScaleSetVmData(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), string instanceId = null, Azure.ResourceManager.Compute.Models.ComputeSku sku = null, Azure.ResourceManager.Compute.Models.ComputePlan plan = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, bool? latestModelApplied = default(bool?), string vmId = null, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmInstanceView instanceView = null, Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile hardwareProfile = null, Azure.ResourceManager.Compute.Models.VirtualMachineStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.AdditionalCapabilities additionalCapabilities = null, Azure.ResourceManager.Compute.Models.VirtualMachineOSProfile osProfile = null, Azure.ResourceManager.Compute.Models.SecurityProfile securityProfile = null, Azure.ResourceManager.Compute.Models.VirtualMachineNetworkProfile networkProfile = null, System.Collections.Generic.IEnumerable networkInterfaceConfigurations = null, Azure.ResourceManager.Compute.Models.BootDiagnostics bootDiagnostics = null, Azure.Core.ResourceIdentifier availabilitySetId = null, string provisioningState = null, string licenseType = null, string modelDefinitionApplied = null, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProtectionPolicy protectionPolicy = null, string userData = null) { throw null; } + public static Azure.ResourceManager.Compute.VirtualMachineScaleSetVmData VirtualMachineScaleSetVmData(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), string instanceId = null, Azure.ResourceManager.Compute.Models.ComputeSku sku = null, Azure.ResourceManager.Compute.Models.ComputePlan plan = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, bool? latestModelApplied = default(bool?), string vmId = null, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmInstanceView instanceView = null, Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile hardwareProfile = null, Azure.ResourceManager.Compute.Models.VirtualMachineStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.AdditionalCapabilities additionalCapabilities = null, Azure.ResourceManager.Compute.Models.VirtualMachineOSProfile osProfile = null, Azure.ResourceManager.Compute.Models.SecurityProfile securityProfile = null, Azure.ResourceManager.Compute.Models.VirtualMachineNetworkProfile networkProfile = null, System.Collections.Generic.IEnumerable networkInterfaceConfigurations = null, Azure.ResourceManager.Compute.Models.BootDiagnostics bootDiagnostics = null, Azure.Core.ResourceIdentifier availabilitySetId = null, string provisioningState = null, string licenseType = null, string modelDefinitionApplied = null, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProtectionPolicy protectionPolicy = null, string userData = null, System.DateTimeOffset? timeCreated = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Compute.VirtualMachineScaleSetVmExtensionData VirtualMachineScaleSetVmExtensionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string forceUpdateTag = null, string publisher = null, string extensionType = null, string typeHandlerVersion = null, bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), System.BinaryData settings = null, System.BinaryData protectedSettings = null, string provisioningState = null, Azure.ResourceManager.Compute.Models.VirtualMachineExtensionInstanceView instanceView = null, bool? suppressFailures = default(bool?), Azure.ResourceManager.Compute.Models.KeyVaultSecretReference keyVaultProtectedSettings = null, System.Collections.Generic.IEnumerable provisionAfterExtensions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmExtensionPatch VirtualMachineScaleSetVmExtensionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string forceUpdateTag = null, string publisher = null, string extensionType = null, string typeHandlerVersion = null, bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), System.BinaryData settings = null, System.BinaryData protectedSettings = null, bool? suppressFailures = default(bool?), Azure.ResourceManager.Compute.Models.KeyVaultSecretReference keyVaultProtectedSettings = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmExtensionsSummary VirtualMachineScaleSetVmExtensionsSummary(string name = null, System.Collections.Generic.IEnumerable statusesSummary = null) { throw null; } @@ -3354,6 +3356,7 @@ public DiskAccessPatch() { } public DiskCreateOption(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskCreateOption Attach { get { throw null; } } public static Azure.ResourceManager.Compute.Models.DiskCreateOption Copy { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.DiskCreateOption CopyFromSanSnapshot { get { throw null; } } public static Azure.ResourceManager.Compute.Models.DiskCreateOption CopyStart { get { throw null; } } public static Azure.ResourceManager.Compute.Models.DiskCreateOption Empty { get { throw null; } } public static Azure.ResourceManager.Compute.Models.DiskCreateOption FromImage { get { throw null; } } @@ -3395,6 +3398,7 @@ public partial class DiskCreationData { public DiskCreationData(Azure.ResourceManager.Compute.Models.DiskCreateOption createOption) { } public Azure.ResourceManager.Compute.Models.DiskCreateOption CreateOption { get { throw null; } set { } } + public string ElasticSanResourceId { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageDiskReference GalleryImageReference { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageDiskReference ImageReference { get { throw null; } set { } } public bool? IsPerformancePlusEnabled { get { throw null; } set { } } @@ -3645,6 +3649,26 @@ public DiskSku() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DomainNameLabelScopeType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DomainNameLabelScopeType(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType NoReuse { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType ResourceGroupReuse { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType SubscriptionReuse { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType TenantReuse { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType 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.Compute.Models.DomainNameLabelScopeType left, Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType left, Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeZoneStorageAccountType : System.IEquatable { private readonly object _dummy; @@ -4511,6 +4535,46 @@ public ManagedDiskPatch() { } public static bool operator !=(Azure.ResourceManager.Compute.Models.NetworkApiVersion left, Azure.ResourceManager.Compute.Models.NetworkApiVersion right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkInterfaceAuxiliaryMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkInterfaceAuxiliaryMode(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode AcceleratedConnections { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode Floating { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode 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.Compute.Models.NetworkInterfaceAuxiliaryMode left, Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode left, Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkInterfaceAuxiliarySku : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkInterfaceAuxiliarySku(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku A1 { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku A2 { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku A4 { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku A8 { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku 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.Compute.Models.NetworkInterfaceAuxiliarySku left, Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku left, Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku right) { throw null; } + public override string ToString() { throw null; } + } public enum OperatingSystemStateType { Generalized = 0, @@ -5847,6 +5911,8 @@ public VirtualMachineManagedDisk() { } public partial class VirtualMachineNetworkInterfaceConfiguration { public VirtualMachineNetworkInterfaceConfiguration(string name) { } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku? AuxiliarySku { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } set { } } @@ -5978,7 +6044,7 @@ public partial class VirtualMachinePublicIPAddressConfiguration { public VirtualMachinePublicIPAddressConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } - public string DnsDomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.VirtualMachinePublicIPAddressDnsSettingsConfiguration DnsSettings { get { throw null; } set { } } public int? IdleTimeoutInMinutes { get { throw null; } set { } } public System.Collections.Generic.IList IPTags { get { throw null; } } public string Name { get { throw null; } set { } } @@ -5987,6 +6053,12 @@ public VirtualMachinePublicIPAddressConfiguration(string name) { } public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputePublicIPAddressSku Sku { get { throw null; } set { } } } + public partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration + { + public VirtualMachinePublicIPAddressDnsSettingsConfiguration(string domainNameLabel) { } + public string DomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType? DomainNameLabelScope { get { throw null; } set { } } + } public partial class VirtualMachineReimageContent { public VirtualMachineReimageContent() { } @@ -6136,6 +6208,8 @@ public VirtualMachineScaleSetManagedDisk() { } public partial class VirtualMachineScaleSetNetworkConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData { public VirtualMachineScaleSetNetworkConfiguration(string name) { } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku? AuxiliarySku { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } @@ -6212,7 +6286,7 @@ public partial class VirtualMachineScaleSetPublicIPAddressConfiguration { public VirtualMachineScaleSetPublicIPAddressConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } - public string DnsDomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get { throw null; } set { } } public int? IdleTimeoutInMinutes { get { throw null; } set { } } public System.Collections.Generic.IList IPTags { get { throw null; } } public string Name { get { throw null; } set { } } @@ -6220,6 +6294,12 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration(string name) { } public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputePublicIPAddressSku Sku { get { throw null; } set { } } } + public partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + { + public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(string domainNameLabel) { } + public string DomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.DomainNameLabelScopeType? DomainNameLabelScope { get { throw null; } set { } } + } public partial class VirtualMachineScaleSetReimageContent : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmReimageContent { public VirtualMachineScaleSetReimageContent() { } @@ -6290,6 +6370,8 @@ public VirtualMachineScaleSetUpdateIPConfiguration() { } public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData { public VirtualMachineScaleSetUpdateNetworkConfiguration() { } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.NetworkInterfaceAuxiliarySku? AuxiliarySku { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } @@ -6333,7 +6415,7 @@ public partial class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration() { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } - public string DnsDomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get { throw null; } set { } } public int? IdleTimeoutInMinutes { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index d8eb0651dac5..bf32465a7320 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -463,15 +463,16 @@ public static VirtualMachineScaleSetVmExtensionPatch VirtualMachineScaleSetVmExt /// Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. /// Specifies the protection policy of the virtual machine. /// UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. /// A new instance for mocking. - public static VirtualMachineScaleSetVmData VirtualMachineScaleSetVmData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string instanceId = null, ComputeSku sku = null, ComputePlan plan = null, IEnumerable resources = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, bool? latestModelApplied = null, string vmId = null, VirtualMachineScaleSetVmInstanceView instanceView = null, VirtualMachineHardwareProfile hardwareProfile = null, VirtualMachineStorageProfile storageProfile = null, AdditionalCapabilities additionalCapabilities = null, VirtualMachineOSProfile osProfile = null, SecurityProfile securityProfile = null, VirtualMachineNetworkProfile networkProfile = null, IEnumerable networkInterfaceConfigurations = null, BootDiagnostics bootDiagnostics = null, ResourceIdentifier availabilitySetId = null, string provisioningState = null, string licenseType = null, string modelDefinitionApplied = null, VirtualMachineScaleSetVmProtectionPolicy protectionPolicy = null, string userData = null) + public static VirtualMachineScaleSetVmData VirtualMachineScaleSetVmData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string instanceId = null, ComputeSku sku = null, ComputePlan plan = null, IEnumerable resources = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, bool? latestModelApplied = null, string vmId = null, VirtualMachineScaleSetVmInstanceView instanceView = null, VirtualMachineHardwareProfile hardwareProfile = null, VirtualMachineStorageProfile storageProfile = null, AdditionalCapabilities additionalCapabilities = null, VirtualMachineOSProfile osProfile = null, SecurityProfile securityProfile = null, VirtualMachineNetworkProfile networkProfile = null, IEnumerable networkInterfaceConfigurations = null, BootDiagnostics bootDiagnostics = null, ResourceIdentifier availabilitySetId = null, string provisioningState = null, string licenseType = null, string modelDefinitionApplied = null, VirtualMachineScaleSetVmProtectionPolicy protectionPolicy = null, string userData = null, DateTimeOffset? timeCreated = null) { tags ??= new Dictionary(); resources ??= new List(); zones ??= new List(); networkInterfaceConfigurations ??= new List(); - return new VirtualMachineScaleSetVmData(id, name, resourceType, systemData, tags, location, instanceId, sku, plan, resources?.ToList(), zones?.ToList(), identity, latestModelApplied, vmId, instanceView, hardwareProfile, storageProfile, additionalCapabilities, osProfile, securityProfile, networkProfile, networkInterfaceConfigurations != null ? new VirtualMachineScaleSetVmNetworkProfileConfiguration(networkInterfaceConfigurations?.ToList()) : null, bootDiagnostics != null ? new DiagnosticsProfile(bootDiagnostics) : null, availabilitySetId != null ? ResourceManagerModelFactory.WritableSubResource(availabilitySetId) : null, provisioningState, licenseType, modelDefinitionApplied, protectionPolicy, userData); + return new VirtualMachineScaleSetVmData(id, name, resourceType, systemData, tags, location, instanceId, sku, plan, resources?.ToList(), zones?.ToList(), identity, latestModelApplied, vmId, instanceView, hardwareProfile, storageProfile, additionalCapabilities, osProfile, securityProfile, networkProfile, networkInterfaceConfigurations != null ? new VirtualMachineScaleSetVmNetworkProfileConfiguration(networkInterfaceConfigurations?.ToList()) : null, bootDiagnostics != null ? new DiagnosticsProfile(bootDiagnostics) : null, availabilitySetId != null ? ResourceManagerModelFactory.WritableSubResource(availabilitySetId) : null, provisioningState, licenseType, modelDefinitionApplied, protectionPolicy, userData, timeCreated); } /// Initializes a new instance of VirtualMachineScaleSetVmInstanceView. @@ -1424,15 +1425,16 @@ public static VirtualMachineRunCommandInstanceView VirtualMachineRunCommandInsta /// Policy for controlling export on the disk. /// Additional authentication requirements when exporting or uploading to a disk or snapshot. /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. + /// The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. /// A new instance for mocking. - public static ManagedDiskData ManagedDiskData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier managedBy = null, IEnumerable managedByExtended = null, DiskSku sku = null, IEnumerable zones = null, ExtendedLocation extendedLocation = null, DateTimeOffset? timeCreated = null, SupportedOperatingSystemType? osType = null, HyperVGeneration? hyperVGeneration = null, DiskPurchasePlan purchasePlan = null, SupportedCapabilities supportedCapabilities = null, DiskCreationData creationData = null, int? diskSizeGB = null, long? diskSizeBytes = null, string uniqueId = null, EncryptionSettingsGroup encryptionSettingsGroup = null, string provisioningState = null, long? diskIopsReadWrite = null, long? diskMBpsReadWrite = null, long? diskIopsReadOnly = null, long? diskMBpsReadOnly = null, DiskState? diskState = null, DiskEncryption encryption = null, int? maxShares = null, IEnumerable shareInfo = null, NetworkAccessPolicy? networkAccessPolicy = null, ResourceIdentifier diskAccessId = null, DateTimeOffset? burstingEnabledOn = null, string tier = null, bool? burstingEnabled = null, string propertyUpdatesInProgressTargetTier = null, bool? supportsHibernation = null, DiskSecurityProfile securityProfile = null, float? completionPercent = null, DiskPublicNetworkAccess? publicNetworkAccess = null, DataAccessAuthMode? dataAccessAuthMode = null, bool? isOptimizedForFrequentAttach = null) + public static ManagedDiskData ManagedDiskData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier managedBy = null, IEnumerable managedByExtended = null, DiskSku sku = null, IEnumerable zones = null, ExtendedLocation extendedLocation = null, DateTimeOffset? timeCreated = null, SupportedOperatingSystemType? osType = null, HyperVGeneration? hyperVGeneration = null, DiskPurchasePlan purchasePlan = null, SupportedCapabilities supportedCapabilities = null, DiskCreationData creationData = null, int? diskSizeGB = null, long? diskSizeBytes = null, string uniqueId = null, EncryptionSettingsGroup encryptionSettingsGroup = null, string provisioningState = null, long? diskIopsReadWrite = null, long? diskMBpsReadWrite = null, long? diskIopsReadOnly = null, long? diskMBpsReadOnly = null, DiskState? diskState = null, DiskEncryption encryption = null, int? maxShares = null, IEnumerable shareInfo = null, NetworkAccessPolicy? networkAccessPolicy = null, ResourceIdentifier diskAccessId = null, DateTimeOffset? burstingEnabledOn = null, string tier = null, bool? burstingEnabled = null, string propertyUpdatesInProgressTargetTier = null, bool? supportsHibernation = null, DiskSecurityProfile securityProfile = null, float? completionPercent = null, DiskPublicNetworkAccess? publicNetworkAccess = null, DataAccessAuthMode? dataAccessAuthMode = null, bool? isOptimizedForFrequentAttach = null, DateTimeOffset? lastOwnershipUpdateOn = null) { tags ??= new Dictionary(); managedByExtended ??= new List(); zones ??= new List(); shareInfo ??= new List(); - return new ManagedDiskData(id, name, resourceType, systemData, tags, location, managedBy, managedByExtended?.ToList(), sku, zones?.ToList(), extendedLocation, timeCreated, osType, hyperVGeneration, purchasePlan, supportedCapabilities, creationData, diskSizeGB, diskSizeBytes, uniqueId, encryptionSettingsGroup, provisioningState, diskIopsReadWrite, diskMBpsReadWrite, diskIopsReadOnly, diskMBpsReadOnly, diskState, encryption, maxShares, shareInfo?.ToList(), networkAccessPolicy, diskAccessId, burstingEnabledOn, tier, burstingEnabled, propertyUpdatesInProgressTargetTier != null ? new PropertyUpdatesInProgress(propertyUpdatesInProgressTargetTier) : null, supportsHibernation, securityProfile, completionPercent, publicNetworkAccess, dataAccessAuthMode, isOptimizedForFrequentAttach); + return new ManagedDiskData(id, name, resourceType, systemData, tags, location, managedBy, managedByExtended?.ToList(), sku, zones?.ToList(), extendedLocation, timeCreated, osType, hyperVGeneration, purchasePlan, supportedCapabilities, creationData, diskSizeGB, diskSizeBytes, uniqueId, encryptionSettingsGroup, provisioningState, diskIopsReadWrite, diskMBpsReadWrite, diskIopsReadOnly, diskMBpsReadOnly, diskState, encryption, maxShares, shareInfo?.ToList(), networkAccessPolicy, diskAccessId, burstingEnabledOn, tier, burstingEnabled, propertyUpdatesInProgressTargetTier != null ? new PropertyUpdatesInProgress(propertyUpdatesInProgressTargetTier) : null, supportsHibernation, securityProfile, completionPercent, publicNetworkAccess, dataAccessAuthMode, isOptimizedForFrequentAttach, lastOwnershipUpdateOn); } /// Initializes a new instance of DiskSku. @@ -1456,10 +1458,11 @@ public static DiskSku DiskSku(DiskStorageAccountType? name = null, string tier = /// Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. /// If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. /// Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. + /// Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. /// A new instance for mocking. - public static DiskCreationData DiskCreationData(DiskCreateOption createOption = default, ResourceIdentifier storageAccountId = null, ImageDiskReference imageReference = null, ImageDiskReference galleryImageReference = null, Uri sourceUri = null, ResourceIdentifier sourceResourceId = null, string sourceUniqueId = null, long? uploadSizeBytes = null, int? logicalSectorSize = null, Uri securityDataUri = null, bool? isPerformancePlusEnabled = null) + public static DiskCreationData DiskCreationData(DiskCreateOption createOption = default, ResourceIdentifier storageAccountId = null, ImageDiskReference imageReference = null, ImageDiskReference galleryImageReference = null, Uri sourceUri = null, ResourceIdentifier sourceResourceId = null, string sourceUniqueId = null, long? uploadSizeBytes = null, int? logicalSectorSize = null, Uri securityDataUri = null, bool? isPerformancePlusEnabled = null, string elasticSanResourceId = null) { - return new DiskCreationData(createOption, storageAccountId, imageReference, galleryImageReference, sourceUri, sourceResourceId, sourceUniqueId, uploadSizeBytes, logicalSectorSize, securityDataUri, isPerformancePlusEnabled); + return new DiskCreationData(createOption, storageAccountId, imageReference, galleryImageReference, sourceUri, sourceResourceId, sourceUniqueId, uploadSizeBytes, logicalSectorSize, securityDataUri, isPerformancePlusEnabled, elasticSanResourceId); } /// Initializes a new instance of ShareInfoElement. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskImageCollection.cs index a6c43e4ffbfb..ff5fe0a27795 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskImageCollection.cs @@ -212,7 +212,7 @@ public virtual Response Get(string imageName, string expand = } /// - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// /// /// Request Path @@ -234,7 +234,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken ca } /// - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// /// /// Request Path diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs index c5dd11fec00b..71d01666e368 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs @@ -72,7 +72,8 @@ public ManagedDiskData(AzureLocation location) : base(location) /// Policy for controlling export on the disk. /// Additional authentication requirements when exporting or uploading to a disk or snapshot. /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. - internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier managedBy, IReadOnlyList managedByExtended, DiskSku sku, IList zones, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, long? diskIopsReadWrite, long? diskMBpsReadWrite, long? diskIopsReadOnly, long? diskMBpsReadOnly, DiskState? diskState, DiskEncryption encryption, int? maxShares, IReadOnlyList shareInfo, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, DateTimeOffset? burstingEnabledOn, string tier, bool? burstingEnabled, PropertyUpdatesInProgress propertyUpdatesInProgress, bool? supportsHibernation, DiskSecurityProfile securityProfile, float? completionPercent, DiskPublicNetworkAccess? publicNetworkAccess, DataAccessAuthMode? dataAccessAuthMode, bool? isOptimizedForFrequentAttach) : base(id, name, resourceType, systemData, tags, location) + /// The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. + internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier managedBy, IReadOnlyList managedByExtended, DiskSku sku, IList zones, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, long? diskIopsReadWrite, long? diskMBpsReadWrite, long? diskIopsReadOnly, long? diskMBpsReadOnly, DiskState? diskState, DiskEncryption encryption, int? maxShares, IReadOnlyList shareInfo, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, DateTimeOffset? burstingEnabledOn, string tier, bool? burstingEnabled, PropertyUpdatesInProgress propertyUpdatesInProgress, bool? supportsHibernation, DiskSecurityProfile securityProfile, float? completionPercent, DiskPublicNetworkAccess? publicNetworkAccess, DataAccessAuthMode? dataAccessAuthMode, bool? isOptimizedForFrequentAttach, DateTimeOffset? lastOwnershipUpdateOn) : base(id, name, resourceType, systemData, tags, location) { ManagedBy = managedBy; ManagedByExtended = managedByExtended; @@ -110,6 +111,7 @@ internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resour PublicNetworkAccess = publicNetworkAccess; DataAccessAuthMode = dataAccessAuthMode; IsOptimizedForFrequentAttach = isOptimizedForFrequentAttach; + LastOwnershipUpdateOn = lastOwnershipUpdateOn; } /// A relative URI containing the ID of the VM that has the disk attached. @@ -190,5 +192,7 @@ public string PropertyUpdatesInProgressTargetTier public DataAccessAuthMode? DataAccessAuthMode { get; set; } /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. public bool? IsOptimizedForFrequentAttach { get; set; } + /// The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. + public DateTimeOffset? LastOwnershipUpdateOn { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreateOption.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreateOption.cs index fdadbda21dde..e6b4be112a1a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreateOption.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreateOption.cs @@ -32,6 +32,7 @@ public DiskCreateOption(string value) private const string CopyStartValue = "CopyStart"; private const string ImportSecureValue = "ImportSecure"; private const string UploadPreparedSecureValue = "UploadPreparedSecure"; + private const string CopyFromSanSnapshotValue = "CopyFromSanSnapshot"; /// Create an empty data disk of a size given by diskSizeGB. public static DiskCreateOption Empty { get; } = new DiskCreateOption(EmptyValue); @@ -53,6 +54,8 @@ public DiskCreateOption(string value) public static DiskCreateOption ImportSecure { get; } = new DiskCreateOption(ImportSecureValue); /// Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state. public static DiskCreateOption UploadPreparedSecure { get; } = new DiskCreateOption(UploadPreparedSecureValue); + /// Create a new disk by exporting from elastic san volume snapshot. + public static DiskCreateOption CopyFromSanSnapshot { get; } = new DiskCreateOption(CopyFromSanSnapshotValue); /// Determines if two values are the same. public static bool operator ==(DiskCreateOption left, DiskCreateOption right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs index 76507e2526bc..611f29a86e76 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs @@ -63,6 +63,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("performancePlus"u8); writer.WriteBooleanValue(IsPerformancePlusEnabled.Value); } + if (Optional.IsDefined(ElasticSanResourceId)) + { + writer.WritePropertyName("elasticSanResourceId"u8); + writer.WriteStringValue(ElasticSanResourceId); + } writer.WriteEndObject(); } @@ -83,6 +88,7 @@ internal static DiskCreationData DeserializeDiskCreationData(JsonElement element Optional logicalSectorSize = default; Optional securityDataUri = default; Optional performancePlus = default; + Optional elasticSanResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("createOption"u8)) @@ -176,8 +182,13 @@ internal static DiskCreationData DeserializeDiskCreationData(JsonElement element performancePlus = property.Value.GetBoolean(); continue; } + if (property.NameEquals("elasticSanResourceId"u8)) + { + elasticSanResourceId = property.Value.GetString(); + continue; + } } - return new DiskCreationData(createOption, storageAccountId.Value, imageReference.Value, galleryImageReference.Value, sourceUri.Value, sourceResourceId.Value, sourceUniqueId.Value, Optional.ToNullable(uploadSizeBytes), Optional.ToNullable(logicalSectorSize), securityDataUri.Value, Optional.ToNullable(performancePlus)); + return new DiskCreationData(createOption, storageAccountId.Value, imageReference.Value, galleryImageReference.Value, sourceUri.Value, sourceResourceId.Value, sourceUniqueId.Value, Optional.ToNullable(uploadSizeBytes), Optional.ToNullable(logicalSectorSize), securityDataUri.Value, Optional.ToNullable(performancePlus), elasticSanResourceId.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs index 550dbf1dac1f..74ed382acfc2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs @@ -32,7 +32,8 @@ public DiskCreationData(DiskCreateOption createOption) /// Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. /// If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. /// Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. - internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier storageAccountId, ImageDiskReference imageReference, ImageDiskReference galleryImageReference, Uri sourceUri, ResourceIdentifier sourceResourceId, string sourceUniqueId, long? uploadSizeBytes, int? logicalSectorSize, Uri securityDataUri, bool? isPerformancePlusEnabled) + /// Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. + internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier storageAccountId, ImageDiskReference imageReference, ImageDiskReference galleryImageReference, Uri sourceUri, ResourceIdentifier sourceResourceId, string sourceUniqueId, long? uploadSizeBytes, int? logicalSectorSize, Uri securityDataUri, bool? isPerformancePlusEnabled, string elasticSanResourceId) { CreateOption = createOption; StorageAccountId = storageAccountId; @@ -45,6 +46,7 @@ internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier stor LogicalSectorSize = logicalSectorSize; SecurityDataUri = securityDataUri; IsPerformancePlusEnabled = isPerformancePlusEnabled; + ElasticSanResourceId = elasticSanResourceId; } /// This enumerates the possible sources of a disk's creation. @@ -69,5 +71,7 @@ internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier stor public Uri SecurityDataUri { get; set; } /// Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. public bool? IsPerformancePlusEnabled { get; set; } + /// Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. + public string ElasticSanResourceId { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DomainNameLabelScopeType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DomainNameLabelScopeType.cs new file mode 100644 index 000000000000..092a9a917663 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DomainNameLabelScopeType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created. + public readonly partial struct DomainNameLabelScopeType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DomainNameLabelScopeType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TenantReuseValue = "TenantReuse"; + private const string SubscriptionReuseValue = "SubscriptionReuse"; + private const string ResourceGroupReuseValue = "ResourceGroupReuse"; + private const string NoReuseValue = "NoReuse"; + + /// TenantReuse. + public static DomainNameLabelScopeType TenantReuse { get; } = new DomainNameLabelScopeType(TenantReuseValue); + /// SubscriptionReuse. + public static DomainNameLabelScopeType SubscriptionReuse { get; } = new DomainNameLabelScopeType(SubscriptionReuseValue); + /// ResourceGroupReuse. + public static DomainNameLabelScopeType ResourceGroupReuse { get; } = new DomainNameLabelScopeType(ResourceGroupReuseValue); + /// NoReuse. + public static DomainNameLabelScopeType NoReuse { get; } = new DomainNameLabelScopeType(NoReuseValue); + /// Determines if two values are the same. + public static bool operator ==(DomainNameLabelScopeType left, DomainNameLabelScopeType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DomainNameLabelScopeType left, DomainNameLabelScopeType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DomainNameLabelScopeType(string value) => new DomainNameLabelScopeType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DomainNameLabelScopeType other && Equals(other); + /// + public bool Equals(DomainNameLabelScopeType 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs index e51727b76622..fb038a691e24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs @@ -222,6 +222,7 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) Optional publicNetworkAccess = default; Optional dataAccessAuthMode = default; Optional optimizedForFrequentAttach = default; + Optional lastOwnershipUpdateTime = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("managedBy"u8)) @@ -610,11 +611,20 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) optimizedForFrequentAttach = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("LastOwnershipUpdateTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastOwnershipUpdateTime = property0.Value.GetDateTimeOffset("O"); + continue; + } } continue; } } - return new ManagedDiskData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, Optional.ToList(managedByExtended), sku.Value, Optional.ToList(zones), extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(diskIOPSReadWrite), Optional.ToNullable(diskMBpsReadWrite), Optional.ToNullable(diskIOPSReadOnly), Optional.ToNullable(diskMBpsReadOnly), Optional.ToNullable(diskState), encryption.Value, Optional.ToNullable(maxShares), Optional.ToList(shareInfo), Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, Optional.ToNullable(burstingEnabledTime), tier.Value, Optional.ToNullable(burstingEnabled), propertyUpdatesInProgress.Value, Optional.ToNullable(supportsHibernation), securityProfile.Value, Optional.ToNullable(completionPercent), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(dataAccessAuthMode), Optional.ToNullable(optimizedForFrequentAttach)); + return new ManagedDiskData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, Optional.ToList(managedByExtended), sku.Value, Optional.ToList(zones), extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(diskIOPSReadWrite), Optional.ToNullable(diskMBpsReadWrite), Optional.ToNullable(diskIOPSReadOnly), Optional.ToNullable(diskMBpsReadOnly), Optional.ToNullable(diskState), encryption.Value, Optional.ToNullable(maxShares), Optional.ToList(shareInfo), Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, Optional.ToNullable(burstingEnabledTime), tier.Value, Optional.ToNullable(burstingEnabled), propertyUpdatesInProgress.Value, Optional.ToNullable(supportsHibernation), securityProfile.Value, Optional.ToNullable(completionPercent), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(dataAccessAuthMode), Optional.ToNullable(optimizedForFrequentAttach), Optional.ToNullable(lastOwnershipUpdateTime)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs new file mode 100644 index 000000000000..52181bbaa1fd --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliaryMode.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.Compute.Models +{ + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + public readonly partial struct NetworkInterfaceAuxiliaryMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkInterfaceAuxiliaryMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string AcceleratedConnectionsValue = "AcceleratedConnections"; + private const string FloatingValue = "Floating"; + + /// None. + public static NetworkInterfaceAuxiliaryMode None { get; } = new NetworkInterfaceAuxiliaryMode(NoneValue); + /// AcceleratedConnections. + public static NetworkInterfaceAuxiliaryMode AcceleratedConnections { get; } = new NetworkInterfaceAuxiliaryMode(AcceleratedConnectionsValue); + /// Floating. + public static NetworkInterfaceAuxiliaryMode Floating { get; } = new NetworkInterfaceAuxiliaryMode(FloatingValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkInterfaceAuxiliaryMode left, NetworkInterfaceAuxiliaryMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkInterfaceAuxiliaryMode left, NetworkInterfaceAuxiliaryMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkInterfaceAuxiliaryMode(string value) => new NetworkInterfaceAuxiliaryMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkInterfaceAuxiliaryMode other && Equals(other); + /// + public bool Equals(NetworkInterfaceAuxiliaryMode 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs new file mode 100644 index 000000000000..666833f9131f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + public readonly partial struct NetworkInterfaceAuxiliarySku : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkInterfaceAuxiliarySku(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string A1Value = "A1"; + private const string A2Value = "A2"; + private const string A4Value = "A4"; + private const string A8Value = "A8"; + + /// None. + public static NetworkInterfaceAuxiliarySku None { get; } = new NetworkInterfaceAuxiliarySku(NoneValue); + /// A1. + public static NetworkInterfaceAuxiliarySku A1 { get; } = new NetworkInterfaceAuxiliarySku(A1Value); + /// A2. + public static NetworkInterfaceAuxiliarySku A2 { get; } = new NetworkInterfaceAuxiliarySku(A2Value); + /// A4. + public static NetworkInterfaceAuxiliarySku A4 { get; } = new NetworkInterfaceAuxiliarySku(A4Value); + /// A8. + public static NetworkInterfaceAuxiliarySku A8 { get; } = new NetworkInterfaceAuxiliarySku(A8Value); + /// Determines if two values are the same. + public static bool operator ==(NetworkInterfaceAuxiliarySku left, NetworkInterfaceAuxiliarySku right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkInterfaceAuxiliarySku left, NetworkInterfaceAuxiliarySku right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkInterfaceAuxiliarySku(string value) => new NetworkInterfaceAuxiliarySku(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkInterfaceAuxiliarySku other && Equals(other); + /// + public bool Equals(NetworkInterfaceAuxiliarySku 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs index cb838de93a7f..48bcd5eb705d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs @@ -76,6 +76,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("dscpConfiguration"u8); JsonSerializer.Serialize(writer, DscpConfiguration); } + if (Optional.IsDefined(AuxiliaryMode)) + { + writer.WritePropertyName("auxiliaryMode"u8); + writer.WriteStringValue(AuxiliaryMode.Value.ToString()); + } + if (Optional.IsDefined(AuxiliarySku)) + { + writer.WritePropertyName("auxiliarySku"u8); + writer.WriteStringValue(AuxiliarySku.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -97,6 +107,8 @@ internal static VirtualMachineNetworkInterfaceConfiguration DeserializeVirtualMa Optional dnsSettings = default; Optional> ipConfigurations = default; Optional dscpConfiguration = default; + Optional auxiliaryMode = default; + Optional auxiliarySku = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -208,11 +220,29 @@ internal static VirtualMachineNetworkInterfaceConfiguration DeserializeVirtualMa dscpConfiguration = JsonSerializer.Deserialize(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("auxiliaryMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + auxiliaryMode = new NetworkInterfaceAuxiliaryMode(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("auxiliarySku"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + auxiliarySku = new NetworkInterfaceAuxiliarySku(property0.Value.GetString()); + continue; + } } continue; } } - return new VirtualMachineNetworkInterfaceConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(deleteOption), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), Optional.ToNullable(enableIPForwarding), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), dscpConfiguration); + return new VirtualMachineNetworkInterfaceConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(deleteOption), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), Optional.ToNullable(enableIPForwarding), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), dscpConfiguration, Optional.ToNullable(auxiliaryMode), Optional.ToNullable(auxiliarySku)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs index 236e1baee003..14e84209608a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs @@ -38,7 +38,9 @@ public VirtualMachineNetworkInterfaceConfiguration(string name) /// The dns settings to be applied on the network interfaces. /// Specifies the IP configurations of the network interface. /// Gets or sets the dscp configuration. - internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, ComputeDeleteOption? deleteOption, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, bool? enableIPForwarding, WritableSubResource networkSecurityGroup, VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings, IList ipConfigurations, WritableSubResource dscpConfiguration) + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, ComputeDeleteOption? deleteOption, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, bool? enableIPForwarding, WritableSubResource networkSecurityGroup, VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings, IList ipConfigurations, WritableSubResource dscpConfiguration, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) { Name = name; Primary = primary; @@ -51,6 +53,8 @@ internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, DnsSettings = dnsSettings; IPConfigurations = ipConfigurations; DscpConfiguration = dscpConfiguration; + AuxiliaryMode = auxiliaryMode; + AuxiliarySku = auxiliarySku; } /// The network interface configuration name. @@ -109,5 +113,10 @@ public ResourceIdentifier DscpConfigurationId DscpConfiguration.Id = value; } } + + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get; set; } + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliarySku? AuxiliarySku { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs index 970394d40852..a1c07d228c5b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs @@ -58,14 +58,7 @@ internal VirtualMachinePublicIPAddressConfiguration(string name, ComputePublicIP /// Specify what happens to the public IP address when the VM is deleted. public ComputeDeleteOption? DeleteOption { get; set; } /// The dns settings to be applied on the publicIP addresses . - internal VirtualMachinePublicIPAddressDnsSettingsConfiguration DnsSettings { get; set; } - /// The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. - public string DnsDomainNameLabel - { - get => DnsSettings is null ? default : DnsSettings.DomainNameLabel; - set => DnsSettings = new VirtualMachinePublicIPAddressDnsSettingsConfiguration(value); - } - + public VirtualMachinePublicIPAddressDnsSettingsConfiguration DnsSettings { get; set; } /// The list of IP tags associated with the public IP address. public IList IPTags { get; } /// The PublicIPPrefix from which to allocate publicIP addresses. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.Serialization.cs index 27b7d0c875fe..b3f0b95576cb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.Serialization.cs @@ -10,13 +10,18 @@ namespace Azure.ResourceManager.Compute.Models { - internal partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration : IUtf8JsonSerializable + public partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("domainNameLabel"u8); writer.WriteStringValue(DomainNameLabel); + if (Optional.IsDefined(DomainNameLabelScope)) + { + writer.WritePropertyName("domainNameLabelScope"u8); + writer.WriteStringValue(DomainNameLabelScope.Value.ToString()); + } writer.WriteEndObject(); } @@ -27,6 +32,7 @@ internal static VirtualMachinePublicIPAddressDnsSettingsConfiguration Deserializ return null; } string domainNameLabel = default; + Optional domainNameLabelScope = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("domainNameLabel"u8)) @@ -34,8 +40,17 @@ internal static VirtualMachinePublicIPAddressDnsSettingsConfiguration Deserializ domainNameLabel = property.Value.GetString(); continue; } + if (property.NameEquals("domainNameLabelScope"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + domainNameLabelScope = new DomainNameLabelScopeType(property.Value.GetString()); + continue; + } } - return new VirtualMachinePublicIPAddressDnsSettingsConfiguration(domainNameLabel); + return new VirtualMachinePublicIPAddressDnsSettingsConfiguration(domainNameLabel, Optional.ToNullable(domainNameLabelScope)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs index 51993afa1cc9..7e4a80370c07 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machines network configuration's DNS settings. - internal partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration + public partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration { /// Initializes a new instance of VirtualMachinePublicIPAddressDnsSettingsConfiguration. /// The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. @@ -23,7 +23,18 @@ public VirtualMachinePublicIPAddressDnsSettingsConfiguration(string domainNameLa DomainNameLabel = domainNameLabel; } + /// Initializes a new instance of VirtualMachinePublicIPAddressDnsSettingsConfiguration. + /// The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. + /// The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID. + internal VirtualMachinePublicIPAddressDnsSettingsConfiguration(string domainNameLabel, DomainNameLabelScopeType? domainNameLabelScope) + { + DomainNameLabel = domainNameLabel; + DomainNameLabelScope = domainNameLabelScope; + } + /// The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. public string DomainNameLabel { get; set; } + /// The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID. + public DomainNameLabelScopeType? DomainNameLabelScope { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs index 70fd1511f151..7cd28f434e03 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs @@ -76,6 +76,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("deleteOption"u8); writer.WriteStringValue(DeleteOption.Value.ToString()); } + if (Optional.IsDefined(AuxiliaryMode)) + { + writer.WritePropertyName("auxiliaryMode"u8); + writer.WriteStringValue(AuxiliaryMode.Value.ToString()); + } + if (Optional.IsDefined(AuxiliarySku)) + { + writer.WritePropertyName("auxiliarySku"u8); + writer.WriteStringValue(AuxiliarySku.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -97,6 +107,8 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac Optional> ipConfigurations = default; Optional enableIPForwarding = default; Optional deleteOption = default; + Optional auxiliaryMode = default; + Optional auxiliarySku = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -208,11 +220,29 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac deleteOption = new ComputeDeleteOption(property0.Value.GetString()); continue; } + if (property0.NameEquals("auxiliaryMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + auxiliaryMode = new NetworkInterfaceAuxiliaryMode(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("auxiliarySku"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + auxiliarySku = new NetworkInterfaceAuxiliarySku(property0.Value.GetString()); + continue; + } } continue; } } - return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); + return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption), Optional.ToNullable(auxiliaryMode), Optional.ToNullable(auxiliarySku)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index 4f34c57b6687..bef923017237 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -38,7 +38,9 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) /// Specifies the IP configurations of the network interface. /// Whether IP forwarding enabled on this NIC. /// Specify what happens to the network interface when the VM is deleted. - internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) : base(id) { Name = name; Primary = primary; @@ -50,6 +52,8 @@ internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, strin IPConfigurations = ipConfigurations; EnableIPForwarding = enableIPForwarding; DeleteOption = deleteOption; + AuxiliaryMode = auxiliaryMode; + AuxiliarySku = auxiliarySku; } /// The network configuration name. @@ -95,5 +99,9 @@ public IList DnsServers public bool? EnableIPForwarding { get; set; } /// Specify what happens to the network interface when the VM is deleted. public ComputeDeleteOption? DeleteOption { get; set; } + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get; set; } + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliarySku? AuxiliarySku { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs index 095c99c7f08c..4c1e956ee3be 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs @@ -54,14 +54,7 @@ internal VirtualMachineScaleSetPublicIPAddressConfiguration(string name, Compute /// The idle timeout of the public IP address. public int? IdleTimeoutInMinutes { get; set; } /// The dns settings to be applied on the publicIP addresses . - internal VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; } - /// The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. - public string DnsDomainNameLabel - { - get => DnsSettings is null ? default : DnsSettings.DomainNameLabel; - set => DnsSettings = new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(value); - } - + public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; } /// The list of IP tags associated with the public IP address. public IList IPTags { get; } /// The PublicIPPrefix from which to allocate publicIP addresses. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs index e7ce779f5372..07f4454750f1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.Serialization.cs @@ -10,13 +10,18 @@ namespace Azure.ResourceManager.Compute.Models { - internal partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings : IUtf8JsonSerializable + public partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("domainNameLabel"u8); writer.WriteStringValue(DomainNameLabel); + if (Optional.IsDefined(DomainNameLabelScope)) + { + writer.WritePropertyName("domainNameLabelScope"u8); + writer.WriteStringValue(DomainNameLabelScope.Value.ToString()); + } writer.WriteEndObject(); } @@ -27,6 +32,7 @@ internal static VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings De return null; } string domainNameLabel = default; + Optional domainNameLabelScope = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("domainNameLabel"u8)) @@ -34,8 +40,17 @@ internal static VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings De domainNameLabel = property.Value.GetString(); continue; } + if (property.NameEquals("domainNameLabelScope"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + domainNameLabelScope = new DomainNameLabelScopeType(property.Value.GetString()); + continue; + } } - return new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(domainNameLabel); + return new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(domainNameLabel, Optional.ToNullable(domainNameLabelScope)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs index d01e1cb47a31..8737f7bf93bb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machines scale sets network configuration's DNS settings. - internal partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + public partial class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { /// Initializes a new instance of VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings. /// The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. @@ -23,7 +23,18 @@ public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(string doma DomainNameLabel = domainNameLabel; } + /// Initializes a new instance of VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings. + /// The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. + /// The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created. + internal VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(string domainNameLabel, DomainNameLabelScopeType? domainNameLabelScope) + { + DomainNameLabel = domainNameLabel; + DomainNameLabelScope = domainNameLabelScope; + } + /// The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. public string DomainNameLabel { get; set; } + /// The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created. + public DomainNameLabelScopeType? DomainNameLabelScope { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs index 7352071e181e..bbfb4c581e2f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs @@ -77,6 +77,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("deleteOption"u8); writer.WriteStringValue(DeleteOption.Value.ToString()); } + if (Optional.IsDefined(AuxiliaryMode)) + { + writer.WritePropertyName("auxiliaryMode"u8); + writer.WriteStringValue(AuxiliaryMode.Value.ToString()); + } + if (Optional.IsDefined(AuxiliarySku)) + { + writer.WritePropertyName("auxiliarySku"u8); + writer.WriteStringValue(AuxiliarySku.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs index bfd5c6c386c7..d1cabf4321d9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs @@ -63,5 +63,9 @@ public IList DnsServers public bool? EnableIPForwarding { get; set; } /// Specify what happens to the network interface when the VM is deleted. public ComputeDeleteOption? DeleteOption { get; set; } + /// Specifies whether the Auxiliary mode is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get; set; } + /// Specifies whether the Auxiliary sku is enabled for the Network Interface resource. + public NetworkInterfaceAuxiliarySku? AuxiliarySku { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs index 3c3f690b9260..c4bcb6ce6561 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs @@ -23,14 +23,7 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration() /// The idle timeout of the public IP address. public int? IdleTimeoutInMinutes { get; set; } /// The dns settings to be applied on the publicIP addresses . - internal VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; } - /// The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. - public string DnsDomainNameLabel - { - get => DnsSettings is null ? default : DnsSettings.DomainNameLabel; - set => DnsSettings = new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(value); - } - + public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; } /// The PublicIPPrefix from which to allocate publicIP addresses. internal WritableSubResource PublicIPPrefix { get; set; } /// Gets or sets Id. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmData.Serialization.cs index 4b8d57436386..b5a158b95864 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -143,6 +144,7 @@ internal static VirtualMachineScaleSetVmData DeserializeVirtualMachineScaleSetVm Optional modelDefinitionApplied = default; Optional protectionPolicy = default; Optional userData = default; + Optional timeCreated = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("instanceId"u8)) @@ -390,11 +392,20 @@ internal static VirtualMachineScaleSetVmData DeserializeVirtualMachineScaleSetVm userData = property0.Value.GetString(); continue; } + if (property0.NameEquals("timeCreated"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timeCreated = property0.Value.GetDateTimeOffset("O"); + continue; + } } continue; } } - return new VirtualMachineScaleSetVmData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, instanceId.Value, sku.Value, plan.Value, Optional.ToList(resources), Optional.ToList(zones), identity, Optional.ToNullable(latestModelApplied), vmId.Value, instanceView.Value, hardwareProfile.Value, storageProfile.Value, additionalCapabilities.Value, osProfile.Value, securityProfile.Value, networkProfile.Value, networkProfileConfiguration.Value, diagnosticsProfile.Value, availabilitySet, provisioningState.Value, licenseType.Value, modelDefinitionApplied.Value, protectionPolicy.Value, userData.Value); + return new VirtualMachineScaleSetVmData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, instanceId.Value, sku.Value, plan.Value, Optional.ToList(resources), Optional.ToList(zones), identity, Optional.ToNullable(latestModelApplied), vmId.Value, instanceView.Value, hardwareProfile.Value, storageProfile.Value, additionalCapabilities.Value, osProfile.Value, securityProfile.Value, networkProfile.Value, networkProfileConfiguration.Value, diagnosticsProfile.Value, availabilitySet, provisioningState.Value, licenseType.Value, modelDefinitionApplied.Value, protectionPolicy.Value, userData.Value, Optional.ToNullable(timeCreated)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs index 850e50317842..07ecdd56fc26 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs @@ -33,7 +33,7 @@ public AvailabilitySetsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs index 44d22547f10b..0633b9c9ba0b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs @@ -33,7 +33,7 @@ public CapacityReservationGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs index 953d726e00a1..16f9610625a8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs @@ -33,7 +33,7 @@ public CapacityReservationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs index b54cf81959b3..dbd305890f65 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs @@ -33,7 +33,7 @@ public DedicatedHostGroupsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs index decd4c4268bd..40da6054bc81 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs @@ -33,7 +33,7 @@ public DedicatedHostsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs index af0bb626f2a2..28b6dc7b6359 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs @@ -33,7 +33,7 @@ public DiskAccessesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-02"; + _apiVersion = apiVersion ?? "2023-04-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs index d83814538b55..5aff445d19a8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs @@ -33,7 +33,7 @@ public DiskEncryptionSetsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-02"; + _apiVersion = apiVersion ?? "2023-04-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs index 54dd1ed9b488..aa8433fe2be5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs @@ -33,7 +33,7 @@ public DiskRestorePointRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-02"; + _apiVersion = apiVersion ?? "2023-04-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs index 7b0a78eae540..aec775c85151 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs @@ -33,7 +33,7 @@ public DisksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-02"; + _apiVersion = apiVersion ?? "2023-04-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs index cfd044825acd..12d302d983ea 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs @@ -33,7 +33,7 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -372,7 +372,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str return message; } - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. /// The cancellation token to use. @@ -399,7 +399,7 @@ public async Task> ListByResourceGroupAsync(string sub } } - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. /// The cancellation token to use. @@ -507,7 +507,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s return message; } - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// The URL to the next page of results. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. @@ -536,7 +536,7 @@ public async Task> ListByResourceGroupNextPageAsync(st } } - /// Gets the list of images under a resource group. + /// Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. /// The URL to the next page of results. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs index be68674ac6f5..27a708fd5d9a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs @@ -32,7 +32,7 @@ public LogAnalyticsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs index 64b590a56b39..8a1b8b54d451 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ProximityPlacementGroupsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs index 047b1d2c785a..dafd6a71bd8b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs @@ -33,7 +33,7 @@ public RestorePointCollectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs index 2e4da14a1fa4..a7b4ea8d8e27 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs @@ -33,7 +33,7 @@ public RestorePointsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs index c148cf8ba591..84df50ab2369 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-02"; + _apiVersion = apiVersion ?? "2023-04-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs index 7c9ccdb31453..a0975be980ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs @@ -33,7 +33,7 @@ public SshPublicKeysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs index 4e4df7b78421..77bad5fde746 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs @@ -33,7 +33,7 @@ public UsageRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs index a8e9520dc8e6..8267727f57c1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineExtensionImagesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs index b768e3752d88..28f9f6aa1367 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineExtensionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs index 9215cf181e29..8c77ae135113 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs @@ -34,7 +34,7 @@ public VirtualMachineImagesEdgeZoneRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs index 9174ade78e18..cebbd9fdb2d2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs @@ -34,7 +34,7 @@ public VirtualMachineImagesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs index 1681450cb2f9..da33c93eb620 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineRunCommandsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs index 6f183ffa9d13..becae04840b4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetExtensionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs index e3d25550b14d..0f23dd3d66ef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualMachineScaleSetRollingUpgradesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs index 2e2f1eac38f9..b8696b3f35c3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMExtensionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs index 66437662f48c..87abb77c7154 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMRunCommandsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs index 679af194fabc..21e038f7473d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs index 721dd04ebe29..9f337bc394fe 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs index 9c89d5e7b369..97cb9d6c55a3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineSizesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 5292b92846e7..f78bbbf2feac 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmData.cs index fb80e798feb3..4ff2d03ae1d2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmData.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -57,7 +58,8 @@ public VirtualMachineScaleSetVmData(AzureLocation location) : base(location) /// Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. /// Specifies the protection policy of the virtual machine. /// UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. - internal VirtualMachineScaleSetVmData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string instanceId, ComputeSku sku, ComputePlan plan, IReadOnlyList resources, IReadOnlyList zones, ManagedServiceIdentity identity, bool? latestModelApplied, string vmId, VirtualMachineScaleSetVmInstanceView instanceView, VirtualMachineHardwareProfile hardwareProfile, VirtualMachineStorageProfile storageProfile, AdditionalCapabilities additionalCapabilities, VirtualMachineOSProfile osProfile, SecurityProfile securityProfile, VirtualMachineNetworkProfile networkProfile, VirtualMachineScaleSetVmNetworkProfileConfiguration networkProfileConfiguration, DiagnosticsProfile diagnosticsProfile, WritableSubResource availabilitySet, string provisioningState, string licenseType, string modelDefinitionApplied, VirtualMachineScaleSetVmProtectionPolicy protectionPolicy, string userData) : base(id, name, resourceType, systemData, tags, location) + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. + internal VirtualMachineScaleSetVmData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string instanceId, ComputeSku sku, ComputePlan plan, IReadOnlyList resources, IReadOnlyList zones, ManagedServiceIdentity identity, bool? latestModelApplied, string vmId, VirtualMachineScaleSetVmInstanceView instanceView, VirtualMachineHardwareProfile hardwareProfile, VirtualMachineStorageProfile storageProfile, AdditionalCapabilities additionalCapabilities, VirtualMachineOSProfile osProfile, SecurityProfile securityProfile, VirtualMachineNetworkProfile networkProfile, VirtualMachineScaleSetVmNetworkProfileConfiguration networkProfileConfiguration, DiagnosticsProfile diagnosticsProfile, WritableSubResource availabilitySet, string provisioningState, string licenseType, string modelDefinitionApplied, VirtualMachineScaleSetVmProtectionPolicy protectionPolicy, string userData, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) { InstanceId = instanceId; Sku = sku; @@ -82,6 +84,7 @@ internal VirtualMachineScaleSetVmData(ResourceIdentifier id, string name, Resour ModelDefinitionApplied = modelDefinitionApplied; ProtectionPolicy = protectionPolicy; UserData = userData; + TimeCreated = timeCreated; } /// The virtual machine instance ID. @@ -165,5 +168,7 @@ public ResourceIdentifier AvailabilitySetId public VirtualMachineScaleSetVmProtectionPolicy ProtectionPolicy { get; set; } /// UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. public string UserData { get; set; } + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. + public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index 0b6e1b7d9887..2c033a452aa8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -10,7 +10,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/f31a209b4013a8661200718a9e441efee4f379c3/specification/compute/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true