Sdílet prostřednictvím


CapacityReservationPatch Class

Definition

Specifies information about the capacity reservation. Only tags and sku.capacity can be updated.

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

Constructors

CapacityReservationPatch()

Initializes a new instance of CapacityReservationPatch.

Properties

InstanceView

The Capacity reservation instance view.

PlatformFaultDomainCount

Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. Note: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01.

ProvisioningOn

The date time when the capacity reservation was last updated.

ProvisioningState

The provisioning state, which only appears in the response.

ReservationId

A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.

Sku

SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.

Tags

Resource tags.

(Inherited from ComputeResourcePatch)
TimeCreated

Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.

VirtualMachinesAssociated

A list of all virtual machine resource ids that are associated with the capacity reservation.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ComputeResourcePatch)

Explicit Interface Implementations

IJsonModel<CapacityReservationPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CapacityReservationPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ComputeResourcePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from ComputeResourcePatch)
IJsonModel<ComputeResourcePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ComputeResourcePatch)
IPersistableModel<CapacityReservationPatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CapacityReservationPatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CapacityReservationPatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ComputeResourcePatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ComputeResourcePatch)
IPersistableModel<ComputeResourcePatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from ComputeResourcePatch)
IPersistableModel<ComputeResourcePatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ComputeResourcePatch)

Applies to