Share via


QuantumModelFactory.QuantumJobQuota Method

Definition

Initializes a new instance of QuantumJobQuota.

public static Azure.Quantum.Jobs.Models.QuantumJobQuota QuantumJobQuota(string dimension = default, Azure.Quantum.Jobs.Models.DimensionScope? scope = default, string providerId = default, float? utilization = default, float? holds = default, float? limit = default, Azure.Quantum.Jobs.Models.MeterPeriod? period = default);
static member QuantumJobQuota : string * Nullable<Azure.Quantum.Jobs.Models.DimensionScope> * string * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<Azure.Quantum.Jobs.Models.MeterPeriod> -> Azure.Quantum.Jobs.Models.QuantumJobQuota
Public Shared Function QuantumJobQuota (Optional dimension As String = Nothing, Optional scope As Nullable(Of DimensionScope) = Nothing, Optional providerId As String = Nothing, Optional utilization As Nullable(Of Single) = Nothing, Optional holds As Nullable(Of Single) = Nothing, Optional limit As Nullable(Of Single) = Nothing, Optional period As Nullable(Of MeterPeriod) = Nothing) As QuantumJobQuota

Parameters

dimension
String

The name of the dimension associated with the quota.

scope
Nullable<DimensionScope>

The scope at which the quota is applied.

providerId
String

The unique identifier for the provider.

utilization
Nullable<Single>

The amount of the usage that has been applied for the current period.

holds
Nullable<Single>

The amount of the usage that has been reserved but not applied for the current period.

limit
Nullable<Single>

The maximum amount of usage allowed for the current period.

period
Nullable<MeterPeriod>

The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas.

Returns

A new QuantumJobQuota instance for mocking.

Applies to