共用方式為


ComputeUsage Class

Definition

Describes Compute Resource Usage.

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

Properties

CurrentValue

The current usage of the resource.

Limit

The maximum permitted usage of the resource.

Name

The name of the type of usage.

Unit

An enum describing the unit of usage measurement.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ComputeUsage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ComputeUsage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputeUsage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputeUsage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ComputeUsage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to