Поделиться через


LabVirtualMachineCredential Class

Definition

Credentials for a user on a lab VM.

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

Constructors

LabVirtualMachineCredential(String)

Initializes a new instance of LabVirtualMachineCredential.

Properties

Password

The password for the user. This is required for the TemplateVM createOption.

Username

The username to use when signing in to lab VMs.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LabVirtualMachineCredential>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<LabVirtualMachineCredential>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LabVirtualMachineCredential>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LabVirtualMachineCredential>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<LabVirtualMachineCredential>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to