DevOpsStateful Class

Definition

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

public class DevOpsStateful : Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsPoolAgentProfile, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStateful>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStateful>
type DevOpsStateful = class
    inherit DevOpsPoolAgentProfile
    interface IJsonModel<DevOpsStateful>
    interface IPersistableModel<DevOpsStateful>
Public Class DevOpsStateful
Inherits DevOpsPoolAgentProfile
Implements IJsonModel(Of DevOpsStateful), IPersistableModel(Of DevOpsStateful)
Inheritance
Implements

Constructors

Name Description
DevOpsStateful()

Initializes a new instance of DevOpsStateful.

Properties

Name Description
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.

MaxAgentLifetime

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

ResourcePredictions

Defines pool buffer/stand-by agents.

(Inherited from DevOpsPoolAgentProfile)
ResourcePredictionsProfile

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

(Inherited from DevOpsPoolAgentProfile)

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

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

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

(Inherited from DevOpsPoolAgentProfile)
IJsonModel<DevOpsPoolAgentProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from DevOpsPoolAgentProfile)
IJsonModel<DevOpsStateful>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DevOpsStateful>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DevOpsPoolAgentProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from DevOpsPoolAgentProfile)
IPersistableModel<DevOpsPoolAgentProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

<param name="options">The ModelReaderWriterOptions to use.</param> (Inherited from DevOpsPoolAgentProfile)
IPersistableModel<DevOpsPoolAgentProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from DevOpsPoolAgentProfile)
IPersistableModel<DevOpsStateful>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DevOpsStateful>.GetFormatFromOptions(ModelReaderWriterOptions)

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

<param name="options">The ModelReaderWriterOptions to use.</param>
IPersistableModel<DevOpsStateful>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to