NAME
Google::Cloud::Run::V2::K8sMin - Compiled Protocol Buffers messages for google/cloud/run/v2/k8s.min.proto
SYNOPSIS
use Google::Cloud::Run::V2::K8sMin;
my $msg = Google::Cloud::Run::V2::K8sMin::Container->new({
name => $name,
image => $image,
source_code => $source_code,
command => $command,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::K8sMin::Container->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/run/v2/k8s.min.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Run::V2::K8sMin::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.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the container specified as a DNS_LABEL (RFC 1123).
$msg->image()/$msg->image($value)Type:
StringRequired. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.
$msg->source_code()/$msg->source_code($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::SourceCode)Optional. Location of the source. This field is only supported in Cloud Run Service.
$msg->command()/$msg->command($value)Type:
StringEntrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
$msg->args()/$msg->args($value)Type:
StringArguments to the entrypoint. The docker image's CMD is used if this is not provided.
$msg->env()/$msg->env($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::EnvVar)List of environment variables to set in the container.
$msg->resources()/$msg->resources($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::ResourceRequirements)Compute Resource requirements by this container.
$msg->ports()/$msg->ports($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::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.
$msg->volume_mounts()/$msg->volume_mounts($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::VolumeMount)Volume to mount into the container's filesystem.
$msg->working_dir()/$msg->working_dir($value)Type:
StringContainer's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
$msg->liveness_probe()/$msg->liveness_probe($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::Probe)Periodic probe of container liveness. Container will be restarted if the probe fails.
$msg->startup_probe()/$msg->startup_probe($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::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.
$msg->readiness_probe()/$msg->readiness_probe($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::Probe)Readiness probe to be used for health checks.
$msg->depends_on()/$msg->depends_on($value)Type:
StringNames of the containers that must start before this container.
$msg->base_image_uri()/$msg->base_image_uri($value)Type:
StringBase image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
$msg->build_info()/$msg->build_info($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::BuildInfo)Output only. The build info of the container image.
$msg->sandbox_launcher()/$msg->sandbox_launcher($value)Type:
BoolOptional. Indicates that this container can act as a sandbox supervisor and launch sandboxes.
Google::Cloud::Run::V2::K8sMin::ResourceRequirements
ResourceRequirements describes the compute resource requirements.
Inherits from Protobuf::Message.
Accessors
$msg->limits()/$msg->limits($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::ResourceRequirements::LimitsEntry)Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
<p>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'.
$msg->cpu_idle()/$msg->cpu_idle($value)Type:
BoolDetermines 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.
$msg->startup_cpu_boost()/$msg->startup_cpu_boost($value)Type:
BoolDetermines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
Google::Cloud::Run::V2::K8sMin::EnvVar
EnvVar represents an environment variable present in a Container.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the environment variable. Must not exceed 32768 characters.
$msg->value()/$msg->value($value)Type:
StringLiteral value of the environment variable. Defaults to "", and the maximum length is 32768 bytes. Variable references are not supported in Cloud Run.
$msg->value_source()/$msg->value_source($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::EnvVarSource)Source for the environment variable's value.
Google::Cloud::Run::V2::K8sMin::EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
Inherits from Protobuf::Message.
Accessors
$msg->secret_key_ref()/$msg->secret_key_ref($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::SecretKeySelector)Selects a secret and a specific version from Cloud Secret Manager.
Google::Cloud::Run::V2::K8sMin::SecretKeySelector
SecretEnvVarSource represents a source for the value of an EnvVar.
Inherits from Protobuf::Message.
Accessors
$msg->secret()/$msg->secret($value)Type:
StringRequired. 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.
$msg->version()/$msg->version($value)Type:
StringThe Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.
Google::Cloud::Run::V2::K8sMin::ContainerPort
ContainerPort represents a network port in a single container.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIf specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
$msg->container_port()/$msg->container_port($value)Type:
Int32Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.
Google::Cloud::Run::V2::K8sMin::VolumeMount
VolumeMount describes a mounting of a Volume within a container.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. This must match the Name of a Volume.
$msg->mount_path()/$msg->mount_path($value)Type:
StringRequired. 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
$msg->sub_path()/$msg->sub_path($value)Type:
StringOptional. 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.
Google::Cloud::Run::V2::K8sMin::Volume
Volume represents a named volume in a container.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Volume's name.
$msg->secret()/$msg->secret($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::SecretVolumeSource)Secret represents a secret that should populate this volume.
$msg->cloud_sql_instance()/$msg->cloud_sql_instance($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::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.
$msg->empty_dir()/$msg->empty_dir($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::EmptyDirVolumeSource)Ephemeral storage used as a shared volume.
$msg->nfs()/$msg->nfs($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::NFSVolumeSource)For NFS Voumes, contains the path to the nfs Volume
$msg->gcs()/$msg->gcs($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::GCSVolumeSource)Persistent storage backed by a Google Cloud Storage bucket.
Google::Cloud::Run::V2::K8sMin::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.
Inherits from Protobuf::Message.
Accessors
$msg->secret()/$msg->secret($value)Type:
StringRequired. 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.
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::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.
$msg->default_mode()/$msg->default_mode($value)Type:
Int32Integer 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.
Google::Cloud::Run::V2::K8sMin::VersionToPath
VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.
Inherits from Protobuf::Message.
Accessors
$msg->path()/$msg->path($value)Type:
StringRequired. The relative path of the secret in the container.
$msg->version()/$msg->version($value)Type:
StringThe Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.
$msg->mode()/$msg->mode($value)Type:
Int32Integer 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.
Google::Cloud::Run::V2::K8sMin::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.
Inherits from Protobuf::Message.
Accessors
$msg->instances()/$msg->instances($value)Type:
StringA list of Cloud SQL instance connection names. Cloud Run uses these to establish connections to the specified Cloud SQL instances. While the SQL instance name itself is unique within a project, the full connection name requires the location for proper routing. Format: `{project}:{location}:{instance}` Example: `my-project:us-central1:my-instance`
You can find this value on the instance's Overview page in the Google Cloud console or by using the following `gcloud` command:
```sh gcloud sql instances describe INSTANCE_NAME \ --format='value(connectionName)' ```
Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
Google::Cloud::Run::V2::K8sMin::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).
Inherits from Protobuf::Message.
Accessors
$msg->medium()/$msg->medium($value)Type:
Enum(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.
$msg->size_limit()/$msg->size_limit($value)Type:
StringLimit 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).
Enum: EmptyDirVolumeSource::Medium
MEDIUM_UNSPECIFIED=>0MEMORY=>1DISK=>2
Google::Cloud::Run::V2::K8sMin::NFSVolumeSource
Represents an NFS mount.
Inherits from Protobuf::Message.
Accessors
$msg->server()/$msg->server($value)Type:
StringHostname or IP address of the NFS server
$msg->path()/$msg->path($value)Type:
StringPath that is exported by the NFS server.
$msg->read_only()/$msg->read_only($value)Type:
BoolIf true, the volume will be mounted as read only for all mounts.
Google::Cloud::Run::V2::K8sMin::GCSVolumeSource
Represents a volume backed by a Cloud Storage bucket (mounted via Cloud Storage FUSE or as a block device disk).
Inherits from Protobuf::Message.
Accessors
$msg->bucket()/$msg->bucket($value)Type:
StringCloud Storage Bucket name.
$msg->read_only()/$msg->read_only($value)Type:
BoolIf true, the volume will be mounted as read only for all mounts.
$msg->mount_options()/$msg->mount_options($value)Type:
StringA list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading "--".
Google::Cloud::Run::V2::K8sMin::Probe
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Inherits from Protobuf::Message.
Accessors
$msg->initial_delay_seconds()/$msg->initial_delay_seconds($value)Type:
Int32Optional. 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.
$msg->timeout_seconds()/$msg->timeout_seconds($value)Type:
Int32Optional. 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.
$msg->period_seconds()/$msg->period_seconds($value)Type:
Int32Optional. 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.
$msg->failure_threshold()/$msg->failure_threshold($value)Type:
Int32Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
$msg->http_get()/$msg->http_get($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::HTTPGetAction)Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
$msg->tcp_socket()/$msg->tcp_socket($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::TCPSocketAction)Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
$msg->grpc()/$msg->grpc($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::GRPCAction)Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
Google::Cloud::Run::V2::K8sMin::HTTPGetAction
HTTPGetAction describes an action based on HTTP Get requests.
Inherits from Protobuf::Message.
Accessors
$msg->path()/$msg->path($value)Type:
StringOptional. Path to access on the HTTP server. Defaults to '/'.
$msg->http_headers()/$msg->http_headers($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::HTTPHeader)Optional. Custom headers to set in the request. HTTP allows repeated headers.
$msg->port()/$msg->port($value)Type:
Int32Optional. 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.
Google::Cloud::Run::V2::K8sMin::HTTPHeader
HTTPHeader describes a custom header to be used in HTTP probes
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The header field name
$msg->value()/$msg->value($value)Type:
StringOptional. The header field value
Google::Cloud::Run::V2::K8sMin::TCPSocketAction
TCPSocketAction describes an action based on opening a socket
Inherits from Protobuf::Message.
Accessors
$msg->port()/$msg->port($value)Type:
Int32Optional. 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.
Google::Cloud::Run::V2::K8sMin::GRPCAction
GRPCAction describes an action involving a GRPC port.
Inherits from Protobuf::Message.
Accessors
$msg->port()/$msg->port($value)Type:
Int32Optional. 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.
$msg->service()/$msg->service($value)Type:
StringOptional. 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.
Google::Cloud::Run::V2::K8sMin::BuildInfo
Build information of the image.
Inherits from Protobuf::Message.
Accessors
$msg->function_target()/$msg->function_target($value)Type:
StringOutput only. Entry point of the function when the image is a Cloud Run function.
$msg->source_location()/$msg->source_location($value)Type:
StringOutput only. Source code location of the image.
Google::Cloud::Run::V2::K8sMin::SourceCode
Source type for the container.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_storage_source()/$msg->cloud_storage_source($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::SourceCode::CloudStorageSource)The source is a Cloud Storage bucket.
$msg->inlined_source()/$msg->inlined_source($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::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. This field is only supported in Cloud Run Service.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Run::V2::K8sMin::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.