Freigeben über


ArmScVmmModelFactory.VirtualMachineInventoryItem Method

Definition

Initializes a new instance of VirtualMachineInventoryItem.

public static Azure.ResourceManager.ScVmm.Models.VirtualMachineInventoryItem VirtualMachineInventoryItem (string managedResourceId = default, string uuid = default, string inventoryItemName = default, Azure.ResourceManager.ScVmm.Models.ScVmmProvisioningState? provisioningState = default, Azure.ResourceManager.ScVmm.Models.ScVmmOSType? osType = default, string osName = default, string osVersion = default, string powerState = default, System.Collections.Generic.IEnumerable<string> ipAddresses = default, Azure.ResourceManager.ScVmm.Models.ScVmmInventoryItemDetails cloud = default, string biosGuid = default, Azure.Core.ResourceIdentifier managedMachineResourceId = default);
static member VirtualMachineInventoryItem : string * string * string * Nullable<Azure.ResourceManager.ScVmm.Models.ScVmmProvisioningState> * Nullable<Azure.ResourceManager.ScVmm.Models.ScVmmOSType> * string * string * string * seq<string> * Azure.ResourceManager.ScVmm.Models.ScVmmInventoryItemDetails * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.ScVmm.Models.VirtualMachineInventoryItem
Public Shared Function VirtualMachineInventoryItem (Optional managedResourceId As String = Nothing, Optional uuid As String = Nothing, Optional inventoryItemName As String = Nothing, Optional provisioningState As Nullable(Of ScVmmProvisioningState) = Nothing, Optional osType As Nullable(Of ScVmmOSType) = Nothing, Optional osName As String = Nothing, Optional osVersion As String = Nothing, Optional powerState As String = Nothing, Optional ipAddresses As IEnumerable(Of String) = Nothing, Optional cloud As ScVmmInventoryItemDetails = Nothing, Optional biosGuid As String = Nothing, Optional managedMachineResourceId As ResourceIdentifier = Nothing) As VirtualMachineInventoryItem

Parameters

managedResourceId
String

Gets the tracked resource id corresponding to the inventory resource.

uuid
String

Gets the UUID (which is assigned by VMM) for the inventory item.

inventoryItemName
String

Gets the Managed Object name in VMM for the inventory item.

provisioningState
Nullable<ScVmmProvisioningState>

Provisioning state of the resource.

osType
Nullable<ScVmmOSType>

Gets the type of the os.

osName
String

Gets os name.

osVersion
String

Gets os version.

powerState
String

Gets the power state of the virtual machine.

ipAddresses
IEnumerable<String>

Gets or sets the nic ip addresses.

cloud
ScVmmInventoryItemDetails

Cloud inventory resource details where the VM is present.

biosGuid
String

Gets the bios guid.

managedMachineResourceId
ResourceIdentifier

Gets the tracked resource id corresponding to the inventory resource.

Returns

A new VirtualMachineInventoryItem instance for mocking.

Applies to