Udostępnij za pośrednictwem


LabAutoShutdownProfile Class

Definition

Profile for how to handle shutting down virtual machines.

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

Constructors

LabAutoShutdownProfile()

Initializes a new instance of LabAutoShutdownProfile.

Properties

DisconnectDelay

The amount of time a VM will stay running after a user disconnects if this behavior is enabled.

IdleDelay

The amount of time a VM will idle before it is shutdown if this behavior is enabled.

NoConnectDelay

The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.

ShutdownOnDisconnect

Whether shutdown on disconnect is enabled.

ShutdownOnIdle

Whether a VM will get shutdown when it has idled for a period of time.

ShutdownWhenNotConnected

Whether a VM will get shutdown when it hasn't been connected to after a period of time.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LabAutoShutdownProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<LabAutoShutdownProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LabAutoShutdownProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LabAutoShutdownProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<LabAutoShutdownProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to