Service Client: Google::Cloud::Run::V2::Revision::RevisionsClient

Client stub representing the remote Revisions gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to run.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Run::V2::Revision - Compiled Protocol Buffers messages for google/cloud/run/v2/revision.proto

SYNOPSIS

use Google::Cloud::Run::V2::Revision;

my $msg = Google::Cloud::Run::V2::Revision::GetRevisionRequest->new({
    name => $name,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::Revision::GetRevisionRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/run/v2/revision.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::Revision::GetRevisionRequest

Request message for obtaining a Revision by its full name.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

Google::Cloud::Run::V2::Revision::ListRevisionsRequest

Request message for retrieving a list of Revisions.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: 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}

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of revisions to return in this call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A page token received from a previous call to ListRevisions. All other parameters must match.

  • $msg->show_deleted() / $msg->show_deleted($value)

    Type: Bool

    If true, returns deleted (but unexpired) resources along with active ones.

Google::Cloud::Run::V2::Revision::ListRevisionsResponse

Response message containing a list of Revisions.

Inherits from Protobuf::Message.

Accessors

  • $msg->revisions() / $msg->revisions($value)

    Type: Message (Google::Cloud::Run::V2::Revision::Revision)

    The resulting list of Revisions.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token indicating there are more items than page_size. Use it in the next ListRevisions request to continue.

Google::Cloud::Run::V2::Revision::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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Indicates that the request should be validated without actually deleting any resources.

  • $msg->etag() / $msg->etag($value)

    Type: String

    A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates.

Google::Cloud::Run::V2::Revision::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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The unique name of this Revision.

  • $msg->uid() / $msg->uid($value)

    Type: 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.

  • $msg->generation() / $msg->generation($value)

    Type: Int64

    Output only. A number that monotonically increases every time the user modifies the desired state.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Run::V2::Revision::Revision::LabelsEntry)

    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.

  • $msg->annotations() / $msg->annotations($value)

    Type: Message (Google::Cloud::Run::V2::Revision::Revision::AnnotationsEntry)

    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.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The creation time.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The last-modified time.

  • $msg->delete_time() / $msg->delete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::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.

  • $msg->launch_stage() / $msg->launch_stage($value)

    Type: Enum (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.

  • $msg->service() / $msg->service($value)

    Type: String

    Output only. The name of the parent service.

  • $msg->scaling() / $msg->scaling($value)

    Type: Message (Google::Cloud::Run::V2::VendorSettings::RevisionScaling)

    Scaling settings for this revision.

  • $msg->vpc_access() / $msg->vpc_access($value)

    Type: Message (Google::Cloud::Run::V2::VendorSettings::VpcAccess)

    VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

  • $msg->max_instance_request_concurrency() / $msg->max_instance_request_concurrency($value)

    Type: Int32

    Sets the maximum number of requests that each serving instance can receive.

  • $msg->timeout() / $msg->timeout($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Max allowed time for an instance to respond to a request.

  • $msg->service_account() / $msg->service_account($value)

    Type: 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.

  • $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)

    Output only. Configuration for sandboxes.

  • $msg->volumes() / $msg->volumes($value)

    Type: Message (Google::Cloud::Run::V2::K8sMin::Volume)

    A list of Volumes to make available to containers.

  • $msg->execution_environment() / $msg->execution_environment($value)

    Type: Enum (Google::Cloud::Run::V2::ExecutionEnvironment)

    The execution environment being used to host this Revision.

  • $msg->encryption_key() / $msg->encryption_key($value)

    Type: 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

  • $msg->service_mesh() / $msg->service_mesh($value)

    Type: Message (Google::Cloud::Run::V2::VendorSettings::ServiceMesh)

    Enables service mesh connectivity.

  • $msg->encryption_key_revocation_action() / $msg->encryption_key_revocation_action($value)

    Type: Enum (Google::Cloud::Run::V2::EncryptionKeyRevocationAction)

    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)

    If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.

  • $msg->reconciling() / $msg->reconciling($value)

    Type: 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.

  • $msg->conditions() / $msg->conditions($value)

    Type: Message (Google::Cloud::Run::V2::Condition::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.

  • $msg->observed_generation() / $msg->observed_generation($value)

    Type: Int64

    Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.

  • $msg->log_uri() / $msg->log_uri($value)

    Type: String

    Output only. The Google Console URI to obtain logs for the Revision.

  • $msg->satisfies_pzs() / $msg->satisfies_pzs($value)

    Type: Bool

    Output only. Reserved for future use.

  • $msg->session_affinity() / $msg->session_affinity($value)

    Type: Bool

    Enable session affinity.

  • $msg->scaling_status() / $msg->scaling_status($value)

    Type: Message (Google::Cloud::Run::V2::Status::RevisionScalingStatus)

    Output only. The current effective scaling settings for the revision.

  • $msg->node_selector() / $msg->node_selector($value)

    Type: Message (Google::Cloud::Run::V2::VendorSettings::NodeSelector)

    The node selector for the revision.

  • $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: Bool

    Optional. Output only. True if GPU zonal redundancy is disabled on this revision.

  • $msg->creator() / $msg->creator($value)

    Type: String

    Output only. Email address of the authenticated creator.

  • $msg->client() / $msg->client($value)

    Type: String

    Output only. Arbitrary identifier for the API client.

  • $msg->client_version() / $msg->client_version($value)

    Type: String

    Output only. Arbitrary version identifier for the API client.

  • $msg->ambient_networking() / $msg->ambient_networking($value)

    Type: Message (Google::Cloud::Run::V2::VendorSettings::AmbientNetworking)

    Output only. The ambient networking configuration for this revision.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Run::V2::Revision::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.