ArmQuotaModelFactory.QuotaProperties Method

Definition

Initializes a new instance of QuotaProperties.

public static Azure.ResourceManager.Quota.Models.QuotaProperties QuotaProperties (Azure.ResourceManager.Quota.Models.QuotaLimitJsonObject limit = default, string unit = default, Azure.ResourceManager.Quota.Models.QuotaRequestResourceName name = default, string resourceTypeName = default, TimeSpan? quotaPeriod = default, bool? isQuotaApplicable = default, BinaryData properties = default);
static member QuotaProperties : Azure.ResourceManager.Quota.Models.QuotaLimitJsonObject * string * Azure.ResourceManager.Quota.Models.QuotaRequestResourceName * string * Nullable<TimeSpan> * Nullable<bool> * BinaryData -> Azure.ResourceManager.Quota.Models.QuotaProperties
Public Shared Function QuotaProperties (Optional limit As QuotaLimitJsonObject = Nothing, Optional unit As String = Nothing, Optional name As QuotaRequestResourceName = Nothing, Optional resourceTypeName As String = Nothing, Optional quotaPeriod As Nullable(Of TimeSpan) = Nothing, Optional isQuotaApplicable As Nullable(Of Boolean) = Nothing, Optional properties As BinaryData = Nothing) As QuotaProperties

Parameters

limit
QuotaLimitJsonObject

Resource quota limit properties. Please note QuotaLimitJsonObject is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include QuotaLimitObject.

unit
String

The quota units, such as Count and Bytes. When requesting quota, use the unit value returned in the GET response in the request body of your PUT operation.

name
QuotaRequestResourceName

Resource name provided by the resource provider. Use this property name when requesting quota.

resourceTypeName
String

The name of the resource type. Optional field.

quotaPeriod
Nullable<TimeSpan>

The time period over which the quota usage values are summarized. For example: *P1D (per one day) *PT1M (per one minute) *PT1S (per one second). This parameter is optional because, for some resources like compute, the period is irrelevant.

isQuotaApplicable
Nullable<Boolean>

States if quota can be requested for this resource.

properties
BinaryData

Additional properties for the specific resource provider.

Returns

A new QuotaProperties instance for mocking.

Applies to