Share via


JobOperationsExtensions.Patch Method

Definition

Updates the properties of the specified Job.

public static Microsoft.Azure.Batch.Protocol.Models.JobPatchHeaders Patch (this Microsoft.Azure.Batch.Protocol.IJobOperations operations, string jobId, Microsoft.Azure.Batch.Protocol.Models.JobPatchParameter jobPatchParameter, Microsoft.Azure.Batch.Protocol.Models.JobPatchOptions jobPatchOptions = default);
static member Patch : Microsoft.Azure.Batch.Protocol.IJobOperations * string * Microsoft.Azure.Batch.Protocol.Models.JobPatchParameter * Microsoft.Azure.Batch.Protocol.Models.JobPatchOptions -> Microsoft.Azure.Batch.Protocol.Models.JobPatchHeaders
<Extension()>
Public Function Patch (operations As IJobOperations, jobId As String, jobPatchParameter As JobPatchParameter, Optional jobPatchOptions As JobPatchOptions = Nothing) As JobPatchHeaders

Parameters

operations
IJobOperations

The operations group for this extension method.

jobId
String

The ID of the Job whose properties you want to update.

jobPatchParameter
JobPatchParameter

The parameters for the request.

jobPatchOptions
JobPatchOptions

Additional parameters for the operation

Returns

Remarks

This replaces only the Job properties specified in the request. For example, if the Job has constraints, and a request does not specify the constraints element, then the Job keeps the existing constraints.

Applies to