ArmComputeModelFactory.ComputeUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET