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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe content provides documentation for the \u003ccode\u003eLifecyclePolicy\u003c/code\u003e class within the Google Cloud Batch v1 API, focusing on how task failures are handled under various conditions.\u003c/p\u003e\n"],["\u003cp\u003eIt lists all of the available versions for the class from \u003ccode\u003e1.0.0\u003c/code\u003e to \u003ccode\u003e2.13.0\u003c/code\u003e, with \u003ccode\u003e2.13.0\u003c/code\u003e being the latest version.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLifecyclePolicy\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for deep cloning, equality comparisons, and protocol buffer message functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLifecyclePolicy\u003c/code\u003e class has two constructors, a default one and another that accepts another \u003ccode\u003eLifecyclePolicy\u003c/code\u003e instance to create a new one from the provided instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class has the properties of \u003ccode\u003eAction\u003c/code\u003e, which defines the action to take, and \u003ccode\u003eActionCondition\u003c/code\u003e, which are the conditions that trigger the action, and are of their respective types \u003ccode\u003eLifecyclePolicy.Types.Action\u003c/code\u003e and \u003ccode\u003eLifecyclePolicy.Types.ActionCondition\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]