Partilhar via


ArmComputeModelFactory.ComputeUsage Method

Definition

Initializes a new instance of ComputeUsage.

public static Azure.ResourceManager.Compute.Models.ComputeUsage ComputeUsage (Azure.ResourceManager.Compute.Models.ComputeUsageUnit unit = default, int currentValue = 0, long limit = 0, Azure.ResourceManager.Compute.Models.ComputeUsageName name = default);
static member ComputeUsage : Azure.ResourceManager.Compute.Models.ComputeUsageUnit * int * int64 * Azure.ResourceManager.Compute.Models.ComputeUsageName -> Azure.ResourceManager.Compute.Models.ComputeUsage
Public Shared Function ComputeUsage (Optional unit As ComputeUsageUnit = Nothing, Optional currentValue As Integer = 0, Optional limit As Long = 0, Optional name As ComputeUsageName = Nothing) As ComputeUsage

Parameters

unit
ComputeUsageUnit

An enum describing the unit of usage measurement.

currentValue
Int32

The current usage of the resource.

limit
Int64

The maximum permitted usage of the resource.

name
ComputeUsageName

The name of the type of usage.

Returns

A new ComputeUsage instance for mocking.

Applies to