Compartir a través de


IJobOperations.PatchWithHttpMessagesAsync Método

Definición

Novedades las propiedades del trabajo especificado.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.JobPatchHeaders>> PatchWithHttpMessagesAsync (string jobId, Microsoft.Azure.Batch.Protocol.Models.JobPatchParameter jobPatchParameter, Microsoft.Azure.Batch.Protocol.Models.JobPatchOptions jobPatchOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PatchWithHttpMessagesAsync : string * Microsoft.Azure.Batch.Protocol.Models.JobPatchParameter * Microsoft.Azure.Batch.Protocol.Models.JobPatchOptions * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.JobPatchHeaders>>
Public Function PatchWithHttpMessagesAsync (jobId As String, jobPatchParameter As JobPatchParameter, Optional jobPatchOptions As JobPatchOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of JobPatchHeaders))

Parámetros

jobId
String

Identificador del trabajo cuyas propiedades desea actualizar.

jobPatchParameter
JobPatchParameter

Parámetros de la solicitud.

jobPatchOptions
JobPatchOptions

Parámetros adicionales para la operación

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando un parámetro obligatorio es NULL

Comentarios

Esto reemplaza solo las propiedades de trabajo especificadas en la solicitud. Por ejemplo, si el trabajo tiene restricciones y una solicitud no especifica el elemento constraints, el trabajo mantiene las restricciones existentes.

Se aplica a