Partilhar via


QuotaProperties Class

Definition

Quota properties for the specified resource.

public class QuotaProperties
public class QuotaProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Quota.Models.QuotaProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Quota.Models.QuotaProperties>
type QuotaProperties = class
type QuotaProperties = class
    interface IJsonModel<QuotaProperties>
    interface IPersistableModel<QuotaProperties>
Public Class QuotaProperties
Public Class QuotaProperties
Implements IJsonModel(Of QuotaProperties), IPersistableModel(Of QuotaProperties)
Inheritance
QuotaProperties
Implements

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.

Explicit Interface Implementations

IJsonModel<QuotaProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<QuotaProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<QuotaProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<QuotaProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<QuotaProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to