From 2112f6e41a8927f5ec2911b943100c2cc5be034c Mon Sep 17 00:00:00 2001 From: "app-token-modules[bot]" Date: Mon, 9 Nov 2026 13:08:19 +0000 Subject: [PATCH] Detected new managed modules references --- ...8b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 | 62 ++ ...403c730704a1211c48f91aabb142998d125283dbd4 | 359 ++++++++++++ ...1ae45fa976f257998872246ab68758cea916fb0726 | 176 ++++++ ...10d8d6d4d2c598f891123d909a892cf53f7b2e87ba | 149 +++++ ...76bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc | 301 ++++++++++ ...b3f2936606f9433b96a3e6dc6730f2acafd140492a | 539 +++++++++++++++++ ...c419544e7370e8967f2019971482777e8cc94df3b2 | 119 ++++ ...1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 | 352 +++++++++++ ...25ebd94f76e4d90c05abed5dd049cbf65169ebe807 | 88 +++ ...5a0e88eded30c5240fb2b074035aefe69698f6c00a | 83 +++ ...bff78a6f60b8f766cdbc3d79b3fdf90052950bad3a | 495 ++++++++++++++++ ...41b256500d39f8dd1dec17509c2055d7abb6661a3b | 324 +++++++++++ ...df81c544c68b26ece8ebed899dc4d847d4cd00f112 | 547 +++++++++++++++++ ...0b6a4630a7d82a6b1770f432e5c8a5e5950131a047 | 21 + ...3673c6586c49b020152d445acba10beb97643602a0 | 550 ++++++++++++++++++ ...ddd4a2935e2e4df5f8eee86e3a190de4864ac718df | 246 ++++++++ modules/sync/googleapis/cloud-run/state.json | 4 + modules/sync/state.json | 2 +- 18 files changed, 4416 insertions(+), 1 deletion(-) create mode 100644 modules/sync/googleapis/cloud-run/cas/086e3c453769797173f38eb86222d345ade99b810d93835a4c0038569e68100f4e93e86b1b8550cd8f18848b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 create mode 100644 modules/sync/googleapis/cloud-run/cas/2b7c594ce50442a72719c1d5c2ba8475b7679f116b2b038eef8a3b11c07e0fc39f694a7daf6a2935ed9006403c730704a1211c48f91aabb142998d125283dbd4 create mode 100644 modules/sync/googleapis/cloud-run/cas/34059f7475f01183c45cf163f5f8297685b0ac0e2801050524391a5c054af3363be613e4be74acba0015401ae45fa976f257998872246ab68758cea916fb0726 create mode 100644 modules/sync/googleapis/cloud-run/cas/50f2143eb5ad4c14e6843770bff5e7018badc8c150de23a2b4059f75eacc860c02cb01d8a986ef0c9a7d3110d8d6d4d2c598f891123d909a892cf53f7b2e87ba create mode 100644 modules/sync/googleapis/cloud-run/cas/62ca1462a69e79198d0771045c254f69a76406302eec0c6a654823e542793e11ff7e4d3f81cdd596f9019076bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc create mode 100644 modules/sync/googleapis/cloud-run/cas/76ff019594d3fde7f0c8dadc4fd651cdc8ede45b49f539d0c90cdc01472871a1c5fbfbed60dfdc8236ee01b3f2936606f9433b96a3e6dc6730f2acafd140492a create mode 100644 modules/sync/googleapis/cloud-run/cas/a0fd7f673f245b16042556fa97f53df3cc03fea5b79ea7be50b297538a7011469494cdc74725d8f35c3f52c419544e7370e8967f2019971482777e8cc94df3b2 create mode 100644 modules/sync/googleapis/cloud-run/cas/a28343e93300342b4124c1d44114bc504c693c827ab05b180b0a881d07e593e663034541116d85349636af1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 create mode 100644 modules/sync/googleapis/cloud-run/cas/aa755fd6b0a1038e5244f82a8cbcd3cbd692606fd593c5c235657f2df9810ac7aa1df030300a37b05be95425ebd94f76e4d90c05abed5dd049cbf65169ebe807 create mode 100644 modules/sync/googleapis/cloud-run/cas/b44ffa7d32e62481a6a288c43a390b1d6143392b3ccf99c8b2b0c6913ba9758ece8de3808d560be40e7e015a0e88eded30c5240fb2b074035aefe69698f6c00a create mode 100644 modules/sync/googleapis/cloud-run/cas/b47695b37ba25c156eb31151eb5783557f5aba7079d5bd29cce834854ec770474b32bd68b82800c486f00fbff78a6f60b8f766cdbc3d79b3fdf90052950bad3a create mode 100644 modules/sync/googleapis/cloud-run/cas/b6f59cabee372d172efa92f8e735c92ffa98ef6fb23f7190ee5a4efd4c87d240986cad52191483051c012a41b256500d39f8dd1dec17509c2055d7abb6661a3b create mode 100644 modules/sync/googleapis/cloud-run/cas/b75b8d50d9695528a86fbd1e48361f15491f13c25882aa2276ef2a526dfd1e1859d71d42ec0a73f60dfe37df81c544c68b26ece8ebed899dc4d847d4cd00f112 create mode 100644 modules/sync/googleapis/cloud-run/cas/b80dad4c5e0398395a7cf8ca4e4a8f12d77a15116c56d61447fed79bb09d441881f2e7b45ec9876408d2980b6a4630a7d82a6b1770f432e5c8a5e5950131a047 create mode 100644 modules/sync/googleapis/cloud-run/cas/c764bd65c872bd2469bd4f5ac628c57dd85ebfed088705e21449deb7df154dd3af7b14cc580a35a53957453673c6586c49b020152d445acba10beb97643602a0 create mode 100644 modules/sync/googleapis/cloud-run/cas/fc38d2e7121293372ccddb1aa6e0583b68ca2f4f3f5c710f59fbb0f1076d51145d01ac9408cedee5eb2146ddd4a2935e2e4df5f8eee86e3a190de4864ac718df diff --git a/modules/sync/googleapis/cloud-run/cas/086e3c453769797173f38eb86222d345ade99b810d93835a4c0038569e68100f4e93e86b1b8550cd8f18848b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 b/modules/sync/googleapis/cloud-run/cas/086e3c453769797173f38eb86222d345ade99b810d93835a4c0038569e68100f4e93e86b1b8550cd8f18848b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 new file mode 100644 index 00000000..4769bc0b --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/086e3c453769797173f38eb86222d345ade99b810d93835a4c0038569e68100f4e93e86b1b8550cd8f18848b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/cloud/run/v2/k8s.min.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "SandboxProto"; +option java_package = "com.google.cloud.run.v2"; + +// Configuration for sandboxes. +message SandboxConfiguration { + // Required. Sandbox templates that can be launched through the `sandbox` CLI. + repeated SandboxTemplate templates = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Template for a single sandbox. +message SandboxTemplate { + // Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123). + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the container image in Dockerhub or Artifact Registry. If + // the host is not provided, Dockerhub is assumed. + string image = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Entrypoint array. Not executed within a shell. + // The docker image's ENTRYPOINT is used if this is not provided. + repeated string command = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + repeated string args = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of environment variables to set in the sandbox. + repeated EnvVar env = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Volume to mount into the container's filesystem. + repeated VolumeMount volume_mounts = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Container's working directory. + // If not specified, the container runtime's default will be used, which + // might be configured in the container image. + string working_dir = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/2b7c594ce50442a72719c1d5c2ba8475b7679f116b2b038eef8a3b11c07e0fc39f694a7daf6a2935ed9006403c730704a1211c48f91aabb142998d125283dbd4 b/modules/sync/googleapis/cloud-run/cas/2b7c594ce50442a72719c1d5c2ba8475b7679f116b2b038eef8a3b11c07e0fc39f694a7daf6a2935ed9006403c730704a1211c48f91aabb142998d125283dbd4 new file mode 100644 index 00000000..2f223240 --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/2b7c594ce50442a72719c1d5c2ba8475b7679f116b2b038eef8a3b11c07e0fc39f694a7daf6a2935ed9006403c730704a1211c48f91aabb142998d125283dbd4 @@ -0,0 +1,359 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "VendorSettingsProto"; +option java_package = "com.google.cloud.run.v2"; +option (google.api.resource_definition) = { + type: "binaryauthorization.googleapis.com/Policy" + pattern: "projects/{project}/policy" + pattern: "locations/{location}/policy" +}; +option (google.api.resource_definition) = { + type: "networkservices.googleapis.com/Mesh" + pattern: "projects/{project}/locations/{location}/meshes/{mesh}" +}; +option (google.api.resource_definition) = { + type: "cloudbuild.googleapis.com/Build" + pattern: "projects/{project}/locations/{location}/builds/{build}" +}; + +// VPC Access settings. For more information on sending traffic to a VPC +// network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. +message VpcAccess { + // Egress options for VPC access. + enum VpcEgress { + // Unspecified + VPC_EGRESS_UNSPECIFIED = 0; + + // All outbound traffic is routed through the VPC connector. + ALL_TRAFFIC = 1; + + // Only private IP ranges are routed through the VPC connector. + PRIVATE_RANGES_ONLY = 2; + } + + // Direct VPC egress settings. + message NetworkInterface { + // Optional. The VPC network that the Cloud Run resource will be able to + // send traffic to. At least one of network or subnetwork must be specified. + // If both network and subnetwork are specified, the given VPC subnetwork + // must belong to the given VPC network. If network is not specified, it + // will be looked up from the subnetwork. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The VPC subnetwork that the Cloud Run resource will get IPs + // from. At least one of network or subnetwork must be specified. If both + // network and subnetwork are specified, the given VPC subnetwork must + // belong to the given VPC network. If subnetwork is not specified, the + // subnetwork with the same name with the network will be used. + string subnetwork = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Network tags applied to this Cloud Run resource. + repeated string tags = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // VPC Access connector name. + // Format: `projects/{project}/locations/{location}/connectors/{connector}`, + // where `{project}` can be project id or number. + // For more information on sending traffic to a VPC network via a connector, + // visit https://cloud.google.com/run/docs/configuring/vpc-connectors. + string connector = 1 [(google.api.resource_reference) = { + type: "vpcaccess.googleapis.com/Connector" + }]; + + // Optional. Traffic VPC egress settings. If not provided, it defaults to + // PRIVATE_RANGES_ONLY. + VpcEgress egress = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Direct VPC egress settings. Currently only single network + // interface is supported. + repeated NetworkInterface network_interfaces = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for Binary Authorization feature. +message BinaryAuthorization { + oneof binauthz_method { + // Optional. If True, indicates to use the default project's binary + // authorization policy. If False, binary authorization will be disabled. + bool use_default = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The path to a binary authorization policy. + // Format: `projects/{project}/platforms/cloudRun/{policy-name}` + string policy = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "binaryauthorization.googleapis.com/Policy" + } + ]; + } + + // Optional. If present, indicates to use Breakglass using this justification. + // If use_default is False, then it must be empty. + // For more information on breakglass, see + // https://cloud.google.com/binary-authorization/docs/using-breakglass + string breakglass_justification = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for revision-level scaling settings. +message RevisionScaling { + // Optional. Minimum number of serving instances that this resource should + // have. + int32 min_instance_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of serving instances that this resource should + // have. When unspecified, the field is set to the server default value of + // 100. For more information see + // https://cloud.google.com/run/docs/configuring/max-instances + int32 max_instance_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines a threshold for CPU utilization before scaling begins. + // Accepted values are between `0.1` and `0.90` (inclusive) or `0.0` to + // disable CPU utilization as threshold for scaling. CPU and concurrency + // scaling cannot both be disabled. + optional float cpu_utilization = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines a threshold for concurrency utilization before scaling + // begins. Accepted values are between `0.1` and `0.95` (inclusive) or `0.0` + // to disable concurrency utilization as threshold for scaling. CPU and + // concurrency scaling cannot both be disabled. + optional float concurrency_utilization = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for Cloud Service Mesh. For more information see +// https://cloud.google.com/service-mesh/docs/overview. +message ServiceMesh { + // The Mesh resource name. Format: + // `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can + // be project id or number. + string mesh = 1 [(google.api.resource_reference) = { + type: "networkservices.googleapis.com/Mesh" + }]; +} + +// The ambient networking scopes of the instance. +enum AmbientScope { + // Unspecified. + AMBIENT_SCOPE_UNSPECIFIED = 0; + + // Regional ambient networking. + AMBIENT_SCOPE_REGIONAL = 1; + + // Global ambient networking. + AMBIENT_SCOPE_GLOBAL = 2; +} + +// Configuration for Ambient Networking. +message AmbientNetworking { + // Optional. Whether ambient networking is enabled. + optional bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // The ambient networking scope of the instance. + AmbientScope ambient_scope = 2; +} + +// Scaling settings applied at the service level rather than +// at the revision level. +message ServiceScaling { + // The scaling mode for the service. If not provided, it defaults to + // AUTOMATIC. + enum ScalingMode { + // Unspecified. + SCALING_MODE_UNSPECIFIED = 0; + + // Scale based on traffic between min and max instances. + AUTOMATIC = 1; + + // Scale to exactly min instances and ignore max instances. + MANUAL = 2; + } + + // Optional. total min instances for the service. This number of instances is + // divided among all revisions with specified traffic based on the percent + // of traffic they are receiving. + int32 min_instance_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The scaling mode for the service. + ScalingMode scaling_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. total max instances for the service. This number of instances is + // divided among all revisions with specified traffic based on the percent + // of traffic they are receiving. + int32 max_instance_count = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. total instance count for the service in manual scaling mode. This + // number of instances is divided among all revisions with specified traffic + // based on the percent of traffic they are receiving. + optional int32 manual_instance_count = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Worker pool scaling settings. +message WorkerPoolScaling { + // Optional. The total number of instances in manual scaling mode. + optional int32 manual_instance_count = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Hardware constraints configuration. +message NodeSelector { + // Required. GPU accelerator type to attach to an instance. + string accelerator = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Describes the Build step of the function that builds a container from the +// given source. +message BuildConfig { + // Output only. The Cloud Build name of the latest successful deployment of + // the function. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Build" + } + ]; + + // The Cloud Storage bucket URI where the function source code is located. + string source_location = 2; + + // Optional. The name of the function (as defined in source code) that will be + // executed. Defaults to the resource name suffix, if not specified. For + // backward compatibility, if function with given name is not found, then the + // system will try to use function named "function". + string function_target = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Artifact Registry URI to store the built image. + string image_uri = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The base image used to build the function. + string base_image = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sets whether the function will receive automatic base image + // updates. + bool enable_automatic_updates = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the Cloud Build private pool that should be used to build + // the Cloud Run function. The format of this field is + // `projects/{project}/locations/{region}/workerPools/{workerPool}` where + // `{project}` and `{region}` are the project id and region respectively where + // the worker pool is defined and `{workerPool}` is the short name of the + // worker pool. + string worker_pool = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/BuildWorkerPool" + } + ]; + + // Optional. User-provided build-time environment variables for the function + map environment_variables = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service account to be used for building the container. The format + // of this field is + // `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`. + string service_account = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Allowed ingress traffic for the Container. +enum IngressTraffic { + // Unspecified + INGRESS_TRAFFIC_UNSPECIFIED = 0; + + // All inbound traffic is allowed. + INGRESS_TRAFFIC_ALL = 1; + + // Only internal traffic is allowed. + INGRESS_TRAFFIC_INTERNAL_ONLY = 2; + + // Both internal and Google Cloud Load Balancer traffic is allowed. + INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER = 3; + + // No ingress traffic is allowed. + INGRESS_TRAFFIC_NONE = 4; +} + +// Alternatives for execution environments. +enum ExecutionEnvironment { + // Unspecified + EXECUTION_ENVIRONMENT_UNSPECIFIED = 0; + + // Uses the First Generation environment. + EXECUTION_ENVIRONMENT_GEN1 = 1; + + // Uses Second Generation environment. + EXECUTION_ENVIRONMENT_GEN2 = 2; +} + +// Specifies behavior if an encryption key used by a resource is revoked. +enum EncryptionKeyRevocationAction { + // Unspecified + ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED = 0; + + // Prevents the creation of new instances. + PREVENT_NEW = 1; + + // Shuts down existing instances, and prevents creation of new ones. + SHUTDOWN = 2; +} + +// Identity type. +enum IdentityType { + // Unspecified + IDENTITY_TYPE_UNSPECIFIED = 0; + + // Service account identity. + IDENTITY_TYPE_SERVICE_ACCOUNT = 1; + + // Agent identity. + IDENTITY_TYPE_AGENT_IDENTITY = 3; +} + +// Workload identity settings. +message WorkloadIdentityConfig { + // Optional. The Revision's SPIFFE workload identity. Enables provisioning of + // SPIFFE workload certificates. + string identity = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of identity to use. + IdentityType identity_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls whether an instance receives a MWLID certificate. + // Corresponds to the intention of the original --[no-]identity-certificate + // flag. + optional bool identity_certificate_enabled = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the functional type. +enum FunctionalType { + // Specifies that the functional type is unspecified. + FUNCTIONAL_TYPE_UNSPECIFIED = 0; + + // Represents an AGENT functional type. + FUNCTIONAL_TYPE_AGENT = 1; + + // Represents an MCP_SERVER functional type. + FUNCTIONAL_TYPE_MCP_SERVER = 2; +} diff --git a/modules/sync/googleapis/cloud-run/cas/34059f7475f01183c45cf163f5f8297685b0ac0e2801050524391a5c054af3363be613e4be74acba0015401ae45fa976f257998872246ab68758cea916fb0726 b/modules/sync/googleapis/cloud-run/cas/34059f7475f01183c45cf163f5f8297685b0ac0e2801050524391a5c054af3363be613e4be74acba0015401ae45fa976f257998872246ab68758cea916fb0726 new file mode 100644 index 00000000..fe203c3f --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/34059f7475f01183c45cf163f5f8297685b0ac0e2801050524391a5c054af3363be613e4be74acba0015401ae45fa976f257998872246ab68758cea916fb0726 @@ -0,0 +1,176 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "BuildProto"; +option java_package = "com.google.cloud.run.v2"; +option (google.api.resource_definition) = { + type: "cloudbuild.googleapis.com/BuildWorkerPool" + pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}" +}; + +// Cloud Run Build Control Plane API +service Builds { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run"; + + // Submits a build in a given project. + rpc SubmitBuild(SubmitBuildRequest) returns (SubmitBuildResponse) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/builds:submit" + body: "*" + }; + } +} + +// Request message for submitting a Build. +message SubmitBuildRequest { + // Build the source using Docker. This means the source has a Dockerfile. + message DockerBuild {} + + // Build the source using Buildpacks. + message BuildpacksBuild { + // The runtime name, e.g. 'go113'. Leave blank for generic builds. + string runtime = 1 [deprecated = true]; + + // Optional. Name of the function target if the source is a function source. + // Required for function builds. + string function_target = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. cache_image_uri is the GCR/AR URL where the cache image will be + // stored. cache_image_uri is optional and omitting it will disable caching. + // This URL must be stable across builds. It is used to derive a + // build-specific temporary URL by substituting the tag with the build ID. + // The build will clean up the temporary image on a best-effort basis. + string cache_image_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The base image to use for the build. + string base_image = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-provided build-time environment variables. + map environment_variables = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the application container will be enrolled in + // automatic base image updates. When true, the application will be built on + // a scratch base image, so the base layers can be appended at run time. + bool enable_automatic_updates = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. project_descriptor stores the path to the project descriptor + // file. When empty, it means that there is no project descriptor file in + // the source. + string project_descriptor = 7 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The project and location to build in. Location must be a region, + // e.g., 'us-central1' or 'global' if the global builder is to be used. + // Format: + // `projects/{project}/locations/{location}` + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Location of source. + oneof source { + // Required. Source for the build. + StorageSource storage_source = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Artifact Registry URI to store the built image. + string image_uri = 3 [(google.api.field_behavior) = REQUIRED]; + + // Build type must be one of the following. + oneof build_type { + // Build the source using Buildpacks. + BuildpacksBuild buildpack_build = 4; + + // Build the source using Docker. This means the source has a Dockerfile. + DockerBuild docker_build = 5; + } + + // Optional. The service account to use for the build. If not set, the default + // Cloud Build service account for the project will be used. + string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the Cloud Build private pool that should be used to build + // the function. The format of this field is + // `projects/{project}/locations/{region}/workerPools/{workerPool}` where + // `{project}` and `{region}` are the project id and region respectively where + // the worker pool is defined and `{workerPool}` is the short name of the + // worker pool. + string worker_pool = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/BuildWorkerPool" + } + ]; + + // Optional. Additional tags to annotate the build. + repeated string tags = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The machine type from default pool to use for the build. If left + // blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 + // is supported. If worker_pool is set, this field will be ignored. + string machine_type = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The release track of the client that initiated the build request. + google.api.LaunchStage release_track = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The client that initiated the build request. + string client = 11 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for submitting a Build. +message SubmitBuildResponse { + // Cloud Build operation to be polled via CloudBuild API. + google.longrunning.Operation build_operation = 1; + + // URI of the base builder image in Artifact Registry being used in the build. + // Used to opt into automatic base image updates. + string base_image_uri = 2; + + // Warning message for the base image. + string base_image_warning = 3; +} + +// Location of the source in an archive file in Google Cloud Storage. +message StorageSource { + // Required. Google Cloud Storage bucket containing the source (see + // [Bucket Name + // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Google Cloud Storage object containing the source. + // + // This object must be a gzipped archive file (`.tar.gz`) containing source to + // build. + string object = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Google Cloud Storage generation for the object. If the generation + // is omitted, the latest generation will be used. + int64 generation = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/50f2143eb5ad4c14e6843770bff5e7018badc8c150de23a2b4059f75eacc860c02cb01d8a986ef0c9a7d3110d8d6d4d2c598f891123d909a892cf53f7b2e87ba b/modules/sync/googleapis/cloud-run/cas/50f2143eb5ad4c14e6843770bff5e7018badc8c150de23a2b4059f75eacc860c02cb01d8a986ef0c9a7d3110d8d6d4d2c598f891123d909a892cf53f7b2e87ba new file mode 100644 index 00000000..048f4d84 --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/50f2143eb5ad4c14e6843770bff5e7018badc8c150de23a2b4059f75eacc860c02cb01d8a986ef0c9a7d3110d8d6d4d2c598f891123d909a892cf53f7b2e87ba @@ -0,0 +1,149 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/sandbox.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "RevisionTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// RevisionTemplate describes the data a revision should have when created from +// a template. +message RevisionTemplate { + // Optional. The unique name for the revision. If this field is omitted, it + // will be automatically generated based on the Service name. + string revision = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Optional. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + //

Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 RevisionTemplate. + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unstructured key value map that may be set by external tools to + // store and arbitrary metadata. They are not queryable and should be + // preserved when modifying objects. + // + //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system annotations in v1 now + // have a corresponding field in v2 RevisionTemplate. + // + //

This field follows Kubernetes annotations' namespacing, limits, and + // rules. + map annotations = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Scaling settings for this Revision. + RevisionScaling scaling = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. VPC Access configuration to use for this Revision. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Max allowed time for an instance to respond to a request. + google.protobuf.Duration timeout = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Email address of the IAM service account associated with the + // revision of the service. The service account represents the identity of the + // running revision, and determines what permissions the revision has. If not + // provided, the revision will use the project's default service account. + string service_account = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Holds the list which define the units of execution for this + // Revision. + repeated Container containers = 10; + + // Optional. Configuration for sandboxes. + SandboxConfiguration sandboxes = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of Volumes to make available to containers. + repeated Volume volumes = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sandbox environment to host this Revision. + ExecutionEnvironment execution_environment = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 14 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + + // Optional. Sets the maximum number of requests that each serving instance + // can receive. If not specified or 0, concurrency defaults to 80 when + // requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`. + int32 max_instance_request_concurrency = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables service mesh connectivity. + ServiceMesh service_mesh = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action to take if the encryption key is revoked. + EncryptionKeyRevocationAction encryption_key_revocation_action = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If encryption_key_revocation_action is SHUTDOWN, the duration + // before shutting down all instances. The minimum increment is 1 hour. + google.protobuf.Duration encryption_key_shutdown_duration = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable session affinity. + bool session_affinity = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables health checking containers during deployment. + bool health_check_disabled = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The node selector for the revision template. + NodeSelector node_selector = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Revision's workload identity settings. + WorkloadIdentityConfig workload_identity_config = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if GPU zonal redundancy is disabled on this revision. + optional bool gpu_zonal_redundancy_disabled = 24 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary identifier for the API client. + string client = 28 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary version identifier for the API client. + string client_version = 29 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ambient networking configuration for this revision. + AmbientNetworking ambient_networking = 33 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/62ca1462a69e79198d0771045c254f69a76406302eec0c6a654823e542793e11ff7e4d3f81cdd596f9019076bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc b/modules/sync/googleapis/cloud-run/cas/62ca1462a69e79198d0771045c254f69a76406302eec0c6a654823e542793e11ff7e4d3f81cdd596f9019076bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc new file mode 100644 index 00000000..5b37219d --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/62ca1462a69e79198d0771045c254f69a76406302eec0c6a654823e542793e11ff7e4d3f81cdd596f9019076bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc @@ -0,0 +1,301 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/sandbox.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "TaskProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Task Control Plane API. +service Tasks { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Gets information about a Task. + rpc GetTask(GetTaskRequest) returns (Task) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Tasks from an Execution of a Job. + rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for obtaining a Task by its full name. +message GetTaskRequest { + // Required. The full name of the Task. + // Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Task" } + ]; +} + +// Request message for retrieving a list of Tasks. +message ListTasksRequest { + // Required. The Execution from which the Tasks should be listed. + // To list all Tasks across Executions of a Job, use "-" instead of Execution + // name. To list all Tasks across Jobs, use "-" instead of Job name. Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "run.googleapis.com/Task" } + ]; + + // Maximum number of Tasks to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListTasks. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Tasks. +message ListTasksResponse { + // The resulting list of Tasks. + repeated Task tasks = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListTasks request to continue. + string next_page_token = 2; +} + +// Task represents a single run of a container to completion. +message Task { + option (google.api.resource) = { + type: "run.googleapis.com/Task" + pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}" + style: DECLARATIVE_FRIENDLY + }; + + // Output only. The unique name of this Task. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server assigned unique identifier for the Task. The value is a + // UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the task was created by the system. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the task was scheduled to run by the + // system. It is not guaranteed to be set in happens-before order across + // separate operations. + google.protobuf.Timestamp scheduled_time = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the task started to run. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp start_time = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the Task was completed. It is not + // guaranteed to be set in happens-before order across separate operations. + google.protobuf.Timestamp completion_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the deletion time. It is only + // populated as a response to a Delete request. + google.protobuf.Timestamp delete_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. It is only populated as a response to a Delete + // request. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the parent Job. + string job = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; + + // Output only. The name of the parent Execution. + string execution = 13 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; + + // Holds the single container that defines the unit of execution for this + // task. + repeated Container containers = 14; + + // Configuration for sandboxes. + SandboxConfiguration sandboxes = 40; + + // A list of Volumes to make available to containers. + repeated Volume volumes = 15; + + // Number of retries allowed per Task, before marking this Task failed. + int32 max_retries = 16; + + // Max allowed time duration the Task may be active before the system will + // actively try to mark it failed and kill associated containers. This applies + // per attempt of a task, meaning each retry can run for the full timeout. + google.protobuf.Duration timeout = 17; + + // Email address of the IAM service account associated with the Task of a + // Job. The service account represents the identity of the + // running task, and determines what permissions the task has. If + // not provided, the task will use the project's default service account. + string service_account = 18; + + // The execution environment being used to host this Task. + ExecutionEnvironment execution_environment = 20; + + // Output only. Indicates whether the resource's reconciliation is still in + // progress. See comments in `Job.reconciling` for additional information on + // reconciliation process in Cloud Run. + bool reconciling = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Task, containing its readiness status, + // and detailed error information in case it did not reach the desired state. + repeated Condition conditions = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generation of this Task. See comments in `Job.reconciling` + // for additional information on reconciliation process in Cloud Run. + int64 observed_generation = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Index of the Task, unique per execution, and beginning at 0. + int32 index = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of times this Task was retried. + // Tasks are retried when they fail up to the maxRetries limit. + int32 retried = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Result of the last attempt of this Task. + TaskAttemptResult last_attempt_result = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reference to a customer managed encryption key (CMEK) to use + // to encrypt this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 28 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Output only. VPC Access configuration to use for this Task. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URI where logs for this execution can be found in Cloud + // Console. + string log_uri = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The node selector for the task. + NodeSelector node_selector = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. True if GPU zonal redundancy is disabled on this + // task. + optional bool gpu_zonal_redundancy_disabled = 37 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The Task's workload identity settings. + WorkloadIdentityConfig workload_identity_config = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Result of a task attempt. +message TaskAttemptResult { + // Output only. The status of this attempt. + // If the status code is OK, then the attempt succeeded. + google.rpc.Status status = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The exit code of this attempt. + // This may be unset if the container was unable to exit cleanly with a code + // due to some other failure. + // See status field for possible failure details. + // + // At most one of exit_code or term_signal will be set. + int32 exit_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Termination signal of the container. This is set to non-zero + // if the container is terminated by the system. + // + // At most one of exit_code or term_signal will be set. + int32 term_signal = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/76ff019594d3fde7f0c8dadc4fd651cdc8ede45b49f539d0c90cdc01472871a1c5fbfbed60dfdc8236ee01b3f2936606f9433b96a3e6dc6730f2acafd140492a b/modules/sync/googleapis/cloud-run/cas/76ff019594d3fde7f0c8dadc4fd651cdc8ede45b49f539d0c90cdc01472871a1c5fbfbed60dfdc8236ee01b3f2936606f9433b96a3e6dc6730f2acafd140492a new file mode 100644 index 00000000..105b9dec --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/76ff019594d3fde7f0c8dadc4fd651cdc8ede45b49f539d0c90cdc01472871a1c5fbfbed60dfdc8236ee01b3f2936606f9433b96a3e6dc6730f2acafd140492a @@ -0,0 +1,539 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/api/routing.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/revision_template.proto"; +import "google/cloud/run/v2/traffic_target.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Service Control Plane API +service Services { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Creates a new Service in a given project and location. + rpc CreateService(CreateServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/services" + body: "service" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent,service,service_id"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "Service" + }; + } + + // Gets information about a Service. + rpc GetService(GetServiceRequest) returns (Service) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/services/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists Services. Results are sorted by creation time, descending. + rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/services" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a Service. + rpc UpdateService(UpdateServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{service.name=projects/*/locations/*/services/*}" + body: "service" + }; + option (google.api.routing) = { + routing_parameters { + field: "service.name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "service"; + option (google.api.method_signature) = "service,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "Service" + }; + } + + // Deletes a Service. + // This will cause the Service to stop serving traffic and will delete all + // revisions. + rpc DeleteService(DeleteServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/services/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "Service" + }; + } + + // Gets the IAM Access Control policy currently in effect for the given + // Cloud Run Service. This result does not include any inherited policies. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy" + }; + } + + // Sets the IAM Access control policy for the specified Service. Overwrites + // any existing policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy" + body: "*" + }; + } + + // Returns permissions that a caller has on the specified Project. + // + // There are no permissions required for making this API call. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions" + body: "*" + }; + } +} + +// Request message for creating a Service. +message CreateServiceRequest { + // Required. The location and project in which this service should be created. + // Format: projects/{project}/locations/{location}, where {project} can be + // project id or number. Only lowercase characters, digits, and hyphens. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Service" + } + ]; + + // Required. The Service instance to create. + Service service = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The unique identifier for the Service. It must begin with letter, + // and cannot end with hyphen; must contain fewer than 50 characters. + // The name of the service becomes {parent}/services/{service_id}. + // If not provided, the server will generate a unique `service_id`. + string service_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or creating any resources. + bool validate_only = 4; +} + +// Request message for updating a service. +message UpdateServiceRequest { + // Optional. The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The Service to be updated. + Service service = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or updating any resources. + bool validate_only = 3; + + // Optional. If set to true, and if the Service does not exist, it will create + // a new one. The caller must have 'run.services.create' permissions if this + // is set to true and the Service does not exist. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, a new revision will be created from the template + // even if the system doesn't detect any changes from the previously deployed + // revision. + // + // This may be useful for cases where the underlying resources need to be + // recreated or reinitialized. For example if the image is specified by label, + // but the underlying image digest has changed) or if the container performs + // deployment initialization work that needs to be performed again. + bool force_new_revision = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for retrieving a list of Services. +message ListServicesRequest { + // Required. The location and project to list resources on. + // Location must be a valid Google Cloud region, and cannot be the "-" + // wildcard. Format: projects/{project}/locations/{location}, where {project} + // can be project id or number. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Service" + } + ]; + + // Maximum number of Services to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListServices. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Services. +message ListServicesResponse { + // The resulting list of Services. + repeated Service services = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListServices request to continue. + string next_page_token = 2; + + // Output only. For global requests, returns the list of regions that could + // not be reached within the deadline. + repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for obtaining a Service by its full name. +message GetServiceRequest { + // Required. The full name of the Service. + // Format: projects/{project}/locations/{location}/services/{service}, where + // {project} can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Service" } + ]; +} + +// Request message to delete a Service by its full name. +message DeleteServiceRequest { + // Required. The full name of the Service. + // Format: projects/{project}/locations/{location}/services/{service}, where + // {project} can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Service" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 3; +} + +// Service acts as a top-level container that manages a set of +// configurations and revision templates which implement a network service. +// Service exists to provide a singular abstraction which can be access +// controlled, reasoned about, and which encapsulates software lifecycle +// decisions such as rollout policy and team resource ownership. +message Service { + option (google.api.resource) = { + type: "run.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" + style: DECLARATIVE_FRIENDLY + }; + + // Settings for multi-region deployment. + message MultiRegionSettings { + // Required. List of regions to deploy to, including primary region. + repeated string regions = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. System-generated unique id for the multi-region Service. + string multi_region_id = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The fully qualified name of this Service. In + // CreateServiceRequest, this field is ignored, and instead composed from + // CreateServiceRequest.parent and CreateServiceRequest.service_id. + // + // Format: + // projects/{project}/locations/{location}/services/{service_id} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // User-provided description of the Service. This field currently has a + // 512-character limit. + string description = 2; + + // Output only. Server assigned unique identifier for the trigger. The value + // is a UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + // Please note that unlike v1, this is an int64 value. As with most Google + // APIs, its JSON representation will be a `string` instead of an `integer`. + int64 generation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + //

Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 Service. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unstructured key value map that may be set by external tools to + // store and arbitrary metadata. They are not queryable and should be + // preserved when modifying objects. + // + //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected in new resources. All system + // annotations in v1 now have a corresponding field in v2 Service. + // + //

This field follows Kubernetes + // annotations' namespacing, limits, and rules. + map annotations = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The deletion time. It is only populated as a response to a + // Delete request. + google.protobuf.Timestamp delete_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permanently deleted. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the authenticated creator. + string creator = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the last authenticated modifier. + string last_modifier = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Arbitrary identifier for the API client. + string client = 13; + + // Arbitrary version identifier for the API client. + string client_version = 14; + + // Optional. Provides the ingress settings for this Service. On output, + // returns the currently observed ingress settings, or + // INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. + IngressTraffic ingress = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The launch stage as defined by [Google Cloud Platform + // Launch Stages](https://cloud.google.com/terms/launch-stages). + // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA + // is assumed. + // Set the launch stage to a preview stage on input to allow use of preview + // features in that stage. On read (or output), describes whether the resource + // uses preview features. + // + // For example, if ALPHA is provided as input, but only BETA and GA-level + // features are used, this field will be BETA on output. + google.api.LaunchStage launch_stage = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for the Binary Authorization feature. + BinaryAuthorization binary_authorization = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The template used to create revisions for this Service. + RevisionTemplate template = 18 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies how to distribute traffic over a collection of + // Revisions belonging to the Service. If traffic is empty or not provided, + // defaults to 100% traffic to the latest `Ready` Revision. + repeated TrafficTarget traffic = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies service-level scaling settings + ServiceScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables IAM permission check for run.routes.invoke for callers + // of this service. For more information, visit + // https://cloud.google.com/run/docs/securing/managing-access#invoker_check. + bool invoker_iam_disabled = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disables public resolution of the default URI of this service. + bool default_uri_disabled = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. All URLs serving traffic for this Service. + repeated string urls = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. IAP settings on the Service. + bool iap_enabled = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables SSH access to the Service. + optional bool ssh_enabled = 29 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for multi-region deployment. + MultiRegionSettings multi_region_settings = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // One or more custom audiences that you want this service to support. Specify + // each custom audience as the full URL in a string. The custom audiences are + // encoded in the token and used to authenticate requests. For more + // information, see + // https://cloud.google.com/run/docs/configuring/custom-audiences. + repeated string custom_audiences = 37; + + // Output only. The generation of this Service currently serving traffic. See + // comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. Please note that unlike v1, this is an int64 value. + // As with most Google APIs, its JSON representation will be a `string` + // instead of an `integer`. + int64 observed_generation = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Service, containing its readiness + // status, and detailed error information in case it did not reach a serving + // state. See comments in `reconciling` for additional information on + // reconciliation process in Cloud Run. + Condition terminal_condition = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Conditions of all other associated sub-resources. They + // contain additional diagnostics information in case the Service does not + // reach its Serving state. See comments in `reconciling` for additional + // information on reconciliation process in Cloud Run. + repeated Condition conditions = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the latest revision that is serving traffic. See + // comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. + string latest_ready_revision = 33 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Output only. Name of the last created revision. See comments in + // `reconciling` for additional information on reconciliation process in Cloud + // Run. + string latest_created_revision = 34 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Output only. Detailed status information for corresponding traffic targets. + // See comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. + repeated TrafficTargetStatus traffic_statuses = 35 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The main URI in which this Service is serving traffic. + string uri = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if Cloud Run Threat Detection monitoring is enabled for + // the parent project of this Service. + bool threat_detection_enabled = 40 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for building a Cloud Run function. + BuildConfig build_config = 41 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The functional type of the Service. + FunctionalType functional_type = 42 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Returns true if the Service is currently being acted upon by + // the system to bring it into the desired state. + // + // When a new Service is created, or an existing one is updated, Cloud Run + // will asynchronously perform all necessary steps to bring the Service to the + // desired serving state. This process is called reconciliation. + // While reconciliation is in process, `observed_generation`, + // `latest_ready_revision`, `traffic_statuses`, and `uri` will have transient + // values that might mismatch the intended state: Once reconciliation is over + // (and this field is false), there are two possible outcomes: reconciliation + // succeeded and the serving state matches the Service, or there was an error, + // and reconciliation failed. This state can be found in + // `terminal_condition.state`. + // + // If reconciliation succeeded, the following fields will match: `traffic` and + // `traffic_statuses`, `observed_generation` and `generation`, + // `latest_ready_revision` and `latest_created_revision`. + // + // If reconciliation failed, `traffic_statuses`, `observed_generation`, and + // `latest_ready_revision` will have the state of the last serving revision, + // or empty for newly created Services. Additional information on the failure + // can be found in `terminal_condition` and `conditions`. + bool reconciling = 98 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/a0fd7f673f245b16042556fa97f53df3cc03fea5b79ea7be50b297538a7011469494cdc74725d8f35c3f52c419544e7370e8967f2019971482777e8cc94df3b2 b/modules/sync/googleapis/cloud-run/cas/a0fd7f673f245b16042556fa97f53df3cc03fea5b79ea7be50b297538a7011469494cdc74725d8f35c3f52c419544e7370e8967f2019971482777e8cc94df3b2 new file mode 100644 index 00000000..769e8dd8 --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/a0fd7f673f245b16042556fa97f53df3cc03fea5b79ea7be50b297538a7011469494cdc74725d8f35c3f52c419544e7370e8967f2019971482777e8cc94df3b2 @@ -0,0 +1,119 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/sandbox.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "WorkerPoolRevisionTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// WorkerPoolRevisionTemplate describes the data a worker pool revision should +// have when created from a template. +message WorkerPoolRevisionTemplate { + // Optional. The unique name for the revision. If this field is omitted, it + // will be automatically generated based on the WorkerPool name. + string revision = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Optional. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + // Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 WorkerPoolRevisionTemplate. + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unstructured key value map that may be set by external tools to + // store and arbitrary metadata. They are not queryable and should be + // preserved when modifying objects. + // + // Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system annotations in v1 now + // have a corresponding field in v2 WorkerPoolRevisionTemplate. + // + // This field follows Kubernetes annotations' namespacing, limits, and + // rules. + map annotations = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. VPC Access configuration to use for this Revision. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Email address of the IAM service account associated with the + // revision of the service. The service account represents the identity of the + // running revision, and determines what permissions the revision has. If not + // provided, the revision will use the project's default service account. + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Holds list of the containers that defines the unit of execution for this + // Revision. + repeated Container containers = 6; + + // Optional. Configuration for sandboxes. + SandboxConfiguration sandboxes = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of Volumes to make available to containers. + repeated Volume volumes = 7 [(google.api.field_behavior) = OPTIONAL]; + + // A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 8 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + + // Optional. Enables service mesh connectivity. + ServiceMesh service_mesh = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action to take if the encryption key is revoked. + EncryptionKeyRevocationAction encryption_key_revocation_action = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If encryption_key_revocation_action is SHUTDOWN, the duration + // before shutting down all instances. The minimum increment is 1 hour. + google.protobuf.Duration encryption_key_shutdown_duration = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The node selector for the revision template. + NodeSelector node_selector = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if GPU zonal redundancy is disabled on this worker pool. + optional bool gpu_zonal_redundancy_disabled = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary identifier for the API client. + string client = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary version identifier for the API client. + string client_version = 18 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/a28343e93300342b4124c1d44114bc504c693c827ab05b180b0a881d07e593e663034541116d85349636af1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 b/modules/sync/googleapis/cloud-run/cas/a28343e93300342b4124c1d44114bc504c693c827ab05b180b0a881d07e593e663034541116d85349636af1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 new file mode 100644 index 00000000..0fcecdb1 --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/a28343e93300342b4124c1d44114bc504c693c827ab05b180b0a881d07e593e663034541116d85349636af1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 @@ -0,0 +1,352 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/api/routing.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/sandbox.proto"; +import "google/cloud/run/v2/status.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "RevisionProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Revision Control Plane API. +service Revisions { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Gets information about a Revision. + rpc GetRevision(GetRevisionRequest) returns (Revision) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/services/*/revisions/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/workerPools/*/revisions/*}" + } + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists Revisions from a given Service, or from a given location. Results + // are sorted by creation time, descending. + rpc ListRevisions(ListRevisionsRequest) returns (ListRevisionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/services/*}/revisions" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/workerPools/*}/revisions" + } + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a Revision. + rpc DeleteRevision(DeleteRevisionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/services/*/revisions/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/workerPools/*/revisions/*}" + } + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Revision" + metadata_type: "Revision" + }; + } +} + +// Request message for obtaining a Revision by its full name. +message GetRevisionRequest { + // Required. The full name of the Revision. + // Format: + // projects/{project}/locations/{location}/services/{service}/revisions/{revision} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; +} + +// Request message for retrieving a list of Revisions. +message ListRevisionsRequest { + // Required. The Service from which the Revisions should be listed. + // To list all Revisions across Services, use "-" instead of Service name. + // Format: + // projects/{project}/locations/{location}/services/{service} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Revision" + } + ]; + + // Maximum number of revisions to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListRevisions. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Revisions. +message ListRevisionsResponse { + // The resulting list of Revisions. + repeated Revision revisions = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListRevisions request to continue. + string next_page_token = 2; +} + +// Request message for deleting a retired Revision. +// Revision lifecycle is usually managed by making changes to the parent +// Service. Only retired revisions can be deleted with this API. +message DeleteRevisionRequest { + // Required. The name of the Revision to delete. + // Format: + // projects/{project}/locations/{location}/services/{service}/revisions/{revision} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the + // resource. This may be used to detect modification conflict during updates. + string etag = 3; +} + +// A Revision is an immutable snapshot of code and configuration. A Revision +// references a container image. Revisions are only created by updates to its +// parent Service. +message Revision { + option (google.api.resource) = { + type: "run.googleapis.com/Revision" + pattern: "projects/{project}/locations/{location}/services/{service}/revisions/{revision}" + style: DECLARATIVE_FRIENDLY + }; + + // Output only. The unique name of this Revision. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server assigned unique identifier for the Revision. The value + // is a UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the deletion time. It is only + // populated as a response to a Delete request. + google.protobuf.Timestamp delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. It is only populated as a response to a Delete + // request. + google.protobuf.Timestamp expire_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The least stable launch stage needed to create this resource, as defined by + // [Google Cloud Platform Launch + // Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports + // `ALPHA`, `BETA`, and `GA`. + // + // Note that this value might not be what was used + // as input. For example, if ALPHA was provided as input in the parent + // resource, but only BETA and GA-level features are used, this field will be + // BETA. + google.api.LaunchStage launch_stage = 10; + + // Output only. The name of the parent service. + string service = 11 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Service" } + ]; + + // Scaling settings for this revision. + RevisionScaling scaling = 12; + + // VPC Access configuration for this Revision. For more information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 13; + + // Sets the maximum number of requests that each serving instance can receive. + int32 max_instance_request_concurrency = 34; + + // Max allowed time for an instance to respond to a request. + google.protobuf.Duration timeout = 15; + + // Email address of the IAM service account associated with the revision of + // the service. The service account represents the identity of the running + // revision, and determines what permissions the revision has. + string service_account = 16; + + // Holds the list which define the units of execution for this + // Revision. + repeated Container containers = 17; + + // Output only. Configuration for sandboxes. + SandboxConfiguration sandboxes = 56 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A list of Volumes to make available to containers. + repeated Volume volumes = 18; + + // The execution environment being used to host this Revision. + ExecutionEnvironment execution_environment = 20; + + // A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 21 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + + // Enables service mesh connectivity. + ServiceMesh service_mesh = 22; + + // The action to take if the encryption key is revoked. + EncryptionKeyRevocationAction encryption_key_revocation_action = 23; + + // If encryption_key_revocation_action is SHUTDOWN, the duration before + // shutting down all instances. The minimum increment is 1 hour. + google.protobuf.Duration encryption_key_shutdown_duration = 24; + + // Output only. Indicates whether the resource's reconciliation is still in + // progress. See comments in `Service.reconciling` for additional information + // on reconciliation process in Cloud Run. + bool reconciling = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Revision, containing its readiness + // status, and detailed error information in case it did not reach a serving + // state. + repeated Condition conditions = 31 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generation of this Revision currently serving traffic. See + // comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. + int64 observed_generation = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Google Console URI to obtain logs for the Revision. + string log_uri = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enable session affinity. + bool session_affinity = 38; + + // Output only. The current effective scaling settings for the revision. + RevisionScalingStatus scaling_status = 39 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The node selector for the revision. + NodeSelector node_selector = 40; + + // Optional. The Revision's workload identity settings. + WorkloadIdentityConfig workload_identity_config = 52 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. True if GPU zonal redundancy is disabled on this + // revision. + optional bool gpu_zonal_redundancy_disabled = 48 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Email address of the authenticated creator. + string creator = 49 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Arbitrary identifier for the API client. + string client = 53 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Arbitrary version identifier for the API client. + string client_version = 54 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ambient networking configuration for this revision. + AmbientNetworking ambient_networking = 59 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/aa755fd6b0a1038e5244f82a8cbcd3cbd692606fd593c5c235657f2df9810ac7aa1df030300a37b05be95425ebd94f76e4d90c05abed5dd049cbf65169ebe807 b/modules/sync/googleapis/cloud-run/cas/aa755fd6b0a1038e5244f82a8cbcd3cbd692606fd593c5c235657f2df9810ac7aa1df030300a37b05be95425ebd94f76e4d90c05abed5dd049cbf65169ebe807 new file mode 100644 index 00000000..38b9078c --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/aa755fd6b0a1038e5244f82a8cbcd3cbd692606fd593c5c235657f2df9810ac7aa1df030300a37b05be95425ebd94f76e4d90c05abed5dd049cbf65169ebe807 @@ -0,0 +1,88 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/sandbox.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "TaskTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// TaskTemplate describes the data a task should have when created +// from a template. +message TaskTemplate { + // Holds the single container that defines the unit of execution for this + // task. + repeated Container containers = 1; + + // Optional. Configuration for sandboxes. + SandboxConfiguration sandboxes = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of Volumes to make available to containers. + repeated Volume volumes = 2 [(google.api.field_behavior) = OPTIONAL]; + + oneof retries { + // Number of retries allowed per Task, before marking this Task failed. + // Defaults to 3. + int32 max_retries = 3; + } + + // Optional. Max allowed time duration the Task may be active before the + // system will actively try to mark it failed and kill associated containers. + // This applies per attempt of a task, meaning each retry can run for the full + // timeout. Defaults to 600 seconds. + google.protobuf.Duration timeout = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Email address of the IAM service account associated with the Task + // of a Job. The service account represents the identity of the running task, + // and determines what permissions the task has. If not provided, the task + // will use the project's default service account. + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The execution environment being used to host this Task. + ExecutionEnvironment execution_environment = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 7 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + + // Optional. VPC Access configuration to use for this Task. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The node selector for the task template. + NodeSelector node_selector = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if GPU zonal redundancy is disabled on this task template. + optional bool gpu_zonal_redundancy_disabled = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Task's workload identity settings. + WorkloadIdentityConfig workload_identity_config = 13 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/b44ffa7d32e62481a6a288c43a390b1d6143392b3ccf99c8b2b0c6913ba9758ece8de3808d560be40e7e015a0e88eded30c5240fb2b074035aefe69698f6c00a b/modules/sync/googleapis/cloud-run/cas/b44ffa7d32e62481a6a288c43a390b1d6143392b3ccf99c8b2b0c6913ba9758ece8de3808d560be40e7e015a0e88eded30c5240fb2b074035aefe69698f6c00a new file mode 100644 index 00000000..f9b0067f --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/b44ffa7d32e62481a6a288c43a390b1d6143392b3ccf99c8b2b0c6913ba9758ece8de3808d560be40e7e015a0e88eded30c5240fb2b074035aefe69698f6c00a @@ -0,0 +1,83 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/cloud/run/v2/task_template.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// ExecutionTemplate describes the data an execution should have when created +// from a template. +message ExecutionTemplate { + // Unstructured key value map that can be used to organize and categorize + // objects. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + //

Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 ExecutionTemplate. + map labels = 1; + + // Unstructured key value map that may be set by external tools to store and + // arbitrary metadata. They are not queryable and should be preserved + // when modifying objects. + // + //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system annotations in v1 now + // have a corresponding field in v2 ExecutionTemplate. + // + //

This field follows Kubernetes annotations' namespacing, limits, and + // rules. + map annotations = 2; + + // Optional. Specifies the maximum desired number of tasks the execution + // should run at given time. When the job is run, if this field is 0 or unset, + // the maximum possible value will be used for that execution. The actual + // number of tasks running in steady state will be less than this number when + // there are fewer tasks waiting to be completed remaining, i.e. when the work + // left to do is less than max parallelism. + int32 parallelism = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Specifies the desired number of tasks the execution should run. + // Setting to 1 means that parallelism is limited to 1 and the success of + // that task signals the success of the execution. Defaults to 1. + int32 task_count = 4; + + // Required. Describes the task(s) that will be created when executing an + // execution. + TaskTemplate template = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the system will start the execution within the next 12 + // hours depending on available capacity. + optional bool delay_execution = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary identifier for the API client. + string client = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary version identifier for the API client. + string client_version = 10 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/b47695b37ba25c156eb31151eb5783557f5aba7079d5bd29cce834854ec770474b32bd68b82800c486f00fbff78a6f60b8f766cdbc3d79b3fdf90052950bad3a b/modules/sync/googleapis/cloud-run/cas/b47695b37ba25c156eb31151eb5783557f5aba7079d5bd29cce834854ec770474b32bd68b82800c486f00fbff78a6f60b8f766cdbc3d79b3fdf90052950bad3a new file mode 100644 index 00000000..ffe00a9a --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/b47695b37ba25c156eb31151eb5783557f5aba7079d5bd29cce834854ec770474b32bd68b82800c486f00fbff78a6f60b8f766cdbc3d79b3fdf90052950bad3a @@ -0,0 +1,495 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/api/routing.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/instance_split.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/cloud/run/v2/worker_pool_revision_template.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "WorkerPoolProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run WorkerPool Control Plane API. +service WorkerPools { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Creates a new WorkerPool in a given project and location. + rpc CreateWorkerPool(CreateWorkerPoolRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/workerPools" + body: "worker_pool" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent,worker_pool,worker_pool_id"; + option (google.longrunning.operation_info) = { + response_type: "WorkerPool" + metadata_type: "WorkerPool" + }; + } + + // Gets information about a WorkerPool. + rpc GetWorkerPool(GetWorkerPoolRequest) returns (WorkerPool) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/workerPools/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists WorkerPools. Results are sorted by creation time, descending. + rpc ListWorkerPools(ListWorkerPoolsRequest) + returns (ListWorkerPoolsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/workerPools" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a WorkerPool. + rpc UpdateWorkerPool(UpdateWorkerPoolRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{worker_pool.name=projects/*/locations/*/workerPools/*}" + body: "worker_pool" + }; + option (google.api.routing) = { + routing_parameters { + field: "worker_pool.name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "worker_pool"; + option (google.api.method_signature) = "worker_pool,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "WorkerPool" + metadata_type: "WorkerPool" + }; + } + + // Deletes a WorkerPool. + rpc DeleteWorkerPool(DeleteWorkerPoolRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/workerPools/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "WorkerPool" + metadata_type: "WorkerPool" + }; + } + + // Gets the IAM Access Control policy currently in effect for the given + // Cloud Run WorkerPool. This result does not include any inherited policies. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy" + }; + } + + // Sets the IAM Access control policy for the specified WorkerPool. Overwrites + // any existing policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/workerPools/*}:setIamPolicy" + body: "*" + }; + } + + // Returns permissions that a caller has on the specified Project. + // + // There are no permissions required for making this API call. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/workerPools/*}:testIamPermissions" + body: "*" + }; + } +} + +// Request message for creating a WorkerPool. +message CreateWorkerPoolRequest { + // Required. The location and project in which this worker pool should be + // created. Format: `projects/{project}/locations/{location}`, where + // `{project}` can be project id or number. Only lowercase characters, digits, + // and hyphens. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/WorkerPool" + } + ]; + + // Required. The WorkerPool instance to create. + WorkerPool worker_pool = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The unique identifier for the WorkerPool. It must begin with + // letter, and cannot end with hyphen; must contain fewer than 50 characters. + // The name of the worker pool becomes + // `{parent}/workerPools/{worker_pool_id}`. + // If not provided, the server will generate a unique `worker_pool_id`. + string worker_pool_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates that the request should be validated and default values + // populated, without persisting the request or creating any resources. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for updating a worker pool. +message UpdateWorkerPoolRequest { + // Optional. The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The WorkerPool to be updated. + WorkerPool worker_pool = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates that the request should be validated and default values + // populated, without persisting the request or updating any resources. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, and if the WorkerPool does not exist, it will + // create a new one. The caller must have 'run.workerpools.create' permissions + // if this is set to true and the WorkerPool does not exist. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, a new revision will be created from the template + // even if the system doesn't detect any changes from the previously deployed + // revision. + // + // This may be useful for cases where the underlying resources need to be + // recreated or reinitialized. For example if the image is specified by label, + // but the underlying image digest has changed) or if the container performs + // deployment initialization work that needs to be performed again. + bool force_new_revision = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for retrieving a list of WorkerPools. +message ListWorkerPoolsRequest { + // Required. The location and project to list resources on. + // Location must be a valid Google Cloud region, and cannot be the "-" + // wildcard. Format: `projects/{project}/locations/{location}`, where + // `{project}` can be project id or number. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/WorkerPool" + } + ]; + + // Maximum number of WorkerPools to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListWorkerPools. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of WorkerPools. +message ListWorkerPoolsResponse { + // The resulting list of WorkerPools. + repeated WorkerPool worker_pools = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListWorkerPools request to continue. + string next_page_token = 2; +} + +// Request message for obtaining a WorkerPool by its full name. +message GetWorkerPoolRequest { + // Required. The full name of the WorkerPool. + // Format: + // `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where + // `{project}` can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/WorkerPool" } + ]; +} + +// Request message to delete a WorkerPool by its full name. +message DeleteWorkerPoolRequest { + // Required. The full name of the WorkerPool. + // Format: + // `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where + // `{project}` can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/WorkerPool" } + ]; + + // Optional. Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 3; +} + +// WorkerPool acts as a top-level container that manages a set of +// configurations and revision templates which implement a pull-based workload. +// WorkerPool exists to provide a singular abstraction which can be access +// controlled, reasoned about, and which encapsulates software lifecycle +// decisions such as rollout policy and team resource ownership. +message WorkerPool { + option (google.api.resource) = { + type: "run.googleapis.com/WorkerPool" + pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}" + plural: "workerPools" + singular: "workerPool" + style: DECLARATIVE_FRIENDLY + }; + + // The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest, + // this field is ignored, and instead composed from + // CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id. + // + // Format: + // `projects/{project}/locations/{location}/workerPools/{worker_id}` + string name = 1; + + // User-provided description of the WorkerPool. This field currently has a + // 512-character limit. + string description = 2; + + // Output only. Server assigned unique identifier for the trigger. The value + // is a UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + // Please note that unlike v1, this is an int64 value. As with most Google + // APIs, its JSON representation will be a `string` instead of an `integer`. + int64 generation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + // Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 WorkerPool. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unstructured key value map that may be set by external tools to + // store and arbitrary metadata. They are not queryable and should be + // preserved when modifying objects. + // + // Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected in new resources. All system + // annotations in v1 now have a corresponding field in v2 WorkerPool. + // + //

This field follows Kubernetes + // annotations' namespacing, limits, and rules. + map annotations = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The deletion time. It is only populated as a response to a + // Delete request. + google.protobuf.Timestamp delete_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the authenticated creator. + string creator = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the last authenticated modifier. + string last_modifier = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Arbitrary identifier for the API client. + string client = 13; + + // Arbitrary version identifier for the API client. + string client_version = 14; + + // Optional. The launch stage as defined by [Google Cloud Platform + // Launch Stages](https://cloud.google.com/terms/launch-stages). + // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA + // is assumed. + // Set the launch stage to a preview stage on input to allow use of preview + // features in that stage. On read (or output), describes whether the + // resource uses preview features. + // + // For example, if ALPHA is provided as input, but only BETA and GA-level + // features are used, this field will be BETA on output. + google.api.LaunchStage launch_stage = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for the Binary Authorization feature. + BinaryAuthorization binary_authorization = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The template used to create revisions for this WorkerPool. + WorkerPoolRevisionTemplate template = 18 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies how to distribute instances over a collection of + // Revisions belonging to the WorkerPool. If instance split is empty or not + // provided, defaults to 100% instances assigned to the latest `Ready` + // Revision. + repeated InstanceSplit instance_splits = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies worker-pool-level scaling settings + WorkerPoolScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The generation of this WorkerPool currently serving workloads. + // See comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. Please note that unlike v1, this is an int64 value. + // As with most Google APIs, its JSON representation will be a `string` + // instead of an `integer`. + int64 observed_generation = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this WorkerPool, containing its readiness + // status, and detailed error information in case it did not reach a serving + // state. See comments in `reconciling` for additional information on + // reconciliation process in Cloud Run. + Condition terminal_condition = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Conditions of all other associated sub-resources. They + // contain additional diagnostics information in case the WorkerPool does not + // reach its Serving state. See comments in `reconciling` for additional + // information on reconciliation process in Cloud Run. + repeated Condition conditions = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the latest revision that is serving workloads. See + // comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. + string latest_ready_revision = 33 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Output only. Name of the last created revision. See comments in + // `reconciling` for additional information on reconciliation process in Cloud + // Run. + string latest_created_revision = 34 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } + ]; + + // Output only. Detailed status information for corresponding instance splits. + // See comments in `reconciling` for additional information on reconciliation + // process in Cloud Run. + repeated InstanceSplitStatus instance_split_statuses = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether Cloud Run Threat Detection monitoring is + // enabled for the parent project of this worker pool. + bool threat_detection_enabled = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Deprecated: Not supported, and ignored by Cloud Run. + repeated string custom_audiences = 37 [deprecated = true]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Returns true if the WorkerPool is currently being acted upon + // by the system to bring it into the desired state. + // + // When a new WorkerPool is created, or an existing one is updated, Cloud Run + // will asynchronously perform all necessary steps to bring the WorkerPool to + // the desired serving state. This process is called reconciliation. While + // reconciliation is in process, `observed_generation`, + // `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + // transient values that might mismatch the intended state: Once + // reconciliation is over (and this field is false), there are two possible + // outcomes: reconciliation succeeded and the serving state matches the + // WorkerPool, or there was an error, and reconciliation failed. This state + // can be found in `terminal_condition.state`. + // + // If reconciliation succeeded, the following fields will match: + // `instance_splits` and `instance_split_statuses`, `observed_generation` and + // `generation`, `latest_ready_revision` and `latest_created_revision`. + // + // If reconciliation failed, `instance_split_statuses`, `observed_generation`, + // and `latest_ready_revision` will have the state of the last serving + // revision, or empty for newly created WorkerPools. Additional information on + // the failure can be found in `terminal_condition` and `conditions`. + bool reconciling = 98 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/b6f59cabee372d172efa92f8e735c92ffa98ef6fb23f7190ee5a4efd4c87d240986cad52191483051c012a41b256500d39f8dd1dec17509c2055d7abb6661a3b b/modules/sync/googleapis/cloud-run/cas/b6f59cabee372d172efa92f8e735c92ffa98ef6fb23f7190ee5a4efd4c87d240986cad52191483051c012a41b256500d39f8dd1dec17509c2055d7abb6661a3b new file mode 100644 index 00000000..28d70c2d --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/b6f59cabee372d172efa92f8e735c92ffa98ef6fb23f7190ee5a4efd4c87d240986cad52191483051c012a41b256500d39f8dd1dec17509c2055d7abb6661a3b @@ -0,0 +1,324 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/task_template.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Execution Control Plane API. +service Executions { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Gets information about an Execution. + rpc GetExecution(GetExecutionRequest) returns (Execution) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Executions from a Job. Results are sorted by creation time, + // descending. + rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/jobs/*}/executions" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes an Execution. + rpc DeleteExecution(DeleteExecutionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Execution" + metadata_type: "Execution" + }; + } + + // Cancels an Execution. + rpc CancelExecution(CancelExecutionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Execution" + metadata_type: "Execution" + }; + } +} + +// Request message for obtaining a Execution by its full name. +message GetExecutionRequest { + // Required. The full name of the Execution. + // Format: + // `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, + // where `{project}` can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; +} + +// Request message for retrieving a list of Executions. +message ListExecutionsRequest { + // Required. The Execution from which the Executions should be listed. + // To list all Executions across Jobs, use "-" instead of Job name. + // Format: `projects/{project}/locations/{location}/jobs/{job}`, where + // `{project}` can be project id or number. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Execution" + } + ]; + + // Maximum number of Executions to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListExecutions. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Executions. +message ListExecutionsResponse { + // The resulting list of Executions. + repeated Execution executions = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListExecutions request to continue. + string next_page_token = 2; +} + +// Request message for deleting an Execution. +message DeleteExecutionRequest { + // Required. The name of the Execution to delete. + // Format: + // `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, + // where `{project}` can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the resource. + // This may be used to detect modification conflict during updates. + string etag = 3; +} + +// Request message for deleting an Execution. +message CancelExecutionRequest { + // Required. The name of the Execution to cancel. + // Format: + // `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, + // where `{project}` can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; + + // Indicates that the request should be validated without actually + // cancelling any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the resource. + // This may be used to detect modification conflict during updates. + string etag = 3; +} + +// Execution represents the configuration of a single execution. A execution an +// immutable resource that references a container image which is run to +// completion. +message Execution { + option (google.api.resource) = { + type: "run.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}" + style: DECLARATIVE_FRIENDLY + }; + + // Output only. The unique name of this Execution. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server assigned unique identifier for the Execution. The value + // is a UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the authenticated creator. + string creator = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the execution was acknowledged by the + // execution controller. It is not guaranteed to be set in happens-before + // order across separate operations. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the execution started to run. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp start_time = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the execution was completed. It is not + // guaranteed to be set in happens-before order across separate operations. + google.protobuf.Timestamp completion_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the deletion time. It is only + // populated as a response to a Delete request. + google.protobuf.Timestamp delete_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. It is only populated as a response to a Delete + // request. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The least stable launch stage needed to create this resource, as defined by + // [Google Cloud Platform Launch + // Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports + // `ALPHA`, `BETA`, and `GA`. + // + // Note that this value might not be what was used + // as input. For example, if ALPHA was provided as input in the parent + // resource, but only BETA and GA-level features are used, this field will be + // BETA. + google.api.LaunchStage launch_stage = 11; + + // Output only. The name of the parent Job. + string job = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; + + // Output only. Specifies the maximum desired number of tasks the execution + // should run at any given time. Must be <= task_count. The actual number of + // tasks running in steady state will be less than this number when + // ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when + // the work left to do is less than max parallelism. + int32 parallelism = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the desired number of tasks the execution should + // run. Setting to 1 means that parallelism is limited to 1 and the success of + // that task signals the success of the execution. + int32 task_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The template used to create tasks for this execution. + TaskTemplate template = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether the resource's reconciliation is still in + // progress. See comments in `Job.reconciling` for additional information on + // reconciliation process in Cloud Run. + bool reconciling = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Execution, containing its readiness + // status, and detailed error information in case it did not reach the desired + // state. + repeated Condition conditions = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generation of this Execution. See comments in + // `reconciling` for additional information on reconciliation process in Cloud + // Run. + int64 observed_generation = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of actively running tasks. + int32 running_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which reached phase Succeeded. + int32 succeeded_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which reached phase Failed. + int32 failed_count = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which reached phase Cancelled. + int32 cancelled_count = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which have retried at least once. + int32 retried_count = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URI where logs for this execution can be found in Cloud + // Console. + string log_uri = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Arbitrary identifier for the API client. + string client = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Arbitrary version identifier for the API client. + string client_version = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/modules/sync/googleapis/cloud-run/cas/b75b8d50d9695528a86fbd1e48361f15491f13c25882aa2276ef2a526dfd1e1859d71d42ec0a73f60dfe37df81c544c68b26ece8ebed899dc4d847d4cd00f112 b/modules/sync/googleapis/cloud-run/cas/b75b8d50d9695528a86fbd1e48361f15491f13c25882aa2276ef2a526dfd1e1859d71d42ec0a73f60dfe37df81c544c68b26ece8ebed899dc4d847d4cd00f112 new file mode 100644 index 00000000..890117eb --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/b75b8d50d9695528a86fbd1e48361f15491f13c25882aa2276ef2a526dfd1e1859d71d42ec0a73f60dfe37df81c544c68b26ece8ebed899dc4d847d4cd00f112 @@ -0,0 +1,547 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "K8sMinProto"; +option java_package = "com.google.cloud.run.v2"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "secretmanager.googleapis.com/Secret" + pattern: "projects/{project}/secrets/{secret}" +}; +option (google.api.resource_definition) = { + type: "secretmanager.googleapis.com/SecretVersion" + pattern: "projects/{project}/secrets/{secret}/versions/{version}" +}; +option (google.api.resource_definition) = { + type: "vpcaccess.googleapis.com/Connector" + pattern: "projects/{project}/locations/{location}/connectors/{connector}" +}; + +// A single application container. +// This specifies both the container to run, the command to run in the container +// and the arguments to supply to it. +// Note that additional arguments can be supplied by the system to the container +// at runtime. +message Container { + // Name of the container specified as a DNS_LABEL (RFC 1123). + string name = 1; + + // Required. Name of the container image in Dockerhub, Google Artifact + // Registry, or Google Container Registry. If the host is not provided, + // Dockerhub is assumed. + string image = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Location of the source. This field is only supported in Cloud Run + // Service. + SourceCode source_code = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Entrypoint array. Not executed within a shell. + // The docker image's ENTRYPOINT is used if this is not provided. + repeated string command = 3; + + // Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + repeated string args = 4; + + // List of environment variables to set in the container. + repeated EnvVar env = 5; + + // Compute Resource requirements by this container. + ResourceRequirements resources = 6; + + // List of ports to expose from the container. Only a single port can be + // specified. The specified ports must be listening on all interfaces + // (0.0.0.0) within the container to be accessible. + // + // If omitted, a port number will be chosen and passed to the container + // through the PORT environment variable for the container to listen on. + repeated ContainerPort ports = 7; + + // Volume to mount into the container's filesystem. + repeated VolumeMount volume_mounts = 8; + + // Container's working directory. + // If not specified, the container runtime's default will be used, which + // might be configured in the container image. + string working_dir = 9; + + // Periodic probe of container liveness. + // Container will be restarted if the probe fails. + Probe liveness_probe = 10; + + // Startup probe of application within the container. + // All other probes are disabled if a startup probe is provided, until it + // succeeds. Container will not be added to service endpoints if the probe + // fails. + Probe startup_probe = 11; + + // Readiness probe to be used for health checks. + Probe readiness_probe = 14; + + // Names of the containers that must start before this container. + repeated string depends_on = 12; + + // Base image for this container. Only supported for services. If set, it + // indicates that the service is enrolled into automatic base image update. + string base_image_uri = 13; + + // Output only. The build info of the container image. + BuildInfo build_info = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Indicates that this container can act as a sandbox supervisor and + // launch sandboxes. + optional bool sandbox_launcher = 22 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceRequirements describes the compute resource requirements. +message ResourceRequirements { + // Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported. + // + //

Notes: + // * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 + // CPU requires at least 2Gi of memory. For more information, go to + // https://cloud.google.com/run/docs/configuring/cpu. + // * For supported 'memory' values and syntax, go to + // https://cloud.google.com/run/docs/configuring/memory-limits + // * The only supported 'nvidia.com/gpu' value is '1'. + map limits = 1; + + // Determines whether CPU is only allocated during requests (true by default). + // However, if ResourceRequirements is set, the caller must explicitly + // set this field to true to preserve the default behavior. + bool cpu_idle = 2; + + // Determines whether CPU should be boosted on startup of a new container + // instance above the requested CPU threshold, this can help reduce cold-start + // latency. + bool startup_cpu_boost = 3; +} + +// EnvVar represents an environment variable present in a Container. +message EnvVar { + // Required. Name of the environment variable. Must not exceed 32768 + // characters. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + oneof values { + // Literal value of the environment variable. + // Defaults to "", and the maximum length is 32768 bytes. + // Variable references are not supported in Cloud Run. + string value = 2; + + // Source for the environment variable's value. + EnvVarSource value_source = 3; + } +} + +// EnvVarSource represents a source for the value of an EnvVar. +message EnvVarSource { + // Selects a secret and a specific version from Cloud Secret Manager. + SecretKeySelector secret_key_ref = 1; +} + +// SecretEnvVarSource represents a source for the value of an EnvVar. +message SecretKeySelector { + // Required. The name of the secret in Cloud Secret Manager. + // Format: {secret_name} if the secret is in the same project. + // projects/{project}/secrets/{secret_name} if the secret is + // in a different project. + string secret = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Secret" + } + ]; + + // The Cloud Secret Manager secret version. + // Can be 'latest' for the latest version, an integer for a specific version, + // or a version alias. + string version = 2 [(google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + }]; +} + +// ContainerPort represents a network port in a single container. +message ContainerPort { + // If specified, used to specify which protocol to use. + // Allowed values are "http1" and "h2c". + string name = 1; + + // Port number the container listens on. + // This must be a valid TCP port number, 0 < container_port < 65536. + int32 container_port = 3; +} + +// VolumeMount describes a mounting of a Volume within a container. +message VolumeMount { + // Required. This must match the Name of a Volume. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Path within the container at which the volume should be mounted. + // Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must + // otherwise be `/cloudsql`. All instances defined in the Volume will be + // available as `/cloudsql/[instance]`. For more information on Cloud SQL + // volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run + string mount_path = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Path within the volume from which the container's volume should + // be mounted. Defaults to "" (volume's root). + // + // This field is currently rejected in Secret volume mounts. + string sub_path = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Volume represents a named volume in a container. +message Volume { + // Required. Volume's name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + oneof volume_type { + // Secret represents a secret that should populate this volume. + SecretVolumeSource secret = 2; + + // For Cloud SQL volumes, contains the specific instances that should be + // mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for + // more information on how to connect Cloud SQL and Cloud Run. + CloudSqlInstance cloud_sql_instance = 3; + + // Ephemeral storage used as a shared volume. + EmptyDirVolumeSource empty_dir = 4; + + // For NFS Voumes, contains the path to the nfs Volume + NFSVolumeSource nfs = 5; + + // Persistent storage backed by a Google Cloud Storage bucket. + GCSVolumeSource gcs = 6; + } +} + +// The secret's value will be presented as the content of a file whose +// name is defined in the item path. If no items are defined, the name of +// the file is the secret. +message SecretVolumeSource { + // Required. The name of the secret in Cloud Secret Manager. + // Format: {secret} if the secret is in the same project. + // projects/{project}/secrets/{secret} if the secret is + // in a different project. + string secret = 1 [(google.api.field_behavior) = REQUIRED]; + + // If unspecified, the volume will expose a file whose name is the + // secret, relative to VolumeMount.mount_path + VolumeMount.sub_path. + // If specified, the key will be used as the version to fetch from Cloud + // Secret Manager and the path will be the name of the file exposed in the + // volume. When items are defined, they must specify a path and a version. + repeated VersionToPath items = 2; + + // Integer representation of mode bits to use on created files by default. + // Must be a value between 0000 and 0777 (octal), defaulting to 0444. + // Directories within the path are not affected by this setting. + // + // Notes + // + // * Internally, a umask of 0222 will be applied to any non-zero value. + // * This is an integer representation of the mode bits. So, the octal + // integer value should look exactly as the chmod numeric notation with a + // leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) + // or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or + // 493 (base-10). + // * This might be in conflict with other options that affect the + // file mode, like fsGroup, and the result can be other mode bits set. + // + // This might be in conflict with other options that affect the + // file mode, like fsGroup, and as a result, other mode bits could be set. + int32 default_mode = 3; +} + +// VersionToPath maps a specific version of a secret to a relative file to mount +// to, relative to VolumeMount's mount_path. +message VersionToPath { + // Required. The relative path of the secret in the container. + string path = 1 [(google.api.field_behavior) = REQUIRED]; + + // The Cloud Secret Manager secret version. + // Can be 'latest' for the latest value, or an integer or a secret alias for a + // specific version. + string version = 2; + + // Integer octal mode bits to use on this file, must be a value between + // 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be + // used. + // + // Notes + // + // * Internally, a umask of 0222 will be applied to any non-zero value. + // * This is an integer representation of the mode bits. So, the octal + // integer value should look exactly as the chmod numeric notation with a + // leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) + // or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or + // 493 (base-10). + // * This might be in conflict with other options that affect the + // file mode, like fsGroup, and the result can be other mode bits set. + int32 mode = 3; +} + +// Represents a set of Cloud SQL instances. Each one will be available under +// /cloudsql/[instance]. Visit +// https://cloud.google.com/sql/docs/mysql/connect-run for more information on +// how to connect Cloud SQL and Cloud Run. +message CloudSqlInstance { + // A list of Cloud SQL instance connection names. Cloud Run uses these + // to establish connections to the specified Cloud SQL instances. + // While the SQL instance name itself is unique within a project, + // the full connection name requires the location for proper routing. + // Format: `{project}:{location}:{instance}` + // Example: `my-project:us-central1:my-instance` + // + // You can find this value on the instance's **Overview** page in the + // Google Cloud console or by using the following `gcloud` command: + // + // ```sh + // gcloud sql instances describe INSTANCE_NAME \ + // --format='value(connectionName)' + // ``` + // + // Visit https://cloud.google.com/sql/docs/mysql/connect-run for more + // information on how to connect Cloud SQL and Cloud Run. + repeated string instances = 1; +} + +// Represents in-memory (tmpfs) or disk-backed ephemeral storage. +// It is ephemeral in the sense that when the sandbox is taken down, the data is +// destroyed with it (it does not persist across sandbox runs). +message EmptyDirVolumeSource { + // The different types of medium supported for EmptyDir. + enum Medium { + // When not specified, falls back to the default implementation which + // is currently in memory (this may change over time). + MEDIUM_UNSPECIFIED = 0; + + // Explicitly set the EmptyDir to be in memory. Uses tmpfs. + MEMORY = 1; + + // Explicitly sets the EmptyDir to be a disk. + DISK = 2; + } + + // The medium on which the data is stored. Acceptable values are `MEMORY`, + // `DISK`, or unset (`MEDIUM_UNSPECIFIED`). When unset, the default is + // currently memory-backed but could change over time. + Medium medium = 1; + + // Limit on the storage usable by this EmptyDir volume. + // The size limit is also applicable for memory medium. + // The maximum usage on memory medium EmptyDir would be the minimum value + // between the SizeLimit specified here and the sum of memory limits of all + // containers. The default is nil which means that the limit is undefined. + // For more information, see + // [Configure in-memory volume + // mounts](https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume) + // and the [Kubernetes `emptyDir` volume + // documentation](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir). + string size_limit = 2; +} + +// Represents an NFS mount. +message NFSVolumeSource { + // Hostname or IP address of the NFS server + string server = 1; + + // Path that is exported by the NFS server. + string path = 2; + + // If true, the volume will be mounted as read only for all mounts. + bool read_only = 3; +} + +// Represents a volume backed by a Cloud Storage bucket (mounted via Cloud +// Storage FUSE or as a block device disk). +message GCSVolumeSource { + // Cloud Storage Bucket name. + string bucket = 1; + + // If true, the volume will be mounted as read only for all mounts. + bool read_only = 2; + + // A list of additional flags to pass to the gcsfuse CLI. + // Options should be specified without the leading "--". + repeated string mount_options = 3; +} + +// Probe describes a health check to be performed against a container to +// determine whether it is alive or ready to receive traffic. +message Probe { + // Optional. Number of seconds after the container has started before the + // probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum + // value for liveness probe is 3600. Maximum value for startup probe is 240. + int32 initial_delay_seconds = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of seconds after which the probe times out. + // Defaults to 1 second. Minimum value is 1. Maximum value is 3600. + // Must be smaller than period_seconds. + int32 timeout_seconds = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How often (in seconds) to perform the probe. + // Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe + // is 3600. Maximum value for startup probe is 240. + // Must be greater or equal than timeout_seconds. + int32 period_seconds = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum consecutive failures for the probe to be considered + // failed after having succeeded. Defaults to 3. Minimum value is 1. + int32 failure_threshold = 4 [(google.api.field_behavior) = OPTIONAL]; + + oneof probe_type { + // Optional. HTTPGet specifies the http request to perform. + // Exactly one of httpGet, tcpSocket, or grpc must be specified. + HTTPGetAction http_get = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TCPSocket specifies an action involving a TCP port. + // Exactly one of httpGet, tcpSocket, or grpc must be specified. + TCPSocketAction tcp_socket = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. GRPC specifies an action involving a gRPC port. + // Exactly one of httpGet, tcpSocket, or grpc must be specified. + GRPCAction grpc = 7 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// HTTPGetAction describes an action based on HTTP Get requests. +message HTTPGetAction { + // Optional. Path to access on the HTTP server. Defaults to '/'. + string path = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom headers to set in the request. HTTP allows repeated + // headers. + repeated HTTPHeader http_headers = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Port number to access on the container. Must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// HTTPHeader describes a custom header to be used in HTTP probes +message HTTPHeader { + // Required. The header field name + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The header field value + string value = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// TCPSocketAction describes an action based on opening a socket +message TCPSocketAction { + // Optional. Port number to access on the container. Must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// GRPCAction describes an action involving a GRPC port. +message GRPCAction { + // Optional. Port number of the gRPC service. Number must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service is the name of the service to place in the gRPC + // HealthCheckRequest (see + // https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this + // is not specified, the default behavior is defined by gRPC. + string service = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Build information of the image. +message BuildInfo { + // Output only. Entry point of the function when the image is a Cloud Run + // function. + string function_target = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source code location of the image. + string source_location = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Source type for the container. +message SourceCode { + // Cloud Storage source. + message CloudStorageSource { + // Required. The Cloud Storage bucket name. + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Cloud Storage object name. + string object = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Cloud Storage object generation. + int64 generation = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Source file. + message SourceFile { + // Required. Input only. The file name for the source code. e.g., + // `"index.js"` or + // `"node_modules/dependency.js"`. The filename must be less than 255 + // characters and cannot contain `..`, `./`, `//`, or end with a `/`. + // Cloud Run will place the files in the container subdirectories, please + // use relative path to access the file. + string filename = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Required. Input only. Represents the exact, literal, and complete source + // code of the file. Placeholders like `...` or comments such as `# [rest of + // code]` should NEVER be used as omission. Every character in this field + // will be built into the final container. Any omission will result in a + // broken application. + string content = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + } + + // Inlined source. + message InlinedSource { + // Required. Input only. The source code. + repeated SourceFile sources = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + } + + // The source type. + oneof source_type { + // The source is a Cloud Storage bucket. + CloudStorageSource cloud_storage_source = 1; + + // Optional. Input only. Source code inlined in the request. Cloud Run will + // store the inlined_source to Cloud Storage and replace the field with + // cloud_storage_source. This field is only supported in Cloud Run Service. + InlinedSource inlined_source = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + } +} diff --git a/modules/sync/googleapis/cloud-run/cas/b80dad4c5e0398395a7cf8ca4e4a8f12d77a15116c56d61447fed79bb09d441881f2e7b45ec9876408d2980b6a4630a7d82a6b1770f432e5c8a5e5950131a047 b/modules/sync/googleapis/cloud-run/cas/b80dad4c5e0398395a7cf8ca4e4a8f12d77a15116c56d61447fed79bb09d441881f2e7b45ec9876408d2980b6a4630a7d82a6b1770f432e5c8a5e5950131a047 new file mode 100644 index 00000000..6ea9864f --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/b80dad4c5e0398395a7cf8ca4e4a8f12d77a15116c56d61447fed79bb09d441881f2e7b45ec9876408d2980b6a4630a7d82a6b1770f432e5c8a5e5950131a047 @@ -0,0 +1,21 @@ +shake256:faedd41bb62749fa9e3e87f183fe58065f0d4ccf60e4d347727c04544ccdd08a43f1703d8f2cd31613fe1a767d63c33b280f34df99eda6ad2b25dfec4c4ead81 LICENSE +shake256:17401ebbb46b46e98802f8c54f48d9f7cd3e61e413829173b742b0433af486cd722dd9fae87d6a7026af19dd03a06bff3708d6d7babb7f2cb00aedb9e3dd477d buf.md +shake256:cc8339cfff2ccd0b606c8a9a51adba281fe7750feb0e5b76346e693ecd2655ecb94824c1f7e370561196ccc2219a3b6fdca0e3461e9097f769235971f6238774 buf.yaml +shake256:34059f7475f01183c45cf163f5f8297685b0ac0e2801050524391a5c054af3363be613e4be74acba0015401ae45fa976f257998872246ab68758cea916fb0726 google/cloud/run/v2/build.proto +shake256:fc38d2e7121293372ccddb1aa6e0583b68ca2f4f3f5c710f59fbb0f1076d51145d01ac9408cedee5eb2146ddd4a2935e2e4df5f8eee86e3a190de4864ac718df google/cloud/run/v2/condition.proto +shake256:b6f59cabee372d172efa92f8e735c92ffa98ef6fb23f7190ee5a4efd4c87d240986cad52191483051c012a41b256500d39f8dd1dec17509c2055d7abb6661a3b google/cloud/run/v2/execution.proto +shake256:b44ffa7d32e62481a6a288c43a390b1d6143392b3ccf99c8b2b0c6913ba9758ece8de3808d560be40e7e015a0e88eded30c5240fb2b074035aefe69698f6c00a google/cloud/run/v2/execution_template.proto +shake256:f0895e955d37574f133f44ae2e9205dd43575d673725ca967eff41a46021986e060ab6891bc6349d12d97e8d7461f6f9421bbf93a34442aacc72215af1d66ffe google/cloud/run/v2/instance_split.proto +shake256:c764bd65c872bd2469bd4f5ac628c57dd85ebfed088705e21449deb7df154dd3af7b14cc580a35a53957453673c6586c49b020152d445acba10beb97643602a0 google/cloud/run/v2/job.proto +shake256:b75b8d50d9695528a86fbd1e48361f15491f13c25882aa2276ef2a526dfd1e1859d71d42ec0a73f60dfe37df81c544c68b26ece8ebed899dc4d847d4cd00f112 google/cloud/run/v2/k8s.min.proto +shake256:a28343e93300342b4124c1d44114bc504c693c827ab05b180b0a881d07e593e663034541116d85349636af1bb1344a76ff17a4d8890349a770a2bb2c19cb7973 google/cloud/run/v2/revision.proto +shake256:50f2143eb5ad4c14e6843770bff5e7018badc8c150de23a2b4059f75eacc860c02cb01d8a986ef0c9a7d3110d8d6d4d2c598f891123d909a892cf53f7b2e87ba google/cloud/run/v2/revision_template.proto +shake256:086e3c453769797173f38eb86222d345ade99b810d93835a4c0038569e68100f4e93e86b1b8550cd8f18848b3d7a91425e8d81c6481e8fbd6d762aa90b6ef479 google/cloud/run/v2/sandbox.proto +shake256:76ff019594d3fde7f0c8dadc4fd651cdc8ede45b49f539d0c90cdc01472871a1c5fbfbed60dfdc8236ee01b3f2936606f9433b96a3e6dc6730f2acafd140492a google/cloud/run/v2/service.proto +shake256:319afac928ccd1220723058bed91fd6d5412a2ffd8d553bf4cd4fe5cd03c17942575246d2494d9da6e4018c48dc29d7959c139751a24f70a4bfbd3b00d8481cc google/cloud/run/v2/status.proto +shake256:62ca1462a69e79198d0771045c254f69a76406302eec0c6a654823e542793e11ff7e4d3f81cdd596f9019076bc340534c03c2196a3e0b2da090dc5bf9d9dcdbc google/cloud/run/v2/task.proto +shake256:aa755fd6b0a1038e5244f82a8cbcd3cbd692606fd593c5c235657f2df9810ac7aa1df030300a37b05be95425ebd94f76e4d90c05abed5dd049cbf65169ebe807 google/cloud/run/v2/task_template.proto +shake256:ea04e77e8c85496350e1256ba627235c7ed884a40a787584d754471f418743f9d5e75a771edef4bfad3ff07c1df4562089a27c7e47a6f54c449b734c501ca2bb google/cloud/run/v2/traffic_target.proto +shake256:2b7c594ce50442a72719c1d5c2ba8475b7679f116b2b038eef8a3b11c07e0fc39f694a7daf6a2935ed9006403c730704a1211c48f91aabb142998d125283dbd4 google/cloud/run/v2/vendor_settings.proto +shake256:b47695b37ba25c156eb31151eb5783557f5aba7079d5bd29cce834854ec770474b32bd68b82800c486f00fbff78a6f60b8f766cdbc3d79b3fdf90052950bad3a google/cloud/run/v2/worker_pool.proto +shake256:a0fd7f673f245b16042556fa97f53df3cc03fea5b79ea7be50b297538a7011469494cdc74725d8f35c3f52c419544e7370e8967f2019971482777e8cc94df3b2 google/cloud/run/v2/worker_pool_revision_template.proto diff --git a/modules/sync/googleapis/cloud-run/cas/c764bd65c872bd2469bd4f5ac628c57dd85ebfed088705e21449deb7df154dd3af7b14cc580a35a53957453673c6586c49b020152d445acba10beb97643602a0 b/modules/sync/googleapis/cloud-run/cas/c764bd65c872bd2469bd4f5ac628c57dd85ebfed088705e21449deb7df154dd3af7b14cc580a35a53957453673c6586c49b020152d445acba10beb97643602a0 new file mode 100644 index 00000000..b3d9d11d --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/c764bd65c872bd2469bd4f5ac628c57dd85ebfed088705e21449deb7df154dd3af7b14cc580a35a53957453673c6586c49b020152d445acba10beb97643602a0 @@ -0,0 +1,550 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/api/routing.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/execution.proto"; +import "google/cloud/run/v2/execution_template.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "JobProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Job Control Plane API. +service Jobs { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/run," + "https://www.googleapis.com/auth/run.readonly"; + + // Creates a Job. + rpc CreateJob(CreateJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/jobs" + body: "job" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent,job,job_id"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Gets information about a Job. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists Jobs. Results are sorted by creation time, descending. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/jobs" + }; + option (google.api.routing) = { + routing_parameters { + field: "parent" + path_template: "projects/*/locations/{location=*}" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a Job. + rpc UpdateJob(UpdateJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{job.name=projects/*/locations/*/jobs/*}" + body: "job" + }; + option (google.api.routing) = { + routing_parameters { + field: "job.name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "job"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Deletes a Job. + rpc DeleteJob(DeleteJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/jobs/*}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Triggers creation of a new Execution of this Job. + rpc RunJob(RunJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/jobs/*}:run" + body: "*" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/**" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Execution" + metadata_type: "Execution" + }; + } + + // Gets the IAM Access Control policy currently in effect for the given Job. + // This result does not include any inherited policies. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy" + }; + } + + // Sets the IAM Access control policy for the specified Job. Overwrites + // any existing policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy" + body: "*" + }; + } + + // Returns permissions that a caller has on the specified Project. + // + // There are no permissions required for making this API call. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions" + body: "*" + }; + } +} + +// Request message for creating a Job. +message CreateJobRequest { + // Required. The location and project in which this Job should be created. + // Format: projects/{project}/locations/{location}, where {project} can be + // project id or number. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "run.googleapis.com/Job" } + ]; + + // Required. The Job instance to create. + Job job = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The unique identifier for the Job. The name of the job becomes + // {parent}/jobs/{job_id}. + // If not provided, the server will generate a unique `job_id`. + string job_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or creating any resources. + bool validate_only = 4; +} + +// Request message for obtaining a Job by its full name. +message GetJobRequest { + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job}, where {project} + // can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; +} + +// Request message for updating a Job. +message UpdateJobRequest { + // Required. The Job to be updated. + Job job = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or updating any resources. + bool validate_only = 3; + + // Optional. If set to true, and if the Job does not exist, it will create a + // new one. Caller must have both create and update permissions for this call + // if this is set to true. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for retrieving a list of Jobs. +message ListJobsRequest { + // Required. The location and project to list resources on. + // Format: projects/{project}/locations/{location}, where {project} can be + // project id or number. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "run.googleapis.com/Job" } + ]; + + // Maximum number of Jobs to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListJobs. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Jobs. +message ListJobsResponse { + // The resulting list of Jobs. + repeated Job jobs = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListJobs request to continue. + string next_page_token = 2; +} + +// Request message to delete a Job by its full name. +message DeleteJobRequest { + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job}, where {project} + // can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 3; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 4; +} + +// Request message to create a new Execution of a Job. +message RunJobRequest { + // RunJob Overrides that contains Execution fields to be overridden. + message Overrides { + // Per-container override specification. + message ContainerOverride { + // The name of the container specified as a DNS_LABEL. + string name = 1; + + // Optional. Arguments to the entrypoint. Will replace existing args for + // override. + repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // List of environment variables to set in the container. Will be merged + // with existing env for override. + repeated EnvVar env = 3; + + // Optional. True if the intention is to clear out existing args list. + bool clear_args = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Per container override specification. + repeated ContainerOverride container_overrides = 1; + + // Optional. The desired number of tasks the execution should run. Will + // replace existing task_count value. + int32 task_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Duration in seconds the task may be active before the system will + // actively try to mark it failed and kill associated containers. Will + // replace existing timeout_seconds value. + google.protobuf.Duration timeout = 4; + + // Optional. If true, the system will start the execution within the next 12 + // hours depending on available capacity. + optional bool delay_execution = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job}, where {project} + // can be project id or number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 3; + + // Overrides specification for a given execution of a job. If provided, + // overrides will be applied to update the execution or task spec. + Overrides overrides = 4; +} + +// Job represents the configuration of a single job, which references a +// container image that is run to completion. +message Job { + option (google.api.resource) = { + type: "run.googleapis.com/Job" + pattern: "projects/{project}/locations/{location}/jobs/{job}" + style: DECLARATIVE_FRIENDLY + }; + + // The fully qualified name of this Job. + // + // Format: + // projects/{project}/locations/{location}/jobs/{job} + string name = 1; + + // Output only. Server assigned unique identifier for the Execution. The value + // is a UUID4 string and guaranteed to remain unchanged until the resource is + // deleted. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Unstructured key value map that can be used to organize and categorize + // objects. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. + // + //

Cloud Run API v2 does not support labels with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected. All system labels in v1 now have a + // corresponding field in v2 Job. + map labels = 4; + + // Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + // + //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, + // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` + // namespaces, and they will be rejected on new resources. All system + // annotations in v1 now have a corresponding field in v2 Job. + // + //

This field follows Kubernetes annotations' namespacing, limits, and + // rules. + map annotations = 5; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The deletion time. It is only populated as a response to a + // Delete request. + google.protobuf.Timestamp delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. + google.protobuf.Timestamp expire_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the authenticated creator. + string creator = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the last authenticated modifier. + string last_modifier = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Arbitrary identifier for the API client. + string client = 12; + + // Arbitrary version identifier for the API client. + string client_version = 13; + + // The launch stage as defined by [Google Cloud Platform + // Launch Stages](https://cloud.google.com/terms/launch-stages). + // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA + // is assumed. + // Set the launch stage to a preview stage on input to allow use of preview + // features in that stage. On read (or output), describes whether the resource + // uses preview features. + // + // For example, if ALPHA is provided as input, but only BETA and GA-level + // features are used, this field will be BETA on output. + google.api.LaunchStage launch_stage = 14; + + // Settings for the Binary Authorization feature. + BinaryAuthorization binary_authorization = 15; + + // Required. The template used to create executions for this Job. + ExecutionTemplate template = 16 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The generation of this Job. See comments in `reconciling` for + // additional information on reconciliation process in Cloud Run. + int64 observed_generation = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Job, containing its readiness status, + // and detailed error information in case it did not reach the desired state. + Condition terminal_condition = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Conditions of all other associated sub-resources. They + // contain additional diagnostics information in case the Job does not reach + // its desired state. See comments in `reconciling` for additional information + // on reconciliation process in Cloud Run. + repeated Condition conditions = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of executions created for this job. + int32 execution_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the last created execution. + ExecutionReference latest_created_execution = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Returns true if the Job is currently being acted upon by the + // system to bring it into the desired state. + // + // When a new Job is created, or an existing one is updated, Cloud Run + // will asynchronously perform all necessary steps to bring the Job to the + // desired state. This process is called reconciliation. + // While reconciliation is in process, `observed_generation` and + // `latest_succeeded_execution`, will have transient values that might + // mismatch the intended state: Once reconciliation is over (and this field is + // false), there are two possible outcomes: reconciliation succeeded and the + // state matches the Job, or there was an error, and reconciliation failed. + // This state can be found in `terminal_condition.state`. + // + // If reconciliation succeeded, the following fields will match: + // `observed_generation` and `generation`, `latest_succeeded_execution` and + // `latest_created_execution`. + // + // If reconciliation failed, `observed_generation` and + // `latest_succeeded_execution` will have the state of the last succeeded + // execution or empty for newly created Job. Additional information on the + // failure can be found in `terminal_condition` and `conditions`. + bool reconciling = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + oneof create_execution { + // A unique string used as a suffix creating a new execution. The Job will + // become ready when the execution is successfully started. + // The sum of job name and token length must be fewer than 63 characters. + string start_execution_token = 26; + + // A unique string used as a suffix for creating a new execution. The Job + // will become ready when the execution is successfully completed. + // The sum of job name and token length must be fewer than 63 characters. + string run_execution_token = 27; + } + + // Optional. The functional type of the Job. + FunctionalType functional_type = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; +} + +// Reference to an Execution. Use /Executions.GetExecution with the given name +// to get full execution including the latest status. +message ExecutionReference { + // Possible execution completion status. + enum CompletionStatus { + // The default value. This value is used if the state is omitted. + COMPLETION_STATUS_UNSPECIFIED = 0; + + // Job execution has succeeded. + EXECUTION_SUCCEEDED = 1; + + // Job execution has failed. + EXECUTION_FAILED = 2; + + // Job execution is running normally. + EXECUTION_RUNNING = 3; + + // Waiting for backing resources to be provisioned. + EXECUTION_PENDING = 4; + + // Job execution has been cancelled by the user. + EXECUTION_CANCELLED = 5; + } + + // Name of the execution. + string name = 1 [ + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; + + // Creation timestamp of the execution. + google.protobuf.Timestamp create_time = 2; + + // Creation timestamp of the execution. + google.protobuf.Timestamp completion_time = 3; + + // The deletion time of the execution. It is only + // populated as a response to a Delete request. + google.protobuf.Timestamp delete_time = 5; + + // Status for the execution completion. + CompletionStatus completion_status = 4; +} diff --git a/modules/sync/googleapis/cloud-run/cas/fc38d2e7121293372ccddb1aa6e0583b68ca2f4f3f5c710f59fbb0f1076d51145d01ac9408cedee5eb2146ddd4a2935e2e4df5f8eee86e3a190de4864ac718df b/modules/sync/googleapis/cloud-run/cas/fc38d2e7121293372ccddb1aa6e0583b68ca2f4f3f5c710f59fbb0f1076d51145d01ac9408cedee5eb2146ddd4a2935e2e4df5f8eee86e3a190de4864ac718df new file mode 100644 index 00000000..24345b72 --- /dev/null +++ b/modules/sync/googleapis/cloud-run/cas/fc38d2e7121293372ccddb1aa6e0583b68ca2f4f3f5c710f59fbb0f1076d51145d01ac9408cedee5eb2146ddd4a2935e2e4df5f8eee86e3a190de4864ac718df @@ -0,0 +1,246 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; +option java_multiple_files = true; +option java_outer_classname = "ConditionProto"; +option java_package = "com.google.cloud.run.v2"; + +// Defines a status condition for a resource. +message Condition { + // Represents the possible Condition states. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // Transient state: Reconciliation has not started yet. + CONDITION_PENDING = 1; + + // Transient state: reconciliation is still in progress. + CONDITION_RECONCILING = 2; + + // Terminal state: Reconciliation did not succeed. + CONDITION_FAILED = 3; + + // Terminal state: Reconciliation completed successfully. + CONDITION_SUCCEEDED = 4; + } + + // Represents the severity of the condition failures. + enum Severity { + // Unspecified severity + SEVERITY_UNSPECIFIED = 0; + + // Error severity. + ERROR = 1; + + // Warning severity. + WARNING = 2; + + // Info severity. + INFO = 3; + } + + // Reasons common to all types of conditions. + enum CommonReason { + // Default value. + COMMON_REASON_UNDEFINED = 0; + + // Reason unknown. Further details will be in message. + UNKNOWN = 1; + + // Revision creation process failed. + REVISION_FAILED = 3; + + // Timed out waiting for completion. + PROGRESS_DEADLINE_EXCEEDED = 4; + + // The container image path is incorrect. + CONTAINER_MISSING = 6; + + // Insufficient permissions on the container image. + CONTAINER_PERMISSION_DENIED = 7; + + // Container image is not authorized by policy. + CONTAINER_IMAGE_UNAUTHORIZED = 8; + + // Container image policy authorization check failed. + CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9; + + // Insufficient permissions on encryption key. + ENCRYPTION_KEY_PERMISSION_DENIED = 10; + + // Permission check on encryption key failed. + ENCRYPTION_KEY_CHECK_FAILED = 11; + + // At least one Access check on secrets failed. + SECRETS_ACCESS_CHECK_FAILED = 12; + + // Waiting for operation to complete. + WAITING_FOR_OPERATION = 13; + + // System will retry immediately. + IMMEDIATE_RETRY = 14; + + // System will retry later; current attempt failed. + POSTPONED_RETRY = 15; + + // An internal error occurred. Further information may be in the message. + INTERNAL = 16; + + // User-provided VPC network was not found. + VPC_NETWORK_NOT_FOUND = 17; + } + + // Reasons specific to Revision resource. + enum RevisionReason { + // Default value. + REVISION_REASON_UNDEFINED = 0; + + // Revision in Pending state. + PENDING = 1; + + // Revision is in Reserve state. + RESERVE = 2; + + // Revision is Retired. + RETIRED = 3; + + // Revision is being retired. + RETIRING = 4; + + // Revision is being recreated. + RECREATING = 5; + + // There was a health check error. + HEALTH_CHECK_CONTAINER_ERROR = 6; + + // Health check failed due to user error from customized path of the + // container. System will retry. + CUSTOMIZED_PATH_RESPONSE_PENDING = 7; + + // A revision with min_instance_count > 0 was created and is reserved, but + // it was not configured to serve traffic, so it's not live. This can also + // happen momentarily during traffic migration. + MIN_INSTANCES_NOT_PROVISIONED = 8; + + // The maximum allowed number of active revisions has been reached. + ACTIVE_REVISION_LIMIT_REACHED = 9; + + // There was no deployment defined. + // This value is no longer used, but Services created in older versions of + // the API might contain this value. + NO_DEPLOYMENT = 10; + + // A revision's container has no port specified since the revision is of a + // manually scaled service with 0 instance count + HEALTH_CHECK_SKIPPED = 11; + + // A revision with min_instance_count > 0 was created and is waiting for + // enough instances to begin a traffic migration. + MIN_INSTANCES_WARMING = 12; + } + + // Reasons specific to Execution resource. + enum ExecutionReason { + // Default value. + EXECUTION_REASON_UNDEFINED = 0; + + // Internal system error getting execution status. System will retry. + JOB_STATUS_SERVICE_POLLING_ERROR = 1; + + // A task reached its retry limit and the last attempt failed due to the + // user container exiting with a non-zero exit code. + NON_ZERO_EXIT_CODE = 2; + + // The execution was cancelled by users. + CANCELLED = 3; + + // The execution is in the process of being cancelled. + CANCELLING = 4; + + // The execution was deleted. + DELETED = 5; + + // A delayed execution is waiting for a start time. + DELAYED_START_PENDING = 6; + + // A delayed execution exceeded the maximum runtime duration. + DELAYED_EXECUTION_EXCEEDING_DURATION_LIMIT = 7; + } + + // Reasons specific to Instance resource. + enum InstanceReason { + // Default value. + INSTANCE_REASON_UNSPECIFIED = 0; + + // Instance deleted. + INSTANCE_DELETED = 1; + + // Instance stopped. + INSTANCE_STOPPED = 2; + + // Instance stopping. + INSTANCE_STOPPING = 3; + + // Instance exited with a non-zero exit code. + INSTANCE_NON_ZERO_EXIT_CODE = 4; + } + + // type is used to communicate the status of the reconciliation process. + // See also: + // https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting + // Types common to all resources include: + // * "Ready": True when the Resource is ready. + string type = 1; + + // State of the condition. + State state = 2; + + // Human readable message indicating details about the current status. + string message = 3; + + // Last time the condition transitioned from one status to another. + google.protobuf.Timestamp last_transition_time = 4; + + // How to interpret failures of this condition, one of Error, Warning, Info + Severity severity = 5; + + // The reason for this condition. Depending on the condition type, + // it will populate one of these fields. + // Successful conditions cannot have a reason. + oneof reasons { + // Output only. A common (service-level) reason for this condition. + CommonReason reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reason for the revision condition. + RevisionReason revision_reason = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reason for the execution condition. + ExecutionReason execution_reason = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reason for the instance condition. + InstanceReason instance_reason = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/modules/sync/googleapis/cloud-run/state.json b/modules/sync/googleapis/cloud-run/state.json index 595898b4..62baae96 100644 --- a/modules/sync/googleapis/cloud-run/state.json +++ b/modules/sync/googleapis/cloud-run/state.json @@ -2987,6 +2987,10 @@ { "name": "dbc4f61f7660eaaa387f9ae1a8221778ff8ebadc", "digest": "6046cbe5170c5779ccf3c613e79b9815ebd1cb168dbb3b050687fcee6cd310ead3dbe49ff6e74a15ae191bb5be8fe429369a008ef13712466e95bc95eb8fd3b8" + }, + { + "name": "bf54c1031efddde9cdfee0f89254315d0116a5f9", + "digest": "b80dad4c5e0398395a7cf8ca4e4a8f12d77a15116c56d61447fed79bb09d441881f2e7b45ec9876408d2980b6a4630a7d82a6b1770f432e5c8a5e5950131a047" } ] } \ No newline at end of file diff --git a/modules/sync/state.json b/modules/sync/state.json index fedd8903..6356926c 100644 --- a/modules/sync/state.json +++ b/modules/sync/state.json @@ -42,7 +42,7 @@ }, { "module_name": "googleapis/cloud-run", - "latest_reference": "dbc4f61f7660eaaa387f9ae1a8221778ff8ebadc" + "latest_reference": "bf54c1031efddde9cdfee0f89254315d0116a5f9" }, { "module_name": "googleapis/googleapis",