Delen via


QuotaProperties Class

Definition

Quota properties for the specified resource.

public class QuotaProperties
type QuotaProperties = class
Public Class QuotaProperties
Inheritance
QuotaProperties

Constructors

QuotaProperties()

Initializes a new instance of QuotaProperties.

Properties

IsQuotaApplicable

States if quota can be requested for this resource.

Limit

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.

Name

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

Properties

Additional properties for the specific resource provider.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

QuotaPeriod

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.

ResourceTypeName

The name of the resource type. Optional field.

Unit

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.

Applies to