Dela via


PlacementPolicyPatch Class

Definition

An update of a DRS placement policy resource.

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

Constructors

PlacementPolicyPatch()

Initializes a new instance of PlacementPolicyPatch.

Properties

AffinityStrength

vm-host placement policy affinity strength (should/must).

AzureHybridBenefitType

placement policy azure hybrid benefit opt-in type.

HostMembers

Host members list.

State

Whether the placement policy is enabled or disabled.

VmMembers

Virtual machine members list.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<PlacementPolicyPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PlacementPolicyPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PlacementPolicyPatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PlacementPolicyPatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PlacementPolicyPatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to