Partilhar via


Stateful Class

Definition

Stateful profile meaning that the machines will be returned to the pool after running a job.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.StatefulTypeConverter))]
public class Stateful : Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IStateful, Microsoft.Azure.PowerShell.Cmdlets.Mdp.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.StatefulTypeConverter))>]
type Stateful = class
    interface IStateful
    interface IJsonSerializable
    interface IAgentProfile
    interface IValidates
Public Class Stateful
Implements IStateful, IValidates
Inheritance
Stateful
Attributes
Implements

Constructors

Stateful()

Creates an new Stateful instance.

Properties

GracePeriodTimeSpan

How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week.

Kind

Discriminator property for AgentProfile.

MaxAgentLifetime

How long should stateful machines be kept around. The maximum is one week.

ResourcePrediction

Defines pool buffer/stand-by agents.

ResourcePredictionsProfile

Defines how the pool buffer/stand-by agents is provided.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Stateful.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Stateful.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Mdp.Models.IStateful.

FromJsonString(String)

Creates a new instance of Stateful, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Stateful into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to