Skip to content

Commit ef19b7b

Browse files
Google APIscopybara-github
authored andcommitted
feat: add fields and messages for Cloud Run jobs
PiperOrigin-RevId: 920960697
1 parent 1742af7 commit ef19b7b

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

google/cloud/networkmanagement/v1beta1/connectivity_test.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ message Endpoint {
267267
// Applicable only to source endpoint.
268268
CloudRunRevisionEndpoint cloud_run_revision = 12;
269269

270+
// A [Cloud Run](https://cloud.google.com/run)
271+
// [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
272+
// URI.
273+
// Applicable only to source endpoint.
274+
// The format is: projects/{project}/locations/{location}/jobs/{job}
275+
string cloud_run_job = 24;
276+
270277
// A VPC network URI. For source endpoints, used according to the
271278
// `network_type`. For destination endpoints, used only when the source is an
272279
// external IP address endpoint, and the destination is an internal IP address

google/cloud/networkmanagement/v1beta1/trace.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ message Step {
118118
// A CloudRunRevisionInfo is populated with starting revision information.
119119
START_FROM_CLOUD_RUN_REVISION = 26;
120120

121+
// Initial state: packet originating from a Cloud Run Job.
122+
// A CloudRunJobInfo is populated with starting Job information.
123+
START_FROM_CLOUD_RUN_JOB = 50;
124+
121125
// Initial state: packet originating from a Storage Bucket. Used only for
122126
// return traces.
123127
// The storage_bucket information is populated.
@@ -353,6 +357,9 @@ message Step {
353357
// Display information of a Cloud Run revision.
354358
CloudRunRevisionInfo cloud_run_revision = 23;
355359

360+
// Display information of a Cloud Run job.
361+
CloudRunJobInfo cloud_run_job = 45;
362+
356363
// Display information of a NAT.
357364
NatInfo nat = 25;
358365

@@ -1155,6 +1162,9 @@ message DeliverInfo {
11551162

11561163
// Target is a GKE Pod.
11571164
GKE_POD = 19;
1165+
1166+
// Target is a Cloud Run Job. Used only for return traces.
1167+
CLOUD_RUN_JOB = 20;
11581168
}
11591169

11601170
// Recognized type of a Google Service.
@@ -1714,6 +1724,9 @@ message DropInfo {
17141724
// Packet sent from a Cloud Run revision that is not ready.
17151725
CLOUD_RUN_REVISION_NOT_READY = 29;
17161726

1727+
// Packet sent from a Cloud Run job that is not ready.
1728+
CLOUD_RUN_JOB_NOT_READY = 113;
1729+
17171730
// Packet was dropped inside Private Service Connect service producer.
17181731
DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37;
17191732

@@ -2121,6 +2134,18 @@ message CloudRunRevisionInfo {
21212134
string service_uri = 5;
21222135
}
21232136

2137+
// For display only. Metadata associated with a Cloud Run job.
2138+
message CloudRunJobInfo {
2139+
// Name of a Cloud Run job.
2140+
string display_name = 1;
2141+
2142+
// URI of a Cloud Run job.
2143+
string uri = 2;
2144+
2145+
// Location in which this job is deployed.
2146+
string location = 3;
2147+
}
2148+
21242149
// For display only. Metadata associated with an App Engine version.
21252150
message AppEngineVersionInfo {
21262151
// Name of an App Engine version.

0 commit comments

Comments
 (0)