PlacementPolicyProperties Class

Definition

Abstract placement policy properties Please note PlacementPolicyProperties 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 VmHostPlacementPolicyProperties and VmPlacementPolicyProperties.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Avs.Models.UnknownPlacementPolicyProperties))]
public abstract class PlacementPolicyProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Avs.Models.PlacementPolicyProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Avs.Models.PlacementPolicyProperties>
public abstract class PlacementPolicyProperties
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Avs.Models.UnknownPlacementPolicyProperties))>]
type PlacementPolicyProperties = class
    interface IJsonModel<PlacementPolicyProperties>
    interface IPersistableModel<PlacementPolicyProperties>
type PlacementPolicyProperties = class
Public MustInherit Class PlacementPolicyProperties
Implements IJsonModel(Of PlacementPolicyProperties), IPersistableModel(Of PlacementPolicyProperties)
Public MustInherit Class PlacementPolicyProperties
Inheritance
PlacementPolicyProperties
Derived
Attributes
Implements

Constructors

PlacementPolicyProperties()

Initializes a new instance of PlacementPolicyProperties.

Properties

DisplayName

Display name of the placement policy.

ProvisioningState

The provisioning state.

State

Whether the placement policy is enabled or disabled.

Explicit Interface Implementations

IJsonModel<PlacementPolicyProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PlacementPolicyProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PlacementPolicyProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PlacementPolicyProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PlacementPolicyProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to