BatchJobUpdateContent Class

Definition

Parameters for updating an Azure Batch Job.

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

Constructors

BatchJobUpdateContent()

Initializes a new instance of BatchJobUpdateContent.

Properties

AllowTaskPreemption

Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API.

Constraints

The execution constraints for the Job. If omitted, the existing execution constraints are left unchanged.

MaxParallelTasks

The maximum number of tasks that can be executed in parallel for the job. The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API.

Metadata

A list of name-value pairs associated with the Job as metadata. If omitted, the existing Job metadata is left unchanged.

OnAllTasksComplete

The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).

PoolInfo

The Pool on which the Batch service runs the Job's Tasks. You may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool.

Priority

The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged.

Explicit Interface Implementations

IJsonModel<BatchJobUpdateContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchJobUpdateContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchJobUpdateContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchJobUpdateContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchJobUpdateContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to