# Cloud Run V2 API - Class Google::Cloud::Run::V2::Execution (v0.29.0)

0.29.0 (latest) 0.28.1 0.27.0 0.26.0 0.25.0 0.24.1 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.1 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::Execution.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotations

    def annotations() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

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

### #cancelled_count

    def cancelled_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of tasks which reached phase Cancelled.

### #completion_time

    def completion_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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.

### #conditions

    def conditions() -> ::Array<::Google::Cloud::Run::V2::Condition>

**Returns**

- (::Array\<[::Google::Cloud::Run::V2::Condition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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.

### #creator

    def creator() -> ::String

**Returns**

- (::String) --- Output only. Email address of the authenticated creator.

### #delete_time

    def delete_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Protobuf-Timestamp)) --- Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

### #etag

    def etag() -> ::String

**Returns**

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

### #expire_time

    def expire_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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.

### #failed_count

    def failed_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of tasks which reached phase Failed.

### #generation

    def generation() -> ::Integer

**Returns**

- (::Integer) --- Output only. A number that monotonically increases every time the user modifies the desired state.

### #job

    def job() -> ::String

**Returns**

- (::String) --- Output only. The name of the parent Job.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::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

### #launch_stage

    def launch_stage() -> ::Google::Api::LaunchStage

**Returns**

- ([::Google::Api::LaunchStage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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 were, this field will be
  BETA.

### #launch_stage=

    def launch_stage=(value) -> ::Google::Api::LaunchStage

**Parameter**

- **value** ([::Google::Api::LaunchStage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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 were, this field will be
  BETA.
**Returns**

- ([::Google::Api::LaunchStage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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 were, this field will be
  BETA.

### #log_uri

    def log_uri() -> ::String

**Returns**

- (::String) --- Output only. URI where logs for this execution can be found in Cloud Console.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The unique name of this Execution.

### #observed_generation

    def observed_generation() -> ::Integer

**Returns**

- (::Integer) --- Output only. The generation of this Execution. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.

### #parallelism

    def parallelism() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #reconciling

    def reconciling() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #retried_count

    def retried_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of tasks which have retried at least once.

### #running_count

    def running_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of actively running tasks.

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Reserved for future use.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/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.

### #succeeded_count

    def succeeded_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of tasks which reached phase Succeeded.

### #task_count

    def task_count() -> ::Integer

**Returns**

- (::Integer) --- 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

    def template() -> ::Google::Cloud::Run::V2::TaskTemplate

**Returns**

- ([::Google::Cloud::Run::V2::TaskTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-TaskTemplate)) --- Output only. The template used to create tasks for this execution.

### #uid

    def uid() -> ::String

**Returns**

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

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The last-modified time.