@@ -34,7 +34,8 @@ option java_package = "com.google.cloud.run.v2";
34
34
// Cloud Run Execution Control Plane API.
35
35
service Executions {
36
36
option (google.api.default_host ) = "run.googleapis.com" ;
37
- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
37
+ option (google.api.oauth_scopes ) =
38
+ "https://www.googleapis.com/auth/cloud-platform" ;
38
39
39
40
// Gets information about an Execution.
40
41
rpc GetExecution (GetExecutionRequest ) returns (Execution ) {
@@ -53,7 +54,8 @@ service Executions {
53
54
}
54
55
55
56
// Deletes an Execution.
56
- rpc DeleteExecution (DeleteExecutionRequest ) returns (google .longrunning .Operation ) {
57
+ rpc DeleteExecution (DeleteExecutionRequest )
58
+ returns (google .longrunning .Operation ) {
57
59
option (google.api.http ) = {
58
60
delete : "/v2/{name=projects/*/locations/*/jobs/*/executions/*}"
59
61
};
@@ -73,9 +75,7 @@ message GetExecutionRequest {
73
75
// where {project} can be project id or number.
74
76
string name = 1 [
75
77
(google.api.field_behavior ) = REQUIRED ,
76
- (google.api.resource_reference ) = {
77
- type : "run.googleapis.com/Execution"
78
- }
78
+ (google.api.resource_reference ) = { type : "run.googleapis.com/Execution" }
79
79
];
80
80
}
81
81
@@ -121,9 +121,7 @@ message DeleteExecutionRequest {
121
121
// where {project} can be project id or number.
122
122
string name = 1 [
123
123
(google.api.field_behavior ) = REQUIRED ,
124
- (google.api.resource_reference ) = {
125
- type : "run.googleapis.com/Execution"
126
- }
124
+ (google.api.resource_reference ) = { type : "run.googleapis.com/Execution" }
127
125
];
128
126
129
127
// Indicates that the request should be validated without actually
@@ -148,8 +146,9 @@ message Execution {
148
146
// Output only. The unique name of this Execution.
149
147
string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
150
148
151
- // Output only. Server assigned unique identifier for the Execution. The value is a UUID4
152
- // string and guaranteed to remain unchanged until the resource is deleted.
149
+ // Output only. Server assigned unique identifier for the Execution. The value
150
+ // is a UUID4 string and guaranteed to remain unchanged until the resource is
151
+ // deleted.
153
152
string uid = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
154
153
155
154
// Output only. A number that monotonically increases every time the user
@@ -162,39 +161,42 @@ message Execution {
162
161
// environment, state, etc. For more information, visit
163
162
// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
164
163
// https://cloud.google.com/run/docs/configuring/labels
165
- // Cloud Run will populate some labels with 'run.googleapis.com' or
166
- // 'serving.knative.dev' namespaces. Those labels are read-only, and user
167
- // changes will not be preserved.
168
164
map <string , string > labels = 4 ;
169
165
170
166
// KRM-style annotations for the resource.
171
167
map <string , string > annotations = 5 ;
172
168
173
- // Output only. Represents time when the execution was acknowledged by the execution
174
- // controller. It is not guaranteed to be set in happens-before order across
175
- // separate operations.
176
- google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
169
+ // Output only. Represents time when the execution was acknowledged by the
170
+ // execution controller. It is not guaranteed to be set in happens-before
171
+ // order across separate operations.
172
+ google.protobuf.Timestamp create_time = 6
173
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
177
174
178
175
// Output only. Represents time when the execution started to run.
179
176
// It is not guaranteed to be set in happens-before order across separate
180
177
// operations.
181
- google.protobuf.Timestamp start_time = 22 [(google.api.field_behavior ) = OUTPUT_ONLY ];
178
+ google.protobuf.Timestamp start_time = 22
179
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
182
180
183
- // Output only. Represents time when the execution was completed. It is not guaranteed to
184
- // be set in happens-before order across separate operations.
185
- google.protobuf.Timestamp completion_time = 7 [(google.api.field_behavior ) = OUTPUT_ONLY ];
181
+ // Output only. Represents time when the execution was completed. It is not
182
+ // guaranteed to be set in happens-before order across separate operations.
183
+ google.protobuf.Timestamp completion_time = 7
184
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
186
185
187
186
// Output only. The last-modified time.
188
- google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
187
+ google.protobuf.Timestamp update_time = 8
188
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
189
189
190
190
// Output only. For a deleted resource, the deletion time. It is only
191
191
// populated as a response to a Delete request.
192
- google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
192
+ google.protobuf.Timestamp delete_time = 9
193
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
193
194
194
195
// Output only. For a deleted resource, the time after which it will be
195
196
// permamently deleted. It is only populated as a response to a Delete
196
197
// request.
197
- google.protobuf.Timestamp expire_time = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
198
+ google.protobuf.Timestamp expire_time = 10
199
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
198
200
199
201
// Set the launch stage to a preview stage on write to allow use of preview
200
202
// features in that stage. On read, describes whether the resource uses
@@ -205,21 +207,19 @@ message Execution {
205
207
// Output only. The name of the parent Job.
206
208
string job = 12 [
207
209
(google.api.field_behavior ) = OUTPUT_ONLY ,
208
- (google.api.resource_reference ) = {
209
- type : "run.googleapis.com/Job"
210
- }
210
+ (google.api.resource_reference ) = { type : "run.googleapis.com/Job" }
211
211
];
212
212
213
- // Output only. Specifies the maximum desired number of tasks the execution should
214
- // run at any given time. Must be <= task_count. The actual number of
213
+ // Output only. Specifies the maximum desired number of tasks the execution
214
+ // should run at any given time. Must be <= task_count. The actual number of
215
215
// tasks running in steady state will be less than this number when
216
216
// ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
217
217
// the work left to do is less than max parallelism. More info:
218
218
// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
219
219
int32 parallelism = 13 [(google.api.field_behavior ) = OUTPUT_ONLY ];
220
220
221
- // Output only. Specifies the desired number of tasks the execution should run.
222
- // Setting to 1 means that parallelism is limited to 1 and the success of
221
+ // Output only. Specifies the desired number of tasks the execution should
222
+ // run. Setting to 1 means that parallelism is limited to 1 and the success of
223
223
// that task signals the success of the execution.
224
224
// More info:
225
225
// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
@@ -228,17 +228,20 @@ message Execution {
228
228
// Output only. The template used to create tasks for this execution.
229
229
TaskTemplate template = 15 [(google.api.field_behavior ) = OUTPUT_ONLY ];
230
230
231
- // Output only. Indicates whether the resource's reconciliation is still in progress.
232
- // See comments in `Job.reconciling` for additional information on
231
+ // Output only. Indicates whether the resource's reconciliation is still in
232
+ // progress. See comments in `Job.reconciling` for additional information on
233
233
// reconciliation process in Cloud Run.
234
234
bool reconciling = 16 [(google.api.field_behavior ) = OUTPUT_ONLY ];
235
235
236
- // Output only. The Condition of this Execution, containing its readiness status, and
237
- // detailed error information in case it did not reach the desired state.
238
- repeated Condition conditions = 17 [(google.api.field_behavior ) = OUTPUT_ONLY ];
236
+ // Output only. The Condition of this Execution, containing its readiness
237
+ // status, and detailed error information in case it did not reach the desired
238
+ // state.
239
+ repeated Condition conditions = 17
240
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
239
241
240
- // Output only. The generation of this Execution. See comments in `reconciling` for
241
- // additional information on reconciliation process in Cloud Run.
242
+ // Output only. The generation of this Execution. See comments in
243
+ // `reconciling` for additional information on reconciliation process in Cloud
244
+ // Run.
242
245
int64 observed_generation = 18 [(google.api.field_behavior ) = OUTPUT_ONLY ];
243
246
244
247
// Output only. The number of actively running tasks.
@@ -250,6 +253,16 @@ message Execution {
250
253
// Output only. The number of tasks which reached phase Failed.
251
254
int32 failed_count = 21 [(google.api.field_behavior ) = OUTPUT_ONLY ];
252
255
256
+ // Output only. The number of tasks which reached phase Cancelled.
257
+ int32 cancelled_count = 24 [(google.api.field_behavior ) = OUTPUT_ONLY ];
258
+
259
+ // Output only. The number of tasks which have retried at least once.
260
+ int32 retried_count = 25 [(google.api.field_behavior ) = OUTPUT_ONLY ];
261
+
262
+ // Output only. URI where logs for this execution can be found in Cloud
263
+ // Console.
264
+ string log_uri = 26 [(google.api.field_behavior ) = OUTPUT_ONLY ];
265
+
253
266
// Output only. A system-generated fingerprint for this version of the
254
267
// resource. May be used to detect modification conflict during updates.
255
268
string etag = 99 [(google.api.field_behavior ) = OUTPUT_ONLY ];
0 commit comments