次の方法で共有


UpgradePolicy Class

Definition

Describes an upgrade policy - automatic, manual, or rolling.

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

Constructors

UpgradePolicy(UpgradeMode)

Initializes a new instance of UpgradePolicy.

Properties

AutomaticOSUpgradePolicy

The configuration parameters used for performing automatic OS upgrade.

Mode

Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> Automatic - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> Rolling - Scale set performs updates in batches with an optional pause time in between.

RollingUpgradePolicy

The configuration parameters used while performing a rolling upgrade.

Explicit Interface Implementations

IJsonModel<UpgradePolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UpgradePolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UpgradePolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UpgradePolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UpgradePolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to