Share via


QuotaProperties Class

Definition

Quota properties for the resource.

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

Constructors

QuotaProperties()

Initializes a new instance of QuotaProperties.

Properties

CurrentValue

Current usage value for the resource.

Limit

Quota properties.

Properties

Additional properties for the specified 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), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant.

ResourceName

Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations.

ResourceTypeName

The name of the resource type.

Unit

The limit units, such as count and bytes. Use the unit field provided in the response of the GET quota operation.

Applies to