Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::LifecyclePolicy.
LifecyclePolicy describes how to deal with task failures based on different conditions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::Google::Cloud::Batch::V1::LifecyclePolicy::Action
Returns
- (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — Action to execute when ActionCondition is true.
#action=
def action=(value) -> ::Google::Cloud::Batch::V1::LifecyclePolicy::Action
Parameter
- value (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — Action to execute when ActionCondition is true.
Returns
- (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — Action to execute when ActionCondition is true.
#action_condition
def action_condition() -> ::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition
Returns
- (::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition) — Conditions that decide why a task failure is dealt with a specific action.
#action_condition=
def action_condition=(value) -> ::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition
Parameter
- value (::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition) — Conditions that decide why a task failure is dealt with a specific action.
Returns
- (::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition) — Conditions that decide why a task failure is dealt with a specific action.