ArmDataBoxEdgeModelFactory.HostCapacity Method

Definition

public static Azure.ResourceManager.DataBoxEdge.Models.HostCapacity HostCapacity(string hostName = default, long? effectiveAvailableMemoryInMBOnHost = default, int? availableGpuCount = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeVmMemory> vmUsedMemory = default, string gpuType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataBoxEdge.Models.NumaNodeInfo> numaNodesData = default);
static member HostCapacity : string * Nullable<int64> * Nullable<int> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeVmMemory> * string * seq<Azure.ResourceManager.DataBoxEdge.Models.NumaNodeInfo> -> Azure.ResourceManager.DataBoxEdge.Models.HostCapacity
Public Shared Function HostCapacity (Optional hostName As String = Nothing, Optional effectiveAvailableMemoryInMBOnHost As Nullable(Of Long) = Nothing, Optional availableGpuCount As Nullable(Of Integer) = Nothing, Optional vmUsedMemory As IDictionary(Of String, DataBoxEdgeVmMemory) = Nothing, Optional gpuType As String = Nothing, Optional numaNodesData As IEnumerable(Of NumaNodeInfo) = Nothing) As HostCapacity

Parameters

hostName
String

The name of the host.

effectiveAvailableMemoryInMBOnHost
Nullable<Int64>

The available memory on the host accounting for VM placement size and any host VM reservations.

availableGpuCount
Nullable<Int32>

The available amount of GPUs on the host to use after accounting for GPUS used by reservations on the host.

vmUsedMemory
IDictionary<String,DataBoxEdgeVmMemory>

The VM used memory per VmId.

gpuType
String

The GPU type of the VM.

numaNodesData
IEnumerable<NumaNodeInfo>

The numa nodes information for Hpn VMs.

Returns

A new HostCapacity instance for mocking.

Applies to