Share via


VirtualMachinePlacementHint Class

Definition

VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine.

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

Constructors

VirtualMachinePlacementHint(VirtualMachinePlacementHintType, ResourceIdentifier, VirtualMachineSchedulingExecution, VirtualMachinePlacementHintPodAffinityScope)

Initializes a new instance of VirtualMachinePlacementHint.

Properties

HintType

The specification of whether this hint supports affinity or anti-affinity with the referenced resources.

ResourceId

The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.

SchedulingExecution

The indicator of whether the hint is a hard or soft requirement during scheduling.

Scope

The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachinePlacementHint>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachinePlacementHint>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachinePlacementHint>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachinePlacementHint>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachinePlacementHint>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to