Freigeben über


ArmScVmmModelFactory.VirtualMachineTemplateInventoryItem Method

Definition

Initializes a new instance of VirtualMachineTemplateInventoryItem.

public static Azure.ResourceManager.ScVmm.Models.VirtualMachineTemplateInventoryItem VirtualMachineTemplateInventoryItem (string managedResourceId = default, string uuid = default, string inventoryItemName = default, Azure.ResourceManager.ScVmm.Models.ScVmmProvisioningState? provisioningState = default, int? cpuCount = default, int? memoryMB = default, Azure.ResourceManager.ScVmm.Models.ScVmmOSType? osType = default, string osName = default);
static member VirtualMachineTemplateInventoryItem : string * string * string * Nullable<Azure.ResourceManager.ScVmm.Models.ScVmmProvisioningState> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.ScVmm.Models.ScVmmOSType> * string -> Azure.ResourceManager.ScVmm.Models.VirtualMachineTemplateInventoryItem
Public Shared Function VirtualMachineTemplateInventoryItem (Optional managedResourceId As String = Nothing, Optional uuid As String = Nothing, Optional inventoryItemName As String = Nothing, Optional provisioningState As Nullable(Of ScVmmProvisioningState) = Nothing, Optional cpuCount As Nullable(Of Integer) = Nothing, Optional memoryMB As Nullable(Of Integer) = Nothing, Optional osType As Nullable(Of ScVmmOSType) = Nothing, Optional osName As String = Nothing) As VirtualMachineTemplateInventoryItem

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.

cpuCount
Nullable<Int32>

Gets the desired number of vCPUs for the vm.

memoryMB
Nullable<Int32>

MemoryMB is the desired size of a virtual machine's memory, in MB.

osType
Nullable<ScVmmOSType>

Gets the type of the os.

osName
String

Gets os name.

Returns

A new VirtualMachineTemplateInventoryItem instance for mocking.

Applies to