CapacityReservationUtilization Class

Definition

Represents the capacity reservation utilization in terms of resources allocated.

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

Properties

CurrentCapacity

The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.

VirtualMachinesAllocated

A list of all virtual machines resource ids allocated against the capacity reservation.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CapacityReservationUtilization>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CapacityReservationUtilization>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CapacityReservationUtilization>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CapacityReservationUtilization>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CapacityReservationUtilization>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to