# Google Cloud Deploy V1 API - Class Google::Cloud::Deploy::V1::RepairRolloutRule (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.0 2.2.0 2.1.1 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.0 1.0.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::RepairRolloutRule.

The `RepairRolloutRule` automation rule will automatically repair a failed
`Rollout`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #condition

    def condition() -> ::Google::Cloud::Deploy::V1::AutomationRuleCondition

**Returns**

- ([::Google::Cloud::Deploy::V1::AutomationRuleCondition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-AutomationRuleCondition)) --- Output only. Information around the state of the 'Automation' rule.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
**Returns**

- (::String) --- Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.

### #jobs

    def jobs() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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])?$`.

### #jobs=

    def jobs=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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])?$`.
**Returns**

- (::Array\<::String\>) --- 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])?$`.

### #phases

    def phases() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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])?$`.

### #phases=

    def phases=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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])?$`.
**Returns**

- (::Array\<::String\>) --- 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])?$`.

### #repair_phases

    def repair_phases() -> ::Array<::Google::Cloud::Deploy::V1::RepairPhaseConfig>

**Returns**

- (::Array\<[::Google::Cloud::Deploy::V1::RepairPhaseConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RepairPhaseConfig)\>) --- Required. Defines the types of automatic repair phases for failed jobs.

### #repair_phases=

    def repair_phases=(value) -> ::Array<::Google::Cloud::Deploy::V1::RepairPhaseConfig>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Deploy::V1::RepairPhaseConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RepairPhaseConfig)\>) --- Required. Defines the types of automatic repair phases for failed jobs.
**Returns**

- (::Array\<[::Google::Cloud::Deploy::V1::RepairPhaseConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RepairPhaseConfig)\>) --- Required. Defines the types of automatic repair phases for failed jobs.