View Source GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule (google_api_cloud_deploy v0.6.0)

The RepairRolloutRule automation rule will automatically repair a failed Rollout.

Attributes

  • condition (type: GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition.t, default: nil) - Output only. Information around the state of the 'Automation' rule.
  • id (type: String.t, default: nil) - Required. ID of the rule. This id must be unique in the Automation resource to which this rule belongs. The format is a-z{0,62}.
  • jobs (type: list(String.t), default: nil) - Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in source_phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
  • repairModes (type: list(GoogleApi.CloudDeploy.V1.Model.RepairMode.t), default: nil) - Required. Defines the types of automatic repair actions for failed jobs.
  • sourcePhases (type: list(String.t), default: nil) - Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule{
  condition: GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition.t() | nil,
  id: String.t() | nil,
  jobs: [String.t()] | nil,
  repairModes: [GoogleApi.CloudDeploy.V1.Model.RepairMode.t()] | nil,
  sourcePhases: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.