Compartir a través de


IJobOperations.UpdateWithHttpMessagesAsync Método

Definición

Novedades las propiedades del trabajo especificado.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.JobUpdateHeaders>> UpdateWithHttpMessagesAsync (string jobId, Microsoft.Azure.Batch.Protocol.Models.JobUpdateParameter jobUpdateParameter, Microsoft.Azure.Batch.Protocol.Models.JobUpdateOptions jobUpdateOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWithHttpMessagesAsync : string * Microsoft.Azure.Batch.Protocol.Models.JobUpdateParameter * Microsoft.Azure.Batch.Protocol.Models.JobUpdateOptions * 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.JobUpdateHeaders>>
Public Function UpdateWithHttpMessagesAsync (jobId As String, jobUpdateParameter As JobUpdateParameter, Optional jobUpdateOptions As JobUpdateOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of JobUpdateHeaders))

Parámetros

jobId
String

Identificador del trabajo cuyas propiedades desea actualizar.

jobUpdateParameter
JobUpdateParameter

Parámetros de la solicitud.

jobUpdateOptions
JobUpdateOptions

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 por completo todas las propiedades actualizables del trabajo. Por ejemplo, si el trabajo tiene restricciones asociadas y si no se especifican restricciones con esta solicitud, el servicio Batch quitará las restricciones existentes.

Se aplica a