Share via


VirtualMachineAssignRelayContent Class

Definition

VirtualMachineAssignRelayParameters represents the body of the request to update the relay used for a Microsoft.HybridCompute machine associated with the virtual machine.

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

Constructors

Name Description
VirtualMachineAssignRelayContent(ResourceIdentifier)

Initializes a new instance of VirtualMachineAssignRelayContent.

Properties

Name Description
MachineId

The resourceId of the Microsoft.HybridCompute machine resource to assign relay usage.

RelayType

The indicator of which relay type the machine should be assigned to use. Platform indicates the use of a platform-dedicated relay. Public indicates the use of the standard public relay for Arc services.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<VirtualMachineAssignRelayContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachineAssignRelayContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineAssignRelayContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineAssignRelayContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachineAssignRelayContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to