public sealed class LifecyclePolicy : IMessage<LifecyclePolicy>, IEquatable<LifecyclePolicy>, IDeepCloneable<LifecyclePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class LifecyclePolicy.
LifecyclePolicy describes how to deal with task failures
based on different conditions.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The content provides documentation for the `LifecyclePolicy` class within the Google Cloud Batch v1 API, focusing on how task failures are handled under various conditions."],["It lists all of the available versions for the class from `1.0.0` to `2.13.0`, with `2.13.0` being the latest version."],["`LifecyclePolicy` implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for deep cloning, equality comparisons, and protocol buffer message functionality."],["The `LifecyclePolicy` class has two constructors, a default one and another that accepts another `LifecyclePolicy` instance to create a new one from the provided instance."],["The class has the properties of `Action`, which defines the action to take, and `ActionCondition`, which are the conditions that trigger the action, and are of their respective types `LifecyclePolicy.Types.Action` and `LifecyclePolicy.Types.ActionCondition`."]]],[]]