public sealed class UpdateJobRequest : IMessage<UpdateJobRequest>, IEquatable<UpdateJobRequest>, IDeepCloneable<UpdateJobRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha API class UpdateJobRequest.
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
The jobs.patch method can only be used while a job is in the QUEUED,
SCHEDULED, or RUNNING state and currently only supports increasing the
value of the first taskCount field in the job's taskGroups field.
Therefore, you must set the value of updateMask to taskGroups. Any
other job fields in the update request will be ignored.
For example, to update a job's taskCount to 2, set updateMask to
taskGroups and use the following request body:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUpdateJobRequest\u003c/code\u003e class is used to send requests to update a job within the Batch v1alpha API, and it is the latest version, alpha31.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateJobRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eJob\u003c/code\u003e, \u003ccode\u003eRequestId\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e, allowing users to specify the job to update, an optional request ID, and the fields to be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateMask\u003c/code\u003e property is required and can be used while a job is in the \u003ccode\u003eQUEUED\u003c/code\u003e, \u003ccode\u003eSCHEDULED\u003c/code\u003e, or \u003ccode\u003eRUNNING\u003c/code\u003e state to specify which fields to update, and it currently only supports increasing the \u003ccode\u003etaskCount\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors \u003ccode\u003eUpdateJobRequest()\u003c/code\u003e and \u003ccode\u003eUpdateJobRequest(UpdateJobRequest other)\u003c/code\u003e, allowing the initialization of the object either with no parameters, or another pre-existing \u003ccode\u003eUpdateJobRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]