## Index

- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Executions` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instances` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Jobs` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Revisions` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Services` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceUpload` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Tasks` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPools` (interface)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BinaryAuthorization` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BuildConfig` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BuildInfo` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CancelExecutionRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CloudSqlInstance` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.CommonReason` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.ExecutionReason` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.InstanceReason` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.RevisionReason` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.Severity` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.State` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ContainerPort` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ContainerStatus` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateJobRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateServiceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateWorkerPoolRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteExecutionRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteJobRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteRevisionRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteServiceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteWorkerPoolRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EmptyDirVolumeSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EmptyDirVolumeSource.Medium` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EncryptionKeyRevocationAction` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EnvVar` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EnvVarSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Execution` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionEnvironment` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionReference` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionReference.CompletionStatus` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionTemplate` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GCSVolumeSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GRPCAction` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetExecutionRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetJobRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetRevisionRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetServiceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetTaskRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetWorkerPoolRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.HTTPGetAction` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.HTTPHeader` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.IngressTraffic` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance.RestartPolicy` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplit` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplitAllocationType` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplitStatus` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Job` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListExecutionsRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListExecutionsResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListInstancesRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListInstancesResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListJobsRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListJobsResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListRevisionsRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListRevisionsResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListServicesRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListServicesResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListTasksRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListTasksResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListWorkerPoolsRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListWorkerPoolsResponse` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NFSVolumeSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Probe` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ResourceRequirements` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Revision` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionScaling` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionScalingStatus` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionTemplate` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest.Overrides` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SecretKeySelector` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SecretVolumeSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service.MultiRegionSettings` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceMesh` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceScaling` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceScaling.ScalingMode` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.CloudStorageSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.InlinedSource` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.SourceFile` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.StartInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.StopInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TCPSocketAction` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Task` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TaskAttemptResult` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TaskTemplate` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTarget` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTargetAllocationType` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTargetStatus` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateInstanceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateJobRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateServiceRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateWorkerPoolRequest` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VersionToPath` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VolumeMount` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess.NetworkInterface` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess.VpcEgress` (enum)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPool` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPoolRevisionTemplate` (message)
- `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPoolScaling` (message)

## Executions

Cloud Run Execution Control Plane API.

| CancelExecution |
|---|
| `` rpc CancelExecution(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CancelExecutionRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Cancels an Execution. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| DeleteExecution |
|---|
| `` rpc DeleteExecution(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteExecutionRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes an Execution. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetExecution |
|---|
| `` rpc GetExecution(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetExecutionRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Execution`) `` Gets information about an Execution. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListExecutions |
|---|
| `` rpc ListExecutions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListExecutionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListExecutionsResponse`) `` Lists Executions from a Job. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## Instances

The Cloud Run Instances API allows you to manage Cloud Run Instances.

| CreateInstance |
|---|
| `` rpc CreateInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Creates an Instance. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| DeleteInstance |
|---|
| `` rpc DeleteInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes an Instance Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetIamPolicy |
|---|
| `` rpc GetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.GetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Gets the IAM Access Control policy currently in effect for the given Instance. This result does not include any inherited policies. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetInstance |
|---|
| `` rpc GetInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance`) `` Gets an Instance Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListInstances |
|---|
| `` rpc ListInstances(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListInstancesRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListInstancesResponse`) `` Lists Instances. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| SetIamPolicy |
|---|
| `` rpc SetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Sets the IAM Access control policy for the specified Instance. Overwrites any existing policy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| StartInstance |
|---|
| `` rpc StartInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.StartInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Starts an Instance. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| StopInstance |
|---|
| `` rpc StopInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.StopInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Stops an Instance. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| TestIamPermissions |
|---|
| `` rpc TestIamPermissions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsResponse`) `` Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| UpdateInstance |
|---|
| `` rpc UpdateInstance(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateInstanceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Updates an Instance. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## Jobs

Cloud Run Job Control Plane API.

| CreateJob |
|---|
| `` rpc CreateJob(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateJobRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Creates a Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| DeleteJob |
|---|
| `` rpc DeleteJob(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteJobRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetIamPolicy |
|---|
| `` rpc GetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.GetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetJob |
|---|
| `` rpc GetJob(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetJobRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Job`) `` Gets information about a Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListJobs |
|---|
| `` rpc ListJobs(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListJobsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListJobsResponse`) `` Lists Jobs. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| RunJob |
|---|
| `` rpc RunJob(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Triggers creation of a new Execution of this Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| SetIamPolicy |
|---|
| `` rpc SetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Sets the IAM Access control policy for the specified Job. Overwrites any existing policy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| TestIamPermissions |
|---|
| `` rpc TestIamPermissions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsResponse`) `` Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| UpdateJob |
|---|
| `` rpc UpdateJob(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateJobRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Updates a Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## Revisions

Cloud Run Revision Control Plane API.

| DeleteRevision |
|---|
| `` rpc DeleteRevision(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteRevisionRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a Revision. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetRevision |
|---|
| `` rpc GetRevision(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetRevisionRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Revision`) `` Gets information about a Revision. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListRevisions |
|---|
| `` rpc ListRevisions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListRevisionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListRevisionsResponse`) `` Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## Services

Cloud Run Service Control Plane API

| CreateService |
|---|
| `` rpc CreateService(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateServiceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Creates a new Service in a given project and location. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| DeleteService |
|---|
| `` rpc DeleteService(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteServiceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetIamPolicy |
|---|
| `` rpc GetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.GetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetService |
|---|
| `` rpc GetService(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetServiceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service`) `` Gets information about a Service. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListServices |
|---|
| `` rpc ListServices(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListServicesRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListServicesResponse`) `` Lists Services. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| SetIamPolicy |
|---|
| `` rpc SetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| TestIamPermissions |
|---|
| `` rpc TestIamPermissions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsResponse`) `` Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| UpdateService |
|---|
| `` rpc UpdateService(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateServiceRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Updates a Service. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## SourceUpload

The Cloud Run Source Upload API allows you to upload source code to deploy Cloud Run resources.

## Tasks

Cloud Run Task Control Plane API.

| GetTask |
|---|
| `` rpc GetTask(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetTaskRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Task`) `` Gets information about a Task. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListTasks |
|---|
| `` rpc ListTasks(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListTasksRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListTasksResponse`) `` Lists Tasks from an Execution of a Job. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## WorkerPools

Cloud Run WorkerPool Control Plane API.

| CreateWorkerPool |
|---|
| `` rpc CreateWorkerPool(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CreateWorkerPoolRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Creates a new WorkerPool in a given project and location. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| DeleteWorkerPool |
|---|
| `` rpc DeleteWorkerPool(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.DeleteWorkerPoolRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Deletes a WorkerPool. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetIamPolicy |
|---|
| `` rpc GetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.GetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This result does not include any inherited policies. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| GetWorkerPool |
|---|
| `` rpc GetWorkerPool(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GetWorkerPoolRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPool`) `` Gets information about a WorkerPool. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| ListWorkerPools |
|---|
| `` rpc ListWorkerPools(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListWorkerPoolsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ListWorkerPoolsResponse`) `` Lists WorkerPools. Results are sorted by creation time, descending. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| SetIamPolicy |
|---|
| `` rpc SetIamPolicy(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.Policy`) `` Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing policy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| TestIamPermissions |
|---|
| `` rpc TestIamPermissions(`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.iam.v1#google.iam.v1.TestIamPermissionsResponse`) `` Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

| UpdateWorkerPool |
|---|
| `` rpc UpdateWorkerPool(`https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.UpdateWorkerPoolRequest`) returns (`https://docs.cloud.google.com/run/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Updates a WorkerPool. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp). |

## BinaryAuthorization

Settings for Binary Authorization feature.

| Fields ||
|---|---|
| `breakglass_justification` | `string` 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> |
| Union field `binauthz_method`. `binauthz_method` can be only one of the following: ||
| `use_default` | `bool` Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. |
| `policy` | `string` Optional. The path to a binary authorization policy. Format: `projects/{project}/platforms/cloudRun/{policy-name}` |

## BuildConfig

Describes the Build step of the function that builds a container from the given source.

| Fields ||
|---|---|
| `name` | `string` Output only. The Cloud Build name of the latest successful deployment of the function. |
| `source_location` | `string` The Cloud Storage bucket URI where the function source code is located. |
| `function_target` | `string` 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". |
| `image_uri` | `string` Optional. Artifact Registry URI to store the built image. |
| `base_image` | `string` Optional. The base image used to build the function. |
| `enable_automatic_updates` | `bool` Optional. Sets whether the function will receive automatic base image updates. |
| `worker_pool` | `string` Optional. Name of the Cloud Build Custom Worker 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. |
| `environment_variables` | `map<string, string>` Optional. User-provided build-time environment variables for the function |
| `service_account` | `string` Optional. Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`. |

## BuildInfo

Build information of the image.

| Fields ||
|---|---|
| `function_target` | `string` Output only. Entry point of the function when the image is a Cloud Run function. |
| `source_location` | `string` Output only. Source code location of the image. |

## CancelExecutionRequest

Request message for deleting an Execution.

| Fields ||
|---|---|
| `name` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.jobs.run` |
| `validate_only` | `bool` Indicates that the request should be validated without actually cancelling any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. |

## CloudSqlInstance

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.

| Fields ||
|---|---|
| `instances[]` | `string` 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: 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. |

## Condition

Defines a status condition for a resource.

| Fields ||
|---|---|
| `type` | `string` 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. |
| `state` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.State` State of the condition. |
| `message` | `string` Human readable message indicating details about the current status. |
| `last_transition_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Last time the condition transitioned from one status to another. |
| `severity` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.Severity` How to interpret failures of this condition, one of Error, Warning, Info |
| Union field `reasons`. The reason for this condition. Depending on the condition type, it will populate one of these fields. Successful conditions cannot have a reason. `reasons` can be only one of the following: ||
| `reason` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.CommonReason` Output only. A common (service-level) reason for this condition. |
| `revision_reason` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.RevisionReason` Output only. A reason for the revision condition. |
| `execution_reason` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.ExecutionReason` Output only. A reason for the execution condition. |
| `instance_reason` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition.InstanceReason` Output only. A reason for the instance condition. |

## CommonReason

Reasons common to all types of conditions.

| Enums ||
|---|---|
| `COMMON_REASON_UNDEFINED` | Default value. |
| `UNKNOWN` | Reason unknown. Further details will be in message. |
| `REVISION_FAILED` | Revision creation process failed. |
| `PROGRESS_DEADLINE_EXCEEDED` | Timed out waiting for completion. |
| `CONTAINER_MISSING` | The container image path is incorrect. |
| `CONTAINER_PERMISSION_DENIED` | Insufficient permissions on the container image. |
| `CONTAINER_IMAGE_UNAUTHORIZED` | Container image is not authorized by policy. |
| `CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED` | Container image policy authorization check failed. |
| `ENCRYPTION_KEY_PERMISSION_DENIED` | Insufficient permissions on encryption key. |
| `ENCRYPTION_KEY_CHECK_FAILED` | Permission check on encryption key failed. |
| `SECRETS_ACCESS_CHECK_FAILED` | At least one Access check on secrets failed. |
| `WAITING_FOR_OPERATION` | Waiting for operation to complete. |
| `IMMEDIATE_RETRY` | System will retry immediately. |
| `POSTPONED_RETRY` | System will retry later; current attempt failed. |
| `INTERNAL` | An internal error occurred. Further information may be in the message. |
| `VPC_NETWORK_NOT_FOUND` | User-provided VPC network was not found. |

## ExecutionReason

Reasons specific to Execution resource.

| Enums ||
|---|---|
| `EXECUTION_REASON_UNDEFINED` | Default value. |
| `JOB_STATUS_SERVICE_POLLING_ERROR` | Internal system error getting execution status. System will retry. |
| `NON_ZERO_EXIT_CODE` | A task reached its retry limit and the last attempt failed due to the user container exiting with a non-zero exit code. |
| `CANCELLED` | The execution was cancelled by users. |
| `CANCELLING` | The execution is in the process of being cancelled. |
| `DELETED` | The execution was deleted. |
| `DELAYED_START_PENDING` | A delayed execution is waiting for a start time. |

## InstanceReason

Reasons specific to Instance resource.

| Enums ||
|---|---|
| `INSTANCE_REASON_UNSPECIFIED` | Default value. |
| `INSTANCE_DELETED` | Instance deleted. |
| `INSTANCE_STOPPED` | Instance stopped. |
| `INSTANCE_STOPPING` | Instance stopping. |
| `INSTANCE_NON_ZERO_EXIT_CODE` | Instance exited with a non-zero exit code. |

## RevisionReason

Reasons specific to Revision resource.

| Enums ||
|---|---|
| `REVISION_REASON_UNDEFINED` | Default value. |
| `PENDING` | Revision in Pending state. |
| `RESERVE` | Revision is in Reserve state. |
| `RETIRED` | Revision is Retired. |
| `RETIRING` | Revision is being retired. |
| `RECREATING` | Revision is being recreated. |
| `HEALTH_CHECK_CONTAINER_ERROR` | There was a health check error. |
| `CUSTOMIZED_PATH_RESPONSE_PENDING` | Health check failed due to user error from customized path of the container. System will retry. |
| `MIN_INSTANCES_NOT_PROVISIONED` | 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. |
| `ACTIVE_REVISION_LIMIT_REACHED` | The maximum allowed number of active revisions has been reached. |
| `NO_DEPLOYMENT` | There was no deployment defined. This value is no longer used, but Services created in older versions of the API might contain this value. |
| `HEALTH_CHECK_SKIPPED` | A revision's container has no port specified since the revision is of a manually scaled service with 0 instance count |
| `MIN_INSTANCES_WARMING` | A revision with min_instance_count \> 0 was created and is waiting for enough instances to begin a traffic migration. |

## Severity

Represents the severity of the condition failures.

| Enums ||
|---|---|
| `SEVERITY_UNSPECIFIED` | Unspecified severity |
| `ERROR` | Error severity. |
| `WARNING` | Warning severity. |
| `INFO` | Info severity. |

## State

Represents the possible Condition states.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The default value. This value is used if the state is omitted. |
| `CONDITION_PENDING` | Transient state: Reconciliation has not started yet. |
| `CONDITION_RECONCILING` | Transient state: reconciliation is still in progress. |
| `CONDITION_FAILED` | Terminal state: Reconciliation did not succeed. |
| `CONDITION_SUCCEEDED` | Terminal state: Reconciliation completed successfully. |

## Container

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.

| Fields ||
|---|---|
| `name` | `string` Name of the container specified as a DNS_LABEL (RFC 1123). |
| `image` | `string` Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. |
| `source_code` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode` Optional. Location of the source. |
| `command[]` | `string` Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. |
| `args[]` | `string` Arguments to the entrypoint. The docker image's CMD is used if this is not provided. |
| `env[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EnvVar` List of environment variables to set in the container. |
| `resources` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ResourceRequirements` Compute Resource requirements by this container. |
| `ports[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ContainerPort` 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. |
| `volume_mounts[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VolumeMount` Volume to mount into the container's filesystem. |
| `working_dir` | `string` Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. |
| `liveness_probe` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Probe` Periodic probe of container liveness. Container will be restarted if the probe fails. |
| `startup_probe` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Probe` 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. |
| `readiness_probe` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Probe` Readiness probe to be used for health checks. |
| `depends_on[]` | `string` Names of the containers that must start before this container. |
| `base_image_uri` | `string` Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update. |
| `build_info` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BuildInfo` Output only. The build info of the container image. |
| `sandbox_launcher` | `bool` Optional. Indicates that this container can act as a sandbox supervisor and launch sandboxes. |

## ContainerPort

ContainerPort represents a network port in a single container.

| Fields ||
|---|---|
| `name` | `string` If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". |
| `container_port` | `int32` Port number the container listens on. This must be a valid TCP port number, 0 \< container_port \< 65536. |

## ContainerStatus

ContainerStatus holds the information of container name and image digest value.

| Fields ||
|---|---|
| `name` | `string` The name of the container, if specified. |
| `image_digest` | `string` ImageDigest holds the resolved digest for the image specified and resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object. |

## CreateInstanceRequest

| Fields ||
|---|---|
| `parent` | `string` Required. The location and project in which this Instance should be created. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.instances.create` |
| `instance` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance` |
| `instance_id` | `string` Optional. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the instance becomes {parent}/instances/{instance_id}. If not provided, the server will generate a unique `instance_id`. |
| `validate_only` | `bool` Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. |

## CreateJobRequest

Request message for creating a Job.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.jobs.create` |
| `job` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Job` Required. The Job instance to create. |
| `job_id` | `string` 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`. |
| `validate_only` | `bool` Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. |

## CreateServiceRequest

Request message for creating a Service.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.services.create` |
| `service` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service` Required. The Service instance to create. |
| `service_id` | `string` 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`. |
| `validate_only` | `bool` Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. |

## CreateWorkerPoolRequest

Request message for creating a WorkerPool.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.workerpools.create` |
| `worker_pool` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPool` Required. The WorkerPool instance to create. |
| `worker_pool_id` | `string` 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`. |
| `validate_only` | `bool` Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources. |

## DeleteExecutionRequest

Request message for deleting an Execution.

| Fields ||
|---|---|
| `name` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.executions.delete` |
| `validate_only` | `bool` Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. |

## DeleteInstanceRequest

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Instance to delete. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.instances.delete` |
| `validate_only` | `bool` Optional. Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## DeleteJobRequest

Request message to delete a Job by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. |
| `validate_only` | `bool` Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## DeleteRevisionRequest

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.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.revisions.delete` |
| `validate_only` | `bool` Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. |

## DeleteServiceRequest

Request message to delete a Service by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number. |
| `validate_only` | `bool` Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## DeleteWorkerPoolRequest

Request message to delete a WorkerPool by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the WorkerPool. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where `{project}` can be project id or number. |
| `validate_only` | `bool` Optional. Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## EmptyDirVolumeSource

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).

| Fields ||
|---|---|
| `medium` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EmptyDirVolumeSource.Medium` 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. |
| `size_limit` | `string` 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). |

## Medium

The different types of medium supported for EmptyDir.

| Enums ||
|---|---|
| `MEDIUM_UNSPECIFIED` | When not specified, falls back to the default implementation which is currently in memory (this may change over time). |
| `MEMORY` | Explicitly set the EmptyDir to be in memory. Uses tmpfs. |
| `DISK` | Explicitly sets the EmptyDir to be a disk. |

## EncryptionKeyRevocationAction

Specifies behavior if an encryption key used by a resource is revoked.

| Enums ||
|---|---|
| `ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED` | Unspecified |
| `PREVENT_NEW` | Prevents the creation of new instances. |
| `SHUTDOWN` | Shuts down existing instances, and prevents creation of new ones. |

## EnvVar

EnvVar represents an environment variable present in a Container.

| Fields ||
|---|---|
| `name` | `string` Required. Name of the environment variable. Must not exceed 32768 characters. |
| Union field `values`. `values` can be only one of the following: ||
| `value` | `string` Literal value of the environment variable. Defaults to "", and the maximum length is 32768 bytes. Variable references are not supported in Cloud Run. |
| `value_source` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EnvVarSource` Source for the environment variable's value. |

## EnvVarSource

EnvVarSource represents a source for the value of an EnvVar.

| Fields ||
|---|---|
| `secret_key_ref` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SecretKeySelector` Selects a secret and a specific version from Cloud Secret Manager. |

## Execution

Execution represents the configuration of a single execution. A execution an immutable resource that references a container image which is run to completion.

| Fields ||
|---|---|
| `name` | `string` Output only. The unique name of this Execution. |
| `uid` | `string` 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. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `generation` | `int64` Output only. A number that monotonically increases every time the user modifies the desired state. |
| `labels` | `map<string, string>` 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> |
| `annotations` | `map<string, string>` 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. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `start_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations. |
| `completion_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `job` | `string` Output only. The name of the parent Job. |
| `parallelism` | `int32` 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. |
| `task_count` | `int32` 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. |
| `template` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TaskTemplate` Output only. The template used to create tasks for this execution. |
| `reconciling` | `bool` 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Condition of this Execution, containing its readiness status, and detailed error information in case it did not reach the desired state. |
| `observed_generation` | `int64` Output only. The generation of this Execution. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `running_count` | `int32` Output only. The number of actively running tasks. |
| `succeeded_count` | `int32` Output only. The number of tasks which reached phase Succeeded. |
| `failed_count` | `int32` Output only. The number of tasks which reached phase Failed. |
| `cancelled_count` | `int32` Output only. The number of tasks which reached phase Cancelled. |
| `retried_count` | `int32` Output only. The number of tasks which have retried at least once. |
| `log_uri` | `string` Output only. URI where logs for this execution can be found in Cloud Console. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `client` | `string` Output only. Arbitrary identifier for the API client. |
| `client_version` | `string` Output only. Arbitrary version identifier for the API client. |
| `etag` | `string` Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## ExecutionEnvironment

Alternatives for execution environments.

| Enums ||
|---|---|
| `EXECUTION_ENVIRONMENT_UNSPECIFIED` | Unspecified |
| `EXECUTION_ENVIRONMENT_GEN1` | Uses the First Generation environment. |
| `EXECUTION_ENVIRONMENT_GEN2` | Uses Second Generation environment. |

## ExecutionReference

Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.

| Fields ||
|---|---|
| `name` | `string` Name of the execution. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Creation timestamp of the execution. |
| `completion_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Creation timestamp of the execution. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` The deletion time of the execution. It is only populated as a response to a Delete request. |
| `completion_status` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionReference.CompletionStatus` Status for the execution completion. |

## CompletionStatus

Possible execution completion status.

| Enums ||
|---|---|
| `COMPLETION_STATUS_UNSPECIFIED` | The default value. This value is used if the state is omitted. |
| `EXECUTION_SUCCEEDED` | Job execution has succeeded. |
| `EXECUTION_FAILED` | Job execution has failed. |
| `EXECUTION_RUNNING` | Job execution is running normally. |
| `EXECUTION_PENDING` | Waiting for backing resources to be provisioned. |
| `EXECUTION_CANCELLED` | Job execution has been cancelled by the user. |

## ExecutionTemplate

ExecutionTemplate describes the data an execution should have when created from a template.

| Fields ||
|---|---|
| `labels` | `map<string, string>` 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>. <br /> 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. |
| `annotations` | `map<string, string>` 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. <br /> 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. <br /> This field follows Kubernetes annotations' namespacing, limits, and rules. |
| `parallelism` | `int32` 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. |
| `task_count` | `int32` 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. |
| `template` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TaskTemplate` Required. Describes the task(s) that will be created when executing an execution. |
| `client` | `string` Optional. Arbitrary identifier for the API client. |
| `client_version` | `string` Optional. Arbitrary version identifier for the API client. |

## GCSVolumeSource

Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.

| Fields ||
|---|---|
| `bucket` | `string` Cloud Storage Bucket name. |
| `read_only` | `bool` If true, the volume will be mounted as read only for all mounts. |
| `mount_options[]` | `string` A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--". |

## GRPCAction

GRPCAction describes an action involving a GRPC port.

| Fields ||
|---|---|
| `port` | `int32` 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. |
| `service` | `string` 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. |

## GetExecutionRequest

Request message for obtaining a Execution by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Execution. Format: `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, where `{project}` can be project id or number. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.executions.get` |

## GetInstanceRequest

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Instance to retrieve. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.instances.get` |

## GetJobRequest

Request message for obtaining a Job by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. |

## GetRevisionRequest

Request message for obtaining a Revision by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Revision. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision} |

## GetServiceRequest

Request message for obtaining a Service by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number. |

## GetTaskRequest

Request message for obtaining a Task by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Task. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.tasks.get` |

## GetWorkerPoolRequest

Request message for obtaining a WorkerPool by its full name.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the WorkerPool. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where `{project}` can be project id or number. |

## HTTPGetAction

HTTPGetAction describes an action based on HTTP Get requests.

| Fields ||
|---|---|
| `path` | `string` Optional. Path to access on the HTTP server. Defaults to '/'. |
| `http_headers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.HTTPHeader` Optional. Custom headers to set in the request. HTTP allows repeated headers. |
| `port` | `int32` 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. |

## HTTPHeader

HTTPHeader describes a custom header to be used in HTTP probes

| Fields ||
|---|---|
| `name` | `string` Required. The header field name |
| `value` | `string` Optional. The header field value |

## IngressTraffic

Allowed ingress traffic for the Container.

| Enums ||
|---|---|
| `INGRESS_TRAFFIC_UNSPECIFIED` | Unspecified |
| `INGRESS_TRAFFIC_ALL` | All inbound traffic is allowed. |
| `INGRESS_TRAFFIC_INTERNAL_ONLY` | Only internal traffic is allowed. |
| `INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER` | Both internal and Google Cloud Load Balancer traffic is allowed. |
| `INGRESS_TRAFFIC_NONE` | No ingress traffic is allowed. |

## Instance

A Cloud Run Instance represents a single group of containers running in a region.

| Fields ||
|---|---|
| `name` | `string` The fully qualified name of this Instance. In `CreateInstanceRequest`, this field is ignored, and instead composed from `CreateInstanceRequest.parent` and `CreateInstanceRequest.instance_id`. |
| `description` | `string` User-provided description of the Instance. This field currently has a 512-character limit. |
| `uid` | `string` 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. |
| `generation` | `int64` 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`. |
| `labels` | `map<string, string>` |
| `annotations` | `map<string, string>` |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The creation time. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The deletion time. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the time after which it will be permamently deleted. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `last_modifier` | `string` Output only. Email address of the last authenticated modifier. |
| `client` | `string` Arbitrary identifier for the API client. |
| `client_version` | `string` Arbitrary version identifier for the API client. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `binary_authorization` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BinaryAuthorization` Settings for the Binary Authorization feature. |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` Optional. VPC Access configuration to use for this Revision. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `service_account` | `string` |
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Required. Holds the single container that defines the unit of execution for this Instance. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` A list of Volumes to make available to containers. |
| `encryption_key` | `string` 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> |
| `encryption_key_revocation_action` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EncryptionKeyRevocationAction` The action to take if the encryption key is revoked. |
| `encryption_key_shutdown_duration` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` If `encryption_key_revocation_action` is `SHUTDOWN`, the duration before shutting down all instances. The minimum increment is 1 hour. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` Optional. The node selector for the instance. |
| `ingress` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.IngressTraffic` Optional. Provides the ingress settings for this Instance. On output, returns the currently observed ingress settings, or `INGRESS_TRAFFIC_UNSPECIFIED` if no revision is active. |
| `invoker_iam_disabled` | `bool` Optional. Disables IAM permission check for `run.routes.invoke` for callers of this Instance. For more information, visit <https://cloud.google.com/run/docs/securing/managing-access#invoker_check>. |
| `default_uri_disabled` | `bool` Optional. Disables public resolution of the default URI of this Instance. |
| `iap_enabled` | `bool` Optional. IAP settings on the Instance. |
| `restart_policy` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance.RestartPolicy` Optional. Restart policy for the Instance. |
| `observed_generation` | `int64` Output only. The generation of this Instance 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`. |
| `log_uri` | `string` Output only. The Google Console URI to obtain logs for the Instance. |
| `terminal_condition` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Condition of this Instance, 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Instance does not reach its Serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `container_statuses[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ContainerStatus` Output only. Status information for each of the specified containers. The status includes the resolved digest for specified images. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `urls[]` | `string` Output only. All URLs serving traffic for this Instance. |
| `reconciling` | `bool` Output only. Returns `true` if the Instance is currently being acted upon by the system to bring it into the desired state. When a new Instance is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Instance to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation` will have a transient value 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 Instance, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. True if GPU zonal redundancy is disabled on this instance. |

## RestartPolicy

Restart policy options for the instance. If not provided, the default is `ON_FAILURE`.

| Enums ||
|---|---|
| `RESTART_POLICY_UNSPECIFIED` | Unspecified restart policy. |
| `ALWAYS` | Always restart the instance. |
| `ON_FAILURE` | Restart if the instance terminates with non-zero exit code. |
| `NEVER` | Never restart the instance. |

## InstanceSplit

Holds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplitAllocationType` The allocation type for this instance split. |
| `revision` | `string` Revision to which to assign this portion of instances, if split allocation is by revision. |
| `percent` | `int32` Specifies percent of the instance split to this Revision. This defaults to zero if unspecified. |

## InstanceSplitAllocationType

The type of instance split allocation.

| Enums ||
|---|---|
| `INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED` | Unspecified instance allocation type. |
| `INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST` | Allocates instances to the Service's latest ready Revision. |
| `INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION` | Allocates instances to a Revision by name. |

## InstanceSplitStatus

Represents the observed state of a single `InstanceSplit` entry.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplitAllocationType` The allocation type for this instance split. |
| `revision` | `string` Revision to which this instance split is assigned. |
| `percent` | `int32` Specifies percent of the instance split to this Revision. |

## Job

Job represents the configuration of a single job, which references a container image that is run to completion.

| Fields ||
|---|---|
| `name` | `string` The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} |
| `uid` | `string` 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. |
| `generation` | `int64` Output only. A number that monotonically increases every time the user modifies the desired state. |
| `labels` | `map<string, string>` 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>. <br /> 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. |
| `annotations` | `map<string, string>` 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. <br /> 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. <br /> This field follows Kubernetes annotations' namespacing, limits, and rules. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The creation time. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the time after which it will be permamently deleted. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `last_modifier` | `string` Output only. Email address of the last authenticated modifier. |
| `client` | `string` Arbitrary identifier for the API client. |
| `client_version` | `string` Arbitrary version identifier for the API client. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `binary_authorization` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BinaryAuthorization` Settings for the Binary Authorization feature. |
| `template` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionTemplate` Required. The template used to create executions for this Job. |
| `observed_generation` | `int64` Output only. The generation of this Job. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `terminal_condition` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` 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. |
| `execution_count` | `int32` Output only. Number of executions created for this job. |
| `latest_created_execution` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionReference` Output only. Name of the last created execution. |
| `reconciling` | `bool` 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`. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| Union field `create_execution`. `create_execution` can be only one of the following: ||
| `start_execution_token` | `string` 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. |
| `run_execution_token` | `string` 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. |

## ListExecutionsRequest

Request message for retrieving a list of Executions.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.executions.list` |
| `page_size` | `int32` Maximum number of Executions to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListExecutions. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListExecutionsResponse

Response message containing a list of Executions.

| Fields ||
|---|---|
| `executions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Execution` The resulting list of Executions. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListExecutions request to continue. |

## ListInstancesRequest

Request message for retrieving a list of Instances.

| Fields ||
|---|---|
| `parent` | `string` Required. The location and project to list resources on. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.instances.list` |
| `page_size` | `int32` Optional. Maximum number of Instances to return in this call. |
| `page_token` | `string` Optional. A page token received from a previous call to ListInstances. All other parameters must match. |
| `show_deleted` | `bool` Optional. If true, returns deleted (but unexpired) resources along with active ones. |

## ListInstancesResponse

Response message containing a list of Instances.

| Fields ||
|---|---|
| `instances[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance` The resulting list of Instances. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListInstances request to continue. |

## ListJobsRequest

Request message for retrieving a list of Jobs.

| Fields ||
|---|---|
| `parent` | `string` Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.jobs.list` |
| `page_size` | `int32` Maximum number of Jobs to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListJobs. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListJobsResponse

Response message containing a list of Jobs.

| Fields ||
|---|---|
| `jobs[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Job` The resulting list of Jobs. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListJobs request to continue. |

## ListRevisionsRequest

Request message for retrieving a list of Revisions.

| Fields ||
|---|---|
| `parent` | `string` 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} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.revisions.list` |
| `page_size` | `int32` Maximum number of revisions to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListRevisions. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListRevisionsResponse

Response message containing a list of Revisions.

| Fields ||
|---|---|
| `revisions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Revision` The resulting list of Revisions. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListRevisions request to continue. |

## ListServicesRequest

Request message for retrieving a list of Services.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.services.list` |
| `page_size` | `int32` Maximum number of Services to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListServices. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListServicesResponse

Response message containing a list of Services.

| Fields ||
|---|---|
| `services[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service` The resulting list of Services. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListServices request to continue. |
| `unreachable[]` | `string` Output only. For global requests, returns the list of regions that could not be reached within the deadline. |

## ListTasksRequest

Request message for retrieving a list of Tasks.

| Fields ||
|---|---|
| `parent` | `string` 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} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.tasks.list` |
| `page_size` | `int32` Maximum number of Tasks to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListTasks. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListTasksResponse

Response message containing a list of Tasks.

| Fields ||
|---|---|
| `tasks[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Task` The resulting list of Tasks. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListTasks request to continue. |

## ListWorkerPoolsRequest

Request message for retrieving a list of WorkerPools.

| Fields ||
|---|---|
| `parent` | `string` 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. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `run.workerpools.list` |
| `page_size` | `int32` Maximum number of WorkerPools to return in this call. |
| `page_token` | `string` A page token received from a previous call to ListWorkerPools. All other parameters must match. |
| `show_deleted` | `bool` If true, returns deleted (but unexpired) resources along with active ones. |

## ListWorkerPoolsResponse

Response message containing a list of WorkerPools.

| Fields ||
|---|---|
| `worker_pools[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPool` The resulting list of WorkerPools. |
| `next_page_token` | `string` A token indicating there are more items than page_size. Use it in the next ListWorkerPools request to continue. |

## NFSVolumeSource

Represents an NFS mount.

| Fields ||
|---|---|
| `server` | `string` Hostname or IP address of the NFS server |
| `path` | `string` Path that is exported by the NFS server. |
| `read_only` | `bool` If true, the volume will be mounted as read only for all mounts. |

## NodeSelector

Hardware constraints configuration.

| Fields ||
|---|---|
| `accelerator` | `string` Required. GPU accelerator type to attach to an instance. |

## Probe

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

| Fields ||
|---|---|
| `initial_delay_seconds` | `int32` 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. |
| `timeout_seconds` | `int32` 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. |
| `period_seconds` | `int32` 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. |
| `failure_threshold` | `int32` Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. |
| Union field `probe_type`. `probe_type` can be only one of the following: ||
| `http_get` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.HTTPGetAction` Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified. |
| `tcp_socket` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TCPSocketAction` Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified. |
| `grpc` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GRPCAction` Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified. |

## ResourceRequirements

ResourceRequirements describes the compute resource requirements.

| Fields ||
|---|---|
| `limits` | `map<string, string>` Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported. <br /> 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'. |
| `cpu_idle` | `bool` 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. |
| `startup_cpu_boost` | `bool` 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. |

## Revision

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.

| Fields ||
|---|---|
| `name` | `string` Output only. The unique name of this Revision. |
| `uid` | `string` 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. |
| `generation` | `int64` Output only. A number that monotonically increases every time the user modifies the desired state. |
| `labels` | `map<string, string>` 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>. |
| `annotations` | `map<string, string>` 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. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The creation time. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `service` | `string` Output only. The name of the parent service. |
| `scaling` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionScaling` Scaling settings for this revision. |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` VPC Access configuration for this Revision. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `max_instance_request_concurrency` | `int32` Sets the maximum number of requests that each serving instance can receive. |
| `timeout` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` Max allowed time for an instance to respond to a request. |
| `service_account` | `string` 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. |
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Holds the list which define the units of execution for this Revision. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` A list of Volumes to make available to containers. |
| `execution_environment` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionEnvironment` The execution environment being used to host this Revision. |
| `encryption_key` | `string` 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> |
| `service_mesh` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceMesh` Enables service mesh connectivity. |
| `encryption_key_revocation_action` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EncryptionKeyRevocationAction` The action to take if the encryption key is revoked. |
| `encryption_key_shutdown_duration` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. |
| `reconciling` | `bool` 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state. |
| `observed_generation` | `int64` Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `log_uri` | `string` Output only. The Google Console URI to obtain logs for the Revision. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `session_affinity` | `bool` Enable session affinity. |
| `scaling_status` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionScalingStatus` Output only. The current effective scaling settings for the revision. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` The node selector for the revision. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `client` | `string` Output only. Arbitrary identifier for the API client. |
| `client_version` | `string` Output only. Arbitrary version identifier for the API client. |
| `etag` | `string` Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. Output only. True if GPU zonal redundancy is disabled on this revision. |

## RevisionScaling

Settings for revision-level scaling settings.

| Fields ||
|---|---|
| `min_instance_count` | `int32` Optional. Minimum number of serving instances that this resource should have. |
| `max_instance_count` | `int32` 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> |
| `cpu_utilization` | `float` 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. |
| `concurrency_utilization` | `float` 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. |

## RevisionScalingStatus

Effective settings for the current revision

| Fields ||
|---|---|
| `desired_min_instance_count` | `int32` The current number of min instances provisioned for this revision. |

## RevisionTemplate

RevisionTemplate describes the data a revision should have when created from a template.

| Fields ||
|---|---|
| `revision` | `string` Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name. |
| `labels` | `map<string, string>` 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>. <br /> 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. |
| `annotations` | `map<string, string>` 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. <br /> 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. <br /> This field follows Kubernetes annotations' namespacing, limits, and rules. |
| `scaling` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionScaling` Optional. Scaling settings for this Revision. |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` Optional. VPC Access configuration to use for this Revision. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `timeout` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` Optional. Max allowed time for an instance to respond to a request. |
| `service_account` | `string` 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. |
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Holds the list which define the units of execution for this Revision. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` Optional. A list of Volumes to make available to containers. |
| `execution_environment` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionEnvironment` Optional. The sandbox environment to host this Revision. |
| `encryption_key` | `string` 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> |
| `max_instance_request_concurrency` | `int32` 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`. |
| `service_mesh` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceMesh` Optional. Enables service mesh connectivity. |
| `encryption_key_revocation_action` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EncryptionKeyRevocationAction` Optional. The action to take if the encryption key is revoked. |
| `encryption_key_shutdown_duration` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. |
| `session_affinity` | `bool` Optional. Enable session affinity. |
| `health_check_disabled` | `bool` Optional. Disables health checking containers during deployment. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` Optional. The node selector for the revision template. |
| `client` | `string` Optional. Arbitrary identifier for the API client. |
| `client_version` | `string` Optional. Arbitrary version identifier for the API client. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. True if GPU zonal redundancy is disabled on this revision. |

## RunJobRequest

Request message to create a new Execution of a Job.

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. |
| `validate_only` | `bool` Indicates that the request should be validated without actually deleting any resources. |
| `etag` | `string` A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| `overrides` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest.Overrides` Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `overrides`: - `run.jobs.runWithOverrides` |

## Overrides

RunJob Overrides that contains Execution fields to be overridden.

| Fields ||
|---|---|
| `container_overrides[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride` Per container override specification. |
| `task_count` | `int32` Optional. The desired number of tasks the execution should run. Will replace existing task_count value. |
| `timeout` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` 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. |

## ContainerOverride

Per-container override specification.

| Fields ||
|---|---|
| `name` | `string` The name of the container specified as a DNS_LABEL. |
| `args[]` | `string` Optional. Arguments to the entrypoint. Will replace existing args for override. |
| `env[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EnvVar` List of environment variables to set in the container. Will be merged with existing env for override. |
| `clear_args` | `bool` Optional. True if the intention is to clear out existing args list. |

## SecretKeySelector

SecretEnvVarSource represents a source for the value of an EnvVar.

| Fields ||
|---|---|
| `secret` | `string` 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. |
| `version` | `string` The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias. |

## SecretVolumeSource

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.

| Fields ||
|---|---|
| `secret` | `string` 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. |
| `items[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VersionToPath` 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. |
| `default_mode` | `int32` 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. |

## Service

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.

| Fields ||
|---|---|
| `name` | `string` 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} |
| `description` | `string` User-provided description of the Service. This field currently has a 512-character limit. |
| `uid` | `string` 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. |
| `generation` | `int64` 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`. |
| `labels` | `map<string, string>` 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>. <br /> 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. |
| `annotations` | `map<string, string>` 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. <br /> 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. <br /> This field follows Kubernetes annotations' namespacing, limits, and rules. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The creation time. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the time after which it will be permanently deleted. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `last_modifier` | `string` Output only. Email address of the last authenticated modifier. |
| `client` | `string` Arbitrary identifier for the API client. |
| `client_version` | `string` Arbitrary version identifier for the API client. |
| `ingress` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.IngressTraffic` 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. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `binary_authorization` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BinaryAuthorization` Optional. Settings for the Binary Authorization feature. |
| `template` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.RevisionTemplate` Required. The template used to create revisions for this Service. |
| `traffic[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTarget` 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. |
| `scaling` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceScaling` Optional. Specifies service-level scaling settings |
| `invoker_iam_disabled` | `bool` 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>. |
| `default_uri_disabled` | `bool` Optional. Disables public resolution of the default URI of this service. |
| `urls[]` | `string` Output only. All URLs serving traffic for this Service. |
| `iap_enabled` | `bool` Optional. IAP settings on the Service. |
| `multi_region_settings` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service.MultiRegionSettings` Optional. Settings for multi-region deployment. |
| `custom_audiences[]` | `string` 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>. |
| `observed_generation` | `int64` 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`. |
| `terminal_condition` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` 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. |
| `latest_ready_revision` | `string` Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `latest_created_revision` | `string` Output only. Name of the last created revision. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `traffic_statuses[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTargetStatus` Output only. Detailed status information for corresponding traffic targets. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `uri` | `string` Output only. The main URI in which this Service is serving traffic. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `threat_detection_enabled` | `bool` Output only. True if Cloud Run Threat Detection monitoring is enabled for the parent project of this Service. |
| `build_config` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BuildConfig` Optional. Configuration for building a Cloud Run function. |
| `reconciling` | `bool` 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`. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| `ssh_enabled` | `bool` Optional. Enables SSH access to the Service. |

## MultiRegionSettings

Settings for multi-region deployment.

| Fields ||
|---|---|
| `regions[]` | `string` Required. List of regions to deploy to, including primary region. |
| `multi_region_id` | `string` Optional. System-generated unique id for the multi-region Service. |

## ServiceMesh

Settings for Cloud Service Mesh. For more information see <https://cloud.google.com/service-mesh/docs/overview>.

| Fields ||
|---|---|
| `mesh` | `string` The Mesh resource name. Format: `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can be project id or number. |

## ServiceScaling

Scaling settings applied at the service level rather than at the revision level.

| Fields ||
|---|---|
| `min_instance_count` | `int32` 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. |
| `scaling_mode` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceScaling.ScalingMode` Optional. The scaling mode for the service. |
| `max_instance_count` | `int32` 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. |
| `manual_instance_count` | `int32` 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. |

## ScalingMode

The scaling mode for the service. If not provided, it defaults to AUTOMATIC.

| Enums ||
|---|---|
| `SCALING_MODE_UNSPECIFIED` | Unspecified. |
| `AUTOMATIC` | Scale based on traffic between min and max instances. |
| `MANUAL` | Scale to exactly min instances and ignore max instances. |

## SourceCode

Source type for the container.

| Fields ||
|---|---|
| Union field `source_type`. The source type. `source_type` can be only one of the following: ||
| `cloud_storage_source` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.CloudStorageSource` The source is a Cloud Storage bucket. |
| `inlined_source` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.InlinedSource` 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. |

## CloudStorageSource

Cloud Storage source.

| Fields ||
|---|---|
| `bucket` | `string` Required. The Cloud Storage bucket name. |
| `object` | `string` Required. The Cloud Storage object name. |
| `generation` | `int64` Optional. The Cloud Storage object generation. |

## InlinedSource

Inlined source.

| Fields ||
|---|---|
| `sources[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SourceCode.SourceFile` Required. Input only. The source code. |

## SourceFile

Source file.

| Fields ||
|---|---|
| `filename` | `string` 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. |
| `content` | `string` 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. |

## StartInstanceRequest

Request message for starting an Instance.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Instance to start. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.instances.start` |
| `validate_only` | `bool` Optional. Indicates that the request should be validated without actually stopping any resources. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. |

## StopInstanceRequest

Request message for deleting an Instance.

| Fields ||
|---|---|
| `name` | `string` Required. The name of the Instance to stop. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `run.instances.stop` |
| `validate_only` | `bool` Optional. Indicates that the request should be validated without actually stopping any resources. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. |

## TCPSocketAction

TCPSocketAction describes an action based on opening a socket

| Fields ||
|---|---|
| `port` | `int32` 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. |

## Task

Task represents a single run of a container to completion.

| Fields ||
|---|---|
| `name` | `string` Output only. The unique name of this Task. |
| `uid` | `string` 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. |
| `generation` | `int64` Output only. A number that monotonically increases every time the user modifies the desired state. |
| `labels` | `map<string, string>` 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> |
| `annotations` | `map<string, string>` 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. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `scheduled_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `start_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. |
| `completion_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` 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. |
| `job` | `string` Output only. The name of the parent Job. |
| `execution` | `string` Output only. The name of the parent Execution. |
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Holds the single container that defines the unit of execution for this task. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` A list of Volumes to make available to containers. |
| `max_retries` | `int32` Number of retries allowed per Task, before marking this Task failed. |
| `timeout` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` 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. |
| `service_account` | `string` 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. |
| `execution_environment` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionEnvironment` The execution environment being used to host this Task. |
| `reconciling` | `bool` 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state. |
| `observed_generation` | `int64` Output only. The generation of this Task. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud Run. |
| `index` | `int32` Output only. Index of the Task, unique per execution, and beginning at 0. |
| `retried` | `int32` Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit. |
| `last_attempt_result` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TaskAttemptResult` Output only. Result of the last attempt of this Task. |
| `encryption_key` | `string` 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> |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` Output only. VPC Access configuration to use for this Task. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `log_uri` | `string` Output only. URI where logs for this execution can be found in Cloud Console. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` Output only. The node selector for the task. |
| `etag` | `string` Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. Output only. True if GPU zonal redundancy is disabled on this task. |

## TaskAttemptResult

Result of a task attempt.

| Fields ||
|---|---|
| `status` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.rpc#google.rpc.Status` Output only. The status of this attempt. If the status code is OK, then the attempt succeeded. |
| `exit_code` | `int32` 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. |
| `term_signal` | `int32` 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. |

## TaskTemplate

TaskTemplate describes the data a task should have when created from a template.

| Fields ||
|---|---|
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Holds the single container that defines the unit of execution for this task. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` Optional. A list of Volumes to make available to containers. |
| `timeout` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` 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. |
| `service_account` | `string` 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. |
| `execution_environment` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ExecutionEnvironment` Optional. The execution environment being used to host this Task. |
| `encryption_key` | `string` 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> |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` Optional. VPC Access configuration to use for this Task. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` Optional. The node selector for the task template. |
| Union field `retries`. `retries` can be only one of the following: ||
| `max_retries` | `int32` Number of retries allowed per Task, before marking this Task failed. Defaults to 3. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. True if GPU zonal redundancy is disabled on this task template. |

## TrafficTarget

Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTargetAllocationType` The allocation type for this traffic target. |
| `revision` | `string` Revision to which to send this portion of traffic, if traffic allocation is by revision. |
| `percent` | `int32` Specifies percent of the traffic to this Revision. This defaults to zero if unspecified. |
| `tag` | `string` Indicates a string to be part of the URI to exclusively reference this target. |

## TrafficTargetAllocationType

The type of instance allocation.

| Enums ||
|---|---|
| `TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED` | Unspecified instance allocation type. |
| `TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST` | Allocates instances to the Service's latest ready Revision. |
| `TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION` | Allocates instances to a Revision by name. |

## TrafficTargetStatus

Represents the observed state of a single `TrafficTarget` entry.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.TrafficTargetAllocationType` The allocation type for this traffic target. |
| `revision` | `string` Revision to which this traffic is sent. |
| `percent` | `int32` Specifies percent of the traffic to this Revision. |
| `tag` | `string` Indicates the string used in the URI to exclusively reference this target. |
| `uri` | `string` Displays the target URI. |

## UpdateInstanceRequest

Request message for updating an Instance.

| Fields ||
|---|---|
| `update_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Optional. The list of fields to be updated. |
| `instance` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Instance` Required. The Instance to be updated. |
| `validate_only` | `bool` Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
| `allow_missing` | `bool` Optional. If set to `true`, and if the Instance does not exist, it will create a new one. The caller must have `run.instances.create` permissions if this is set to `true` and the Instance does not exist. |

## UpdateJobRequest

Request message for updating a Job.

| Fields ||
|---|---|
| `job` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Job` Required. The Job to be updated. |
| `validate_only` | `bool` Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
| `allow_missing` | `bool` 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. |

## UpdateServiceRequest

Request message for updating a service.

| Fields ||
|---|---|
| `update_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Optional. The list of fields to be updated. |
| `service` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Service` Required. The Service to be updated. |
| `validate_only` | `bool` Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
| `allow_missing` | `bool` 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. |
| `force_new_revision` | `bool` 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. |

## UpdateWorkerPoolRequest

Request message for updating a worker pool.

| Fields ||
|---|---|
| `update_mask` | `https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` Optional. The list of fields to be updated. |
| `worker_pool` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPool` Required. The WorkerPool to be updated. |
| `validate_only` | `bool` Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
| `allow_missing` | `bool` 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. |
| `force_new_revision` | `bool` 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. |

## VersionToPath

VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.

| Fields ||
|---|---|
| `path` | `string` Required. The relative path of the secret in the container. |
| `version` | `string` The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version. |
| `mode` | `int32` 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. |

## Volume

Volume represents a named volume in a container.

| Fields ||
|---|---|
| `name` | `string` Required. Volume's name. |
| Union field `volume_type`. `volume_type` can be only one of the following: ||
| `secret` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.SecretVolumeSource` Secret represents a secret that should populate this volume. |
| `cloud_sql_instance` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.CloudSqlInstance` 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. |
| `empty_dir` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EmptyDirVolumeSource` Ephemeral storage used as a shared volume. |
| `nfs` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NFSVolumeSource` For NFS Voumes, contains the path to the nfs Volume |
| `gcs` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.GCSVolumeSource` Persistent storage backed by a Google Cloud Storage bucket. |

## VolumeMount

VolumeMount describes a mounting of a Volume within a container.

| Fields ||
|---|---|
| `name` | `string` Required. This must match the Name of a Volume. |
| `mount_path` | `string` 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> |
| `sub_path` | `string` 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. |

## VpcAccess

VPC Access settings. For more information on sending traffic to a VPC network, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>.

| Fields ||
|---|---|
| `connector` | `string` 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>. |
| `egress` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess.VpcEgress` Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY. |
| `network_interfaces[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess.NetworkInterface` Optional. Direct VPC egress settings. Currently only single network interface is supported. |

## NetworkInterface

Direct VPC egress settings.

| Fields ||
|---|---|
| `network` | `string` 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. |
| `subnetwork` | `string` 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. |
| `tags[]` | `string` Optional. Network tags applied to this Cloud Run resource. |

## VpcEgress

Egress options for VPC access.

| Enums ||
|---|---|
| `VPC_EGRESS_UNSPECIFIED` | Unspecified |
| `ALL_TRAFFIC` | All outbound traffic is routed through the VPC connector. |
| `PRIVATE_RANGES_ONLY` | Only private IP ranges are routed through the VPC connector. |

## WorkerPool

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.

| Fields ||
|---|---|
| `name` | `string` 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}` |
| `description` | `string` User-provided description of the WorkerPool. This field currently has a 512-character limit. |
| `uid` | `string` 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. |
| `generation` | `int64` 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`. |
| `labels` | `map<string, string>` 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. |
| `annotations` | `map<string, string>` 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. <br /> This field follows Kubernetes annotations' namespacing, limits, and rules. |
| `create_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The creation time. |
| `update_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The last-modified time. |
| `delete_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. The deletion time. It is only populated as a response to a Delete request. |
| `expire_time` | `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` Output only. For a deleted resource, the time after which it will be permamently deleted. |
| `creator` | `string` Output only. Email address of the authenticated creator. |
| `last_modifier` | `string` Output only. Email address of the last authenticated modifier. |
| `client` | `string` Arbitrary identifier for the API client. |
| `client_version` | `string` Arbitrary version identifier for the API client. |
| `launch_stage` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.api#google.api.LaunchStage` 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. |
| `binary_authorization` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.BinaryAuthorization` Optional. Settings for the Binary Authorization feature. |
| `template` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPoolRevisionTemplate` Required. The template used to create revisions for this WorkerPool. |
| `instance_splits[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplit` 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. |
| `scaling` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.WorkerPoolScaling` Optional. Specifies worker-pool-level scaling settings |
| `observed_generation` | `int64` 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`. |
| `terminal_condition` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` 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. |
| `conditions[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Condition` 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. |
| `latest_ready_revision` | `string` Output only. Name of the latest revision that is serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `latest_created_revision` | `string` Output only. Name of the last created revision. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `instance_split_statuses[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.InstanceSplitStatus` Output only. Detailed status information for corresponding instance splits. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. |
| `threat_detection_enabled` | `bool` Output only. Indicates whether Cloud Run Threat Detection monitoring is enabled for the parent project of this worker pool. |
| `custom_audiences[] (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated: Not supported, and ignored by Cloud Run. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `reconciling` | `bool` 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`. |
| `etag` | `string` Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |

## WorkerPoolRevisionTemplate

WorkerPoolRevisionTemplate describes the data a worker pool revision should have when created from a template.

| Fields ||
|---|---|
| `revision` | `string` Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name. |
| `labels` | `map<string, string>` 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. |
| `annotations` | `map<string, string>` 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. |
| `vpc_access` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.VpcAccess` Optional. VPC Access configuration to use for this Revision. For more information, visit <https://cloud.google.com/run/docs/configuring/connecting-vpc>. |
| `service_account` | `string` 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. |
| `containers[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Container` Holds list of the containers that defines the unit of execution for this Revision. |
| `volumes[]` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.Volume` Optional. A list of Volumes to make available to containers. |
| `encryption_key` | `string` 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> |
| `service_mesh` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.ServiceMesh` Optional. Enables service mesh connectivity. |
| `encryption_key_revocation_action` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.EncryptionKeyRevocationAction` Optional. The action to take if the encryption key is revoked. |
| `encryption_key_shutdown_duration` | `https://protobuf.dev/reference/protobuf/google.protobuf#duration` Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. |
| `node_selector` | `https://docs.cloud.google.com/run/docs/reference/rpc/google.cloud.run.v2#google.cloud.run.v2.NodeSelector` Optional. The node selector for the revision template. |
| `client` | `string` Optional. Arbitrary identifier for the API client. |
| `client_version` | `string` Optional. Arbitrary version identifier for the API client. |
| `gpu_zonal_redundancy_disabled` | `bool` Optional. True if GPU zonal redundancy is disabled on this worker pool. |

## WorkerPoolScaling

Worker pool scaling settings.

| Fields ||
|---|---|
| `manual_instance_count` | `int32` Optional. The total number of instances in manual scaling mode. |