Service Client: Google::Cloud::Run::V2::Job::JobsClient
Client stub representing the remote Jobs 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::Job - Compiled Protocol Buffers messages for google/cloud/run/v2/job.proto
SYNOPSIS
use Google::Cloud::Run::V2::Job;
my $msg = Google::Cloud::Run::V2::Job::CreateJobRequest->new({
parent => $parent,
job => $job,
job_id => $job_id,
validate_only => $validate_only,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::Job::CreateJobRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/run/v2/job.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::Job::CreateJobRequest
Request message for creating a Job.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
$msg->job()/$msg->job($value)Type:
Message(Google::Cloud::Run::V2::Job::Job)Required. The Job instance to create.
$msg->job_id()/$msg->job_id($value)Type:
StringOptional. 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`.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIndicates that the request should be validated and default values populated, without persisting the request or creating any resources.
Google::Cloud::Run::V2::Job::GetJobRequest
Request message for obtaining a Job by its full name.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
Google::Cloud::Run::V2::Job::UpdateJobRequest
Request message for updating a Job.
Inherits from Protobuf::Message.
Accessors
$msg->job()/$msg->job($value)Type:
Message(Google::Cloud::Run::V2::Job::Job)Required. The Job to be updated.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIndicates that the request should be validated and default values populated, without persisting the request or updating any resources.
$msg->allow_missing()/$msg->allow_missing($value)Type:
BoolOptional. 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.
Google::Cloud::Run::V2::Job::ListJobsRequest
Request message for retrieving a list of Jobs.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of Jobs to return in this call.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token received from a previous call to ListJobs. All other parameters must match.
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolIf true, returns deleted (but unexpired) resources along with active ones.
Google::Cloud::Run::V2::Job::ListJobsResponse
Response message containing a list of Jobs.
Inherits from Protobuf::Message.
Accessors
$msg->jobs()/$msg->jobs($value)Type:
Message(Google::Cloud::Run::V2::Job::Job)The resulting list of Jobs.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token indicating there are more items than page_size. Use it in the next ListJobs request to continue.
Google::Cloud::Run::V2::Job::DeleteJobRequest
Request message to delete a Job by its full name.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIndicates that the request should be validated without actually deleting any resources.
$msg->etag()/$msg->etag($value)Type:
StringA system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Google::Cloud::Run::V2::Job::RunJobRequest
Request message to create a new Execution of a Job.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIndicates that the request should be validated without actually deleting any resources.
$msg->etag()/$msg->etag($value)Type:
StringA system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
$msg->overrides()/$msg->overrides($value)Type:
Message(Google::Cloud::Run::V2::Job::RunJobRequest::Overrides)Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec.
Google::Cloud::Run::V2::Job::Job
Job represents the configuration of a single job, which references a container image that is run to completion.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe fully qualified name of this Job.
Format: projects/{project}/locations/{location}/jobs/{job}
$msg->uid()/$msg->uid($value)Type:
StringOutput only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
$msg->generation()/$msg->generation($value)Type:
Int64Output 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::Job::Job::LabelsEntry)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 Job.
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Run::V2::Job::Job::AnnotationsEntry)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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.
<p>This field follows Kubernetes annotations' namespacing, limits, and rules.
$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. 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.
$msg->creator()/$msg->creator($value)Type:
StringOutput only. Email address of the authenticated creator.
$msg->last_modifier()/$msg->last_modifier($value)Type:
StringOutput only. Email address of the last authenticated modifier.
$msg->client()/$msg->client($value)Type:
StringArbitrary identifier for the API client.
$msg->client_version()/$msg->client_version($value)Type:
StringArbitrary version identifier for the API client.
$msg->launch_stage()/$msg->launch_stage($value)Type:
Enum(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.
$msg->binary_authorization()/$msg->binary_authorization($value)Type:
Message(Google::Cloud::Run::V2::VendorSettings::BinaryAuthorization)Settings for the Binary Authorization feature.
$msg->template()/$msg->template($value)Type:
Message(Google::Cloud::Run::V2::ExecutionTemplate::ExecutionTemplate)Required. The template used to create executions for this Job.
$msg->observed_generation()/$msg->observed_generation($value)Type:
Int64Output only. The generation of this Job. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
$msg->terminal_condition()/$msg->terminal_condition($value)Type:
Message(Google::Cloud::Run::V2::Condition::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.
$msg->conditions()/$msg->conditions($value)Type:
Message(Google::Cloud::Run::V2::Condition::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.
$msg->execution_count()/$msg->execution_count($value)Type:
Int32Output only. Number of executions created for this job.
$msg->latest_created_execution()/$msg->latest_created_execution($value)Type:
Message(Google::Cloud::Run::V2::Job::ExecutionReference)Output only. Name of the last created execution.
$msg->reconciling()/$msg->reconciling($value)Type:
BoolOutput 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`.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. Reserved for future use.
$msg->start_execution_token()/$msg->start_execution_token($value)Type:
StringA 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.
$msg->run_execution_token()/$msg->run_execution_token($value)Type:
StringA 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.
$msg->functional_type()/$msg->functional_type($value)Type:
Enum(Google::Cloud::Run::V2::FunctionalType)Optional. The functional type of the Job.
$msg->etag()/$msg->etag($value)Type:
StringOptional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Google::Cloud::Run::V2::Job::ExecutionReference
Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the execution.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Creation timestamp of the execution.
$msg->completion_time()/$msg->completion_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Creation timestamp of the execution.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The deletion time of the execution. It is only populated as a response to a Delete request.
$msg->completion_status()/$msg->completion_status($value)Type:
Enum(Google::Cloud::Run::V2::ExecutionReference::CompletionStatus)Status for the execution completion.
Enum: ExecutionReference::CompletionStatus
COMPLETION_STATUS_UNSPECIFIED=>0EXECUTION_SUCCEEDED=>1EXECUTION_FAILED=>2EXECUTION_RUNNING=>3EXECUTION_PENDING=>4EXECUTION_CANCELLED=>5
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Run::V2::Job::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.