public sealed class RepairRolloutRule : IMessage<RepairRolloutRule>, IEquatable<RepairRolloutRule>, IDeepCloneable<RepairRolloutRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class RepairRolloutRule.
The RepairRolloutRule automation rule will automatically repair a failed
Rollout.
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])?$.
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])?$.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRepairRolloutRule\u003c/code\u003e class in the Google Cloud Deploy v1 API is designed to automatically repair a failed \u003ccode\u003eRollout\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis automation rule can be configured to apply to specific jobs and phases, with optional parameters to specify which jobs and phases are subject to repair actions.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is found within the \u003ccode\u003eGoogle.Cloud.Deploy.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepairRolloutRule\u003c/code\u003e has properties such as \u003ccode\u003eCondition\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eJobs\u003c/code\u003e, \u003ccode\u003ePhases\u003c/code\u003e, and \u003ccode\u003eRepairPhases\u003c/code\u003e, which control the behavior of the automation rule when a failure occurs.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation offers access to a wide range of versions for this class, spanning from version 1.0.0 to the latest 3.4.0, each with their respective page.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Deploy v1 API - Class RepairRolloutRule (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.5.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.4.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.3.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.2.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.1.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.0.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.19.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.18.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.17.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.16.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.15.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.14.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.13.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.12.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.11.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.10.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.9.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.8.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.7.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.6.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.5.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.4.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.3.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.2.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.1.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.0.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.1.0/Google.Cloud.Deploy.V1.RepairRolloutRule)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.0.0/Google.Cloud.Deploy.V1.RepairRolloutRule) \n\n public sealed class RepairRolloutRule : IMessage\u003cRepairRolloutRule\u003e, IEquatable\u003cRepairRolloutRule\u003e, IDeepCloneable\u003cRepairRolloutRule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Deploy v1 API class RepairRolloutRule.\n\nThe `RepairRolloutRule` automation rule will automatically repair a failed\n`Rollout`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RepairRolloutRule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RepairRolloutRule](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.RepairRolloutRule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RepairRolloutRule](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.RepairRolloutRule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RepairRolloutRule](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.RepairRolloutRule), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Deploy.V1](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Deploy.V1.dll\n\nConstructors\n------------\n\n### RepairRolloutRule()\n\n public RepairRolloutRule()\n\n### RepairRolloutRule(RepairRolloutRule)\n\n public RepairRolloutRule(RepairRolloutRule other)\n\nProperties\n----------\n\n### Condition\n\n public AutomationRuleCondition Condition { get; set; }\n\nOutput only. Information around the state of the 'Automation' rule.\n\n### Id\n\n public string Id { get; set; }\n\nRequired. ID of the rule. This id must be unique in the `Automation`\nresource to which this rule belongs. The format is\n`[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.\n\n### Jobs\n\n public RepeatedField\u003cstring\u003e Jobs { get; }\n\nOptional. Jobs to repair. Proceeds only after job name matched any one in\nthe list, or for all jobs if unspecified or empty. The phase that includes\nthe job must match the phase ID specified in `source_phase`. This value\nmust consist of lower-case letters, numbers, and hyphens, start with a\nletter and end with a letter or a number, and have a max length of 63\ncharacters. In other words, it must match the following regex:\n`^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.\n\n### Phases\n\n public RepeatedField\u003cstring\u003e Phases { get; }\n\nOptional. Phases within which jobs are subject to automatic repair actions\non failure. Proceeds only after phase name matched any one in the list, or\nfor all phases if unspecified. This value must consist of lower-case\nletters, numbers, and hyphens, start with a letter and end with a letter or\na number, and have a max length of 63 characters. In other words, it must\nmatch the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.\n\n### RepairPhases\n\n public RepeatedField\u003cRepairPhaseConfig\u003e RepairPhases { get; }\n\nRequired. Defines the types of automatic repair phases for failed jobs."]]