NAME
Google::Cloud::Run::V2::RevisionTemplate - Compiled Protocol Buffers messages for google/cloud/run/v2/revision_template.proto
SYNOPSIS
use Google::Cloud::Run::V2::RevisionTemplate;
my $msg = Google::Cloud::Run::V2::RevisionTemplate::RevisionTemplate->new({
revision => $revision,
labels => $labels,
annotations => $annotations,
scaling => $scaling,
});
# Read or update a field
my $val = $msg->revision();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::RevisionTemplate::RevisionTemplate->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/run/v2/revision_template.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::RevisionTemplate::RevisionTemplate
RevisionTemplate describes the data a revision should have when created from a template.
Inherits from Protobuf::Message.
Accessors
$msg->revision()/$msg->revision($value)Type:
StringOptional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Run::V2::RevisionTemplate::RevisionTemplate::LabelsEntry)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.
<p>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.
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Run::V2::RevisionTemplate::RevisionTemplate::AnnotationsEntry)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.
<p>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.
<p>This field follows Kubernetes annotations' namespacing, limits, and rules.
$msg->scaling()/$msg->scaling($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::RevisionScaling)Optional. Scaling settings for this Revision.
$msg->vpc_access()/$msg->vpc_access($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::VpcAccess)Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
$msg->timeout()/$msg->timeout($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. Max allowed time for an instance to respond to a request.
$msg->service_account()/$msg->service_account($value)Type:
StringOptional. 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.
$msg->containers()/$msg->containers($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::Container)Holds the list which define the units of execution for this Revision.
$msg->sandboxes()/$msg->sandboxes($value)Type:
Message(Google::Cloud::Run::V2::Sandbox::SandboxConfiguration)Optional. Configuration for sandboxes.
$msg->volumes()/$msg->volumes($value)Type:
Message(Google::Cloud::Run::V2::K8sMin::Volume)Optional. A list of Volumes to make available to containers.
$msg->execution_environment()/$msg->execution_environment($value)Type:
Enum(Google::Cloud::Run::V2::ExecutionEnvironment)Optional. The sandbox environment to host this Revision.
$msg->encryption_key()/$msg->encryption_key($value)Type:
StringA 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
$msg->max_instance_request_concurrency()/$msg->max_instance_request_concurrency($value)Type:
Int32Optional. 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`.
$msg->service_mesh()/$msg->service_mesh($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::ServiceMesh)Optional. Enables service mesh connectivity.
$msg->encryption_key_revocation_action()/$msg->encryption_key_revocation_action($value)Type:
Enum(Google::Cloud::Run::V2::EncryptionKeyRevocationAction)Optional. The action to take if the encryption key is revoked.
$msg->encryption_key_shutdown_duration()/$msg->encryption_key_shutdown_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
$msg->session_affinity()/$msg->session_affinity($value)Type:
BoolOptional. Enable session affinity.
$msg->health_check_disabled()/$msg->health_check_disabled($value)Type:
BoolOptional. Disables health checking containers during deployment.
$msg->node_selector()/$msg->node_selector($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::NodeSelector)Optional. The node selector for the revision template.
$msg->workload_identity_config()/$msg->workload_identity_config($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::WorkloadIdentityConfig)Optional. The Revision's workload identity settings.
$msg->gpu_zonal_redundancy_disabled()/$msg->gpu_zonal_redundancy_disabled($value)Type:
BoolOptional. True if GPU zonal redundancy is disabled on this revision.
$msg->client()/$msg->client($value)Type:
StringOptional. Arbitrary identifier for the API client.
$msg->client_version()/$msg->client_version($value)Type:
StringOptional. Arbitrary version identifier for the API client.
$msg->ambient_networking()/$msg->ambient_networking($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::AmbientNetworking)Optional. The ambient networking configuration for this revision.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Run::V2::RevisionTemplate::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.