Batch v1 API - Class LifecyclePolicy (1.1.0)

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.

Inheritance

Object > LifecyclePolicy

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.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.

Property Value
Type Description
LifecyclePolicy.Types.Action

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
LifecyclePolicy.Types.ActionCondition

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月05日 UTC.