From 1bbd2e1bb8a16ae1dcf7326594b7c4eb77df71a6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 1 Mar 2023 06:13:31 +0000 Subject: [PATCH] CodeGen from PR 22271 in Azure/azure-rest-api-specs Merge 3badca6e5854f468dd1401f3f220d51b9ccca8f1 into aa85f59e259c4b12197b57b221067c40fa2fe3f1 --- ....ResourceManager.Compute.netstandard2.0.cs | 9 ++++-- .../src/Generated/Models/HyperVGeneration.cs | 2 +- .../Models/ImageStorageAccountType.cs | 3 ++ .../Models/OSImageNotificationProfile.cs | 4 +-- ...neScaleSetIPConfiguration.Serialization.cs | 18 +---------- .../VirtualMachineScaleSetIPConfiguration.cs | 5 ++- ...leSetNetworkConfiguration.Serialization.cs | 18 +---------- ...tualMachineScaleSetNetworkConfiguration.cs | 5 ++- ...ineScaleSetVmInstanceView.Serialization.cs | 31 ++++++++++++++++++- .../VirtualMachineScaleSetVmInstanceView.cs | 18 ++++++++++- .../src/autorest.md | 2 +- 11 files changed, 67 insertions(+), 48 deletions(-) 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 1d715955adb1..2f24ef49b241 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 @@ -3924,6 +3924,7 @@ public ImageReference() { } public ImageStorageAccountType(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumLrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardLrs { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardSsdLrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardZrs { get { throw null; } } public bool Equals(Azure.ResourceManager.Compute.Models.ImageStorageAccountType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -5776,7 +5777,7 @@ internal VirtualMachineScaleSetInstanceView() { } public System.Collections.Generic.IReadOnlyList Statuses { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualMachineStatusesSummary { get { throw null; } } } - public partial class VirtualMachineScaleSetIPConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetIPConfiguration { public VirtualMachineScaleSetIPConfiguration(string name) { } public System.Collections.Generic.IList ApplicationGatewayBackendAddressPools { get { throw null; } } @@ -5802,7 +5803,7 @@ public VirtualMachineScaleSetManagedDisk() { } public Azure.ResourceManager.Compute.Models.VirtualMachineDiskSecurityProfile SecurityProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.StorageAccountType? StorageAccountType { get { throw null; } set { } } } - public partial class VirtualMachineScaleSetNetworkConfiguration : Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetNetworkConfiguration { public VirtualMachineScaleSetNetworkConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } @@ -6074,9 +6075,13 @@ public partial class VirtualMachineScaleSetVmInstanceView internal VirtualMachineScaleSetVmInstanceView() { } public Azure.Core.ResourceIdentifier AssignedHost { get { throw null; } } public Azure.ResourceManager.Compute.Models.BootDiagnosticsInstanceView BootDiagnostics { get { throw null; } } + public string ComputerName { get { throw null; } } public System.Collections.Generic.IReadOnlyList Disks { get { throw null; } } public System.Collections.Generic.IReadOnlyList Extensions { get { throw null; } } + public Azure.ResourceManager.Compute.Models.HyperVGeneration? HyperVGeneration { get { throw null; } } public Azure.ResourceManager.Compute.Models.MaintenanceRedeployStatus MaintenanceRedeployStatus { get { throw null; } } + public string OSName { get { throw null; } } + public string OSVersion { get { throw null; } } public string PlacementGroupId { get { throw null; } } public int? PlatformFaultDomain { get { throw null; } } public int? PlatformUpdateDomain { get { throw null; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs index 7f7391c18988..96aea5072e02 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/HyperVGeneration.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// Specifies the HyperVGeneration Type associated with a resource. + /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. public readonly partial struct HyperVGeneration : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs index fe617915f3c4..bd4a6f4c0a69 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs @@ -25,6 +25,7 @@ public ImageStorageAccountType(string value) private const string StandardLrsValue = "Standard_LRS"; private const string StandardZrsValue = "Standard_ZRS"; private const string PremiumLrsValue = "Premium_LRS"; + private const string StandardSsdLrsValue = "StandardSSD_LRS"; /// Standard_LRS. public static ImageStorageAccountType StandardLrs { get; } = new ImageStorageAccountType(StandardLrsValue); @@ -32,6 +33,8 @@ public ImageStorageAccountType(string value) public static ImageStorageAccountType StandardZrs { get; } = new ImageStorageAccountType(StandardZrsValue); /// Premium_LRS. public static ImageStorageAccountType PremiumLrs { get; } = new ImageStorageAccountType(PremiumLrsValue); + /// StandardSSD_LRS. + public static ImageStorageAccountType StandardSsdLrs { get; } = new ImageStorageAccountType(StandardSsdLrsValue); /// Determines if two values are the same. public static bool operator ==(ImageStorageAccountType left, ImageStorageAccountType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs index 264b640ab101..9479d167f19e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSImageNotificationProfile.cs @@ -16,7 +16,7 @@ public OSImageNotificationProfile() } /// Initializes a new instance of OSImageNotificationProfile. - /// Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, with the value set to 15 minutes (PT15M). + /// Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M). /// Specifies whether the OS Image Scheduled event is enabled or disabled. internal OSImageNotificationProfile(string notBeforeTimeout, bool? enable) { @@ -24,7 +24,7 @@ internal OSImageNotificationProfile(string notBeforeTimeout, bool? enable) Enable = enable; } - /// Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, with the value set to 15 minutes (PT15M). + /// Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M). public string NotBeforeTimeout { get; set; } /// Specifies whether the OS Image Scheduled event is enabled or disabled. public bool? Enable { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs index 908cd331fd20..e0811e1b3c76 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.Serialization.cs @@ -19,11 +19,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Subnet)) @@ -93,7 +88,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineScaleSetIPConfiguration(JsonElement element) { string name = default; - Optional id = default; Optional subnet = default; Optional primary = default; Optional publicIPAddressConfiguration = default; @@ -109,16 +103,6 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS name = property.Value.GetString(); continue; } - if (property.NameEquals("id"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -232,7 +216,7 @@ internal static VirtualMachineScaleSetIPConfiguration DeserializeVirtualMachineS continue; } } - return new VirtualMachineScaleSetIPConfiguration(id.Value, name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); + return new VirtualMachineScaleSetIPConfiguration(name, subnet, Optional.ToNullable(primary), publicIPAddressConfiguration.Value, Optional.ToNullable(privateIPAddressVersion), Optional.ToList(applicationGatewayBackendAddressPools), Optional.ToList(applicationSecurityGroups), Optional.ToList(loadBalancerBackendAddressPools), Optional.ToList(loadBalancerInboundNatPools)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs index bbfe61747f2a..7e8d711b83df 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's IP configuration. - public partial class VirtualMachineScaleSetIPConfiguration : ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetIPConfiguration { /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. /// The IP configuration name. @@ -30,7 +30,6 @@ public VirtualMachineScaleSetIPConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetIPConfiguration. - /// Resource Id. /// The IP configuration name. /// Specifies the identifier of the subnet. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. @@ -40,7 +39,7 @@ public VirtualMachineScaleSetIPConfiguration(string name) /// Specifies an array of references to application security group. /// Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. /// Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. - internal VirtualMachineScaleSetIPConfiguration(ResourceIdentifier id, string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) : base(id) + internal VirtualMachineScaleSetIPConfiguration(string name, WritableSubResource subnet, bool? primary, VirtualMachineScaleSetPublicIPAddressConfiguration publicIPAddressConfiguration, IPVersion? privateIPAddressVersion, IList applicationGatewayBackendAddressPools, IList applicationSecurityGroups, IList loadBalancerBackendAddressPools, IList loadBalancerInboundNatPools) { Name = name; Subnet = subnet; 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 293ceeae5748..5f754b6ff834 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 @@ -19,11 +19,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Primary)) @@ -83,7 +78,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMachineScaleSetNetworkConfiguration(JsonElement element) { string name = default; - Optional id = default; Optional primary = default; Optional enableAcceleratedNetworking = default; Optional disableTcpStateTracking = default; @@ -100,16 +94,6 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac name = property.Value.GetString(); continue; } - if (property.NameEquals("id"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -218,7 +202,7 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac 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(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)); } } } 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 32a19ee52ed8..d96639b50308 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Describes a virtual machine scale set network profile's network configurations. - public partial class VirtualMachineScaleSetNetworkConfiguration : ComputeWriteableSubResourceData + public partial class VirtualMachineScaleSetNetworkConfiguration { /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. /// The network configuration name. @@ -27,7 +27,6 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) } /// Initializes a new instance of VirtualMachineScaleSetNetworkConfiguration. - /// Resource Id. /// The network configuration name. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. /// Specifies whether the network interface is accelerated networking-enabled. @@ -38,7 +37,7 @@ 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) + internal VirtualMachineScaleSetNetworkConfiguration(string name, bool? primary, bool? enableAcceleratedNetworking, bool? isTcpStateTrackingDisabled, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) { Name = name; Primary = primary; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs index 5f8ea29716e5..1c5db6b54b9b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.Serialization.cs @@ -27,6 +27,10 @@ internal static VirtualMachineScaleSetVmInstanceView DeserializeVirtualMachineSc Optional> statuses = default; Optional assignedHost = default; Optional placementGroupId = default; + Optional computerName = default; + Optional osName = default; + Optional osVersion = default; + Optional hyperVGeneration = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("platformUpdateDomain"u8)) @@ -154,8 +158,33 @@ internal static VirtualMachineScaleSetVmInstanceView DeserializeVirtualMachineSc placementGroupId = property.Value.GetString(); continue; } + if (property.NameEquals("computerName"u8)) + { + computerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("osName"u8)) + { + osName = property.Value.GetString(); + continue; + } + if (property.NameEquals("osVersion"u8)) + { + osVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("hyperVGeneration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + hyperVGeneration = new HyperVGeneration(property.Value.GetString()); + continue; + } } - return new VirtualMachineScaleSetVmInstanceView(Optional.ToNullable(platformUpdateDomain), Optional.ToNullable(platformFaultDomain), rdpThumbPrint.Value, vmAgent.Value, maintenanceRedeployStatus.Value, Optional.ToList(disks), Optional.ToList(extensions), vmHealth.Value, bootDiagnostics.Value, Optional.ToList(statuses), assignedHost.Value, placementGroupId.Value); + return new VirtualMachineScaleSetVmInstanceView(Optional.ToNullable(platformUpdateDomain), Optional.ToNullable(platformFaultDomain), rdpThumbPrint.Value, vmAgent.Value, maintenanceRedeployStatus.Value, Optional.ToList(disks), Optional.ToList(extensions), vmHealth.Value, bootDiagnostics.Value, Optional.ToList(statuses), assignedHost.Value, placementGroupId.Value, computerName.Value, osName.Value, osVersion.Value, Optional.ToNullable(hyperVGeneration)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs index 293e5c654f9f..1ae79829afc5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs @@ -34,7 +34,11 @@ internal VirtualMachineScaleSetVmInstanceView() /// The resource status information. /// Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. <br><br>Minimum api-version: 2020-06-01. /// The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. - internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? platformFaultDomain, string rdpThumbPrint, VirtualMachineAgentInstanceView vmAgent, MaintenanceRedeployStatus maintenanceRedeployStatus, IReadOnlyList disks, IReadOnlyList extensions, VirtualMachineHealthStatus vmHealth, BootDiagnosticsInstanceView bootDiagnostics, IReadOnlyList statuses, ResourceIdentifier assignedHost, string placementGroupId) + /// Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). + /// The Operating System running on the hybrid machine. + /// The version of Operating System running on the hybrid machine. + /// The hypervisor generation of the Virtual Machine [V1, V2]. + internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? platformFaultDomain, string rdpThumbPrint, VirtualMachineAgentInstanceView vmAgent, MaintenanceRedeployStatus maintenanceRedeployStatus, IReadOnlyList disks, IReadOnlyList extensions, VirtualMachineHealthStatus vmHealth, BootDiagnosticsInstanceView bootDiagnostics, IReadOnlyList statuses, ResourceIdentifier assignedHost, string placementGroupId, string computerName, string osName, string osVersion, HyperVGeneration? hyperVGeneration) { PlatformUpdateDomain = platformUpdateDomain; PlatformFaultDomain = platformFaultDomain; @@ -48,6 +52,10 @@ internal VirtualMachineScaleSetVmInstanceView(int? platformUpdateDomain, int? pl Statuses = statuses; AssignedHost = assignedHost; PlacementGroupId = placementGroupId; + ComputerName = computerName; + OSName = osName; + OSVersion = osVersion; + HyperVGeneration = hyperVGeneration; } /// The Update Domain count. @@ -80,5 +88,13 @@ public InstanceViewStatus VmHealthStatus public ResourceIdentifier AssignedHost { get; } /// The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. public string PlacementGroupId { get; } + /// Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). + public string ComputerName { get; } + /// The Operating System running on the hybrid machine. + public string OSName { get; } + /// The version of Operating System running on the hybrid machine. + public string OSVersion { get; } + /// The hypervisor generation of the Virtual Machine [V1, V2]. + public HyperVGeneration? HyperVGeneration { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index 4a11617c83d6..48ac5f724cbf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -11,7 +11,7 @@ azure-arm: true generate-model-factory: false library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/5bba638fd53d813e475bfdc3b1b2789ee75b187c/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