1.0.0-alpha36 (latest) 1.0.0-alpha35

    public sealed class LifecyclePolicy : IMessage<LifecyclePolicy>, IEquatable<LifecyclePolicy>, IDeepCloneable<LifecyclePolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1alpha API class LifecyclePolicy.

LifecyclePolicy describes how to deal with task failures
based on different conditions.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LifecyclePolicy

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LifecyclePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LifecyclePolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LifecyclePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LifecyclePolicy.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LifecyclePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LifecyclePolicy.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### LifecyclePolicy()

    public LifecyclePolicy()

### LifecyclePolicy(LifecyclePolicy)

    public LifecyclePolicy(LifecyclePolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LifecyclePolicy` |

## Properties

### Action

    public LifecyclePolicy.Types.Action Action { get; set; }

Action to execute when ActionCondition is true.
When RETRY_TASK is specified, we will retry failed tasks
if we notice any exit code match and fail tasks if no match is found.
Likewise, when FAIL_TASK is specified, we will fail tasks
if we notice any exit code match and retry tasks if no match is found.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LifecyclePolicyTypesAction` |   |

### ActionCondition

    public LifecyclePolicy.Types.ActionCondition ActionCondition { get; set; }

Conditions that decide why a task failure is dealt with a specific action.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LifecyclePolicyTypesActionCondition` |   |