BatchPoolReplaceContent Class

Definition

Customizing the Serialization of BatchPoolReplaceContent to handle the missing variable certificateReferences. This is a work around will be removed in the next release

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

Constructors

BatchPoolReplaceContent(IEnumerable<BatchApplicationPackageReference>, IEnumerable<MetadataItem>)

Initializes a new instance of BatchPoolReplaceContent.

Properties

ApplicationPackageReferences

The list of Application Packages to be installed on each Compute Node in the Pool. The list replaces any existing Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Application Package references on any given Pool. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool.

Metadata

A list of name-value pairs associated with the Pool as metadata. This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool.

StartTask

A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool.

TargetNodeCommunicationMode

The desired node communication mode for the pool. This setting replaces any existing targetNodeCommunication setting on the Pool. If omitted, the existing setting is default.

Explicit Interface Implementations

IJsonModel<BatchPoolReplaceContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchPoolReplaceContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<BatchPoolReplaceContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchPoolReplaceContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchPoolReplaceContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to