View Source GoogleApi.Batch.V1.Model.LifecyclePolicy (google_api_batch v0.3.0)

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

Attributes

  • action (type: String.t, default: nil) - 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.
  • actionCondition (type: GoogleApi.Batch.V1.Model.ActionCondition.t, default: nil) - Conditions that decide why a task failure is dealt with a specific action.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.LifecyclePolicy{
  action: String.t() | nil,
  actionCondition: GoogleApi.Batch.V1.Model.ActionCondition.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.