@@ -75,6 +75,15 @@ service BatchService {
7575 };
7676 }
7777
78+ // Update a Job.
79+ rpc UpdateJob (UpdateJobRequest ) returns (Job ) {
80+ option (google.api.http ) = {
81+ patch : "/v1alpha/{job.name=projects/*/locations/*/jobs/*}"
82+ body : "job"
83+ };
84+ option (google.api.method_signature ) = "job,update_mask" ;
85+ }
86+
7887 // List all Jobs for a project within a region.
7988 rpc ListJobs (ListJobsRequest ) returns (ListJobsResponse ) {
8089 option (google.api.http ) = {
@@ -224,6 +233,38 @@ message DeleteJobRequest {
224233 string request_id = 4 [(google.api.field_behavior ) = OPTIONAL ];
225234}
226235
236+ // UpdateJob Request.
237+ message UpdateJobRequest {
238+ // Required. The Job to update.
239+ // Only fields specified in `update_mask` are updated.
240+ Job job = 1 [(google.api.field_behavior ) = REQUIRED ];
241+
242+ // Required. Mask of fields to update.
243+ //
244+ // UpdateJob request now only supports update on `task_count` field in a job's
245+ // first task group. Other fields will be ignored.
246+ google.protobuf.FieldMask update_mask = 2
247+ [(google.api.field_behavior ) = REQUIRED ];
248+
249+ // Optional. An optional request ID to identify requests. Specify a unique
250+ // request ID so that if you must retry your request, the server will know to
251+ // ignore the request if it has already been completed. The server will
252+ // guarantee that for at least 60 minutes after the first request.
253+ //
254+ // For example, consider a situation where you make an initial request and
255+ // the request times out. If you make the request again with the same request
256+ // ID, the server can check if original operation with the same request ID
257+ // was received, and if so, will ignore the second request. This prevents
258+ // clients from accidentally creating duplicate commitments.
259+ //
260+ // The request ID must be a valid UUID with the exception that zero UUID is
261+ // not supported (00000000-0000-0000-0000-000000000000).
262+ string request_id = 3 [
263+ (google.api.field_info ).format = UUID4 ,
264+ (google.api.field_behavior ) = OPTIONAL
265+ ];
266+ }
267+
227268// ListJob Request.
228269message ListJobsRequest {
229270 // Parent path.
0 commit comments