public sealed class Automation : IMessage<Automation>, IEquatable<Automation>, IDeepCloneable<Automation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class Automation.
An Automation resource in the Cloud Deploy API.
An Automation enables the automation of manually driven actions for
a Delivery Pipeline, which includes Release promotion among Targets,
Rollout repair and Rollout deployment strategy advancement. The intention
of Automation is to reduce manual intervention in the continuous delivery
process.
public MapField<string, string> Annotations { get; }
Optional. User annotations. These attributes can only be set and used by
the user, and not by Cloud Deploy. Annotations must meet the following
constraints:
Annotations are key/value pairs.
Valid annotation keys have two segments: an optional prefix and name,
separated by a slash (/).
The name segment is required and must be 63 characters or less,
beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with
dashes (-), underscores (_), dots (.), and alphanumerics between.
The prefix is optional. If specified, the prefix must be a DNS subdomain:
a series of DNS labels separated by dots(.), not longer than 253
characters in total, followed by a slash (/).
Optional. The weak etag of the Automation resource.
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
public RepeatedField<AutomationRule> Rules { get; }
Required. List of Automation rules associated with the Automation resource.
Must have at least one rule and limited to 250 rules per Delivery Pipeline.
Note: the order of the rules here is not the same as the order of
execution.
[[["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\u003eThis document provides reference documentation for the Google Cloud Deploy v1 API class \u003ccode\u003eAutomation\u003c/code\u003e, with the latest version being 3.4.0 and numerous previous versions available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAutomation\u003c/code\u003e resources in the Cloud Deploy API enable the automation of manual actions for a Delivery Pipeline, including Release promotion, Rollout repair, and strategy advancement, aiming to reduce manual intervention.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eAutomation\u003c/code\u003e must include at least one rule, with each being part of a set that is limited to 250 rules per Delivery Pipeline, along with a selection of which resources the automation applies to.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eAutomation\u003c/code\u003e resource has several properties, including \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eUpdateTime\u003c/code\u003e, and \u003ccode\u003eLabels\u003c/code\u003e to allow users to track and manage automation processes, as well as an \u003ccode\u003eAutomationName\u003c/code\u003e to allow for an easier view of the resource name property.\u003c/p\u003e\n"],["\u003cp\u003eEach automation resource is associated with a service account, and the resources can be optionally suspended to stop automation from running.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Deploy v1 API - Class Automation (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.Automation)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.5.0/Google.Cloud.Deploy.V1.Automation)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.4.0/Google.Cloud.Deploy.V1.Automation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.3.0/Google.Cloud.Deploy.V1.Automation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.2.0/Google.Cloud.Deploy.V1.Automation)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.1.0/Google.Cloud.Deploy.V1.Automation)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.0.0/Google.Cloud.Deploy.V1.Automation)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.19.0/Google.Cloud.Deploy.V1.Automation)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.18.0/Google.Cloud.Deploy.V1.Automation)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.17.0/Google.Cloud.Deploy.V1.Automation)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.16.0/Google.Cloud.Deploy.V1.Automation)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.15.0/Google.Cloud.Deploy.V1.Automation)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.14.0/Google.Cloud.Deploy.V1.Automation)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.13.0/Google.Cloud.Deploy.V1.Automation)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.12.0/Google.Cloud.Deploy.V1.Automation)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.11.0/Google.Cloud.Deploy.V1.Automation)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.10.0/Google.Cloud.Deploy.V1.Automation)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.9.0/Google.Cloud.Deploy.V1.Automation)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.8.0/Google.Cloud.Deploy.V1.Automation)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.7.0/Google.Cloud.Deploy.V1.Automation)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.6.0/Google.Cloud.Deploy.V1.Automation)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.5.0/Google.Cloud.Deploy.V1.Automation)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.4.0/Google.Cloud.Deploy.V1.Automation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.3.0/Google.Cloud.Deploy.V1.Automation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.2.0/Google.Cloud.Deploy.V1.Automation)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.1.0/Google.Cloud.Deploy.V1.Automation)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.0.0/Google.Cloud.Deploy.V1.Automation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.1.0/Google.Cloud.Deploy.V1.Automation)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.0.0/Google.Cloud.Deploy.V1.Automation) \n\n public sealed class Automation : IMessage\u003cAutomation\u003e, IEquatable\u003cAutomation\u003e, IDeepCloneable\u003cAutomation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Deploy v1 API class Automation.\n\nAn `Automation` resource in the Cloud Deploy API.\n\nAn `Automation` enables the automation of manually driven actions for\na Delivery Pipeline, which includes Release promotion among Targets,\nRollout repair and Rollout deployment strategy advancement. The intention\nof Automation is to reduce manual intervention in the continuous delivery\nprocess. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Automation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Automation](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Automation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Automation](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Automation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Automation](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Automation), [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### Automation()\n\n public Automation()\n\n### Automation(Automation)\n\n public Automation(Automation other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nOptional. User annotations. These attributes can only be set and used by\nthe user, and not by Cloud Deploy. Annotations must meet the following\nconstraints:\n\n- Annotations are key/value pairs.\n- Valid annotation keys have two segments: an optional prefix and name, separated by a slash (`/`).\n- The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.\n- The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(`.`), not longer than 253 characters in total, followed by a slash (`/`).\n\nSee\n\u003chttps://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set\u003e\nfor more details.\n\n### AutomationName\n\n public AutomationName AutomationName { get; set; }\n\n[AutomationName](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.AutomationName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.Automation#Google_Cloud_Deploy_V1_Automation_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time at which the automation was created.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Description of the `Automation`. Max length is 255 characters.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. The weak etag of the `Automation` resource.\nThis checksum is computed by the server based on the value of other\nfields, and may be sent on update and delete requests to ensure the\nclient has an up-to-date value before proceeding.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Labels are attributes that can be set and used by both the\nuser and by Cloud Deploy. Labels must meet the following constraints:\n\n- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.\n- All characters must use UTF-8 encoding, and international characters are allowed.\n- Keys must start with a lowercase letter or international character.\n- Each resource is limited to a maximum of 64 labels.\n\nBoth keys and values are additionally constrained to be \\\u003c= 63 characters.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Name of the `Automation`. Format is\n`projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.\n\n### Rules\n\n public RepeatedField\u003cAutomationRule\u003e Rules { get; }\n\nRequired. List of Automation rules associated with the Automation resource.\nMust have at least one rule and limited to 250 rules per Delivery Pipeline.\nNote: the order of the rules here is not the same as the order of\nexecution.\n\n### Selector\n\n public AutomationResourceSelector Selector { get; set; }\n\nRequired. Selected resources to which the automation will be applied.\n\n### ServiceAccount\n\n public string ServiceAccount { get; set; }\n\nRequired. Email address of the user-managed IAM service account that\ncreates Cloud Deploy release and rollout resources.\n\n### Suspended\n\n public bool Suspended { get; set; }\n\nOptional. When Suspended, automation is deactivated from execution.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. Unique identifier of the `Automation`.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Time at which the automation was updated."]]