Debian Codegraph @

docs/dyn/clouddeploy_v1.projects.locations.deliveryPipelines.automations.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="clouddeploy_v1.html">Cloud Deploy API</a> . <a href="clouddeploy_v1.projects.html">projects</a> . <a href="clouddeploy_v1.projects.locations.html">locations</a> . <a href="clouddeploy_v1.projects.locations.deliveryPipelines.html">deliveryPipelines</a> . <a href="clouddeploy_v1.projects.locations.deliveryPipelines.automations.html">automations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, automationId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Automation in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, allowMissing=None, etag=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Automation resource.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single Automation.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Automations in a given project and location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single Automation resource.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, automationId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
106 <pre>Creates a new Automation in a given project and location.
107
108 Args:
109 parent: string, Required. The parent collection in which the `Automation` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # 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.
114 &quot;annotations&quot;: { # 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 (`/`). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.
115 &quot;a_key&quot;: &quot;A String&quot;,
116 },
117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was created.
118 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the `Automation`. Max length is 255 characters.
119 &quot;etag&quot;: &quot;A String&quot;, # 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.
120 &quot;labels&quot;: { # Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 63 characters.
121 &quot;a_key&quot;: &quot;A String&quot;,
122 },
123 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
124 &quot;rules&quot;: [ # 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.
125 { # `AutomationRule` defines the automation activities.
126 &quot;advanceRolloutRule&quot;: { # The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase. # Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
127 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
128 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
129 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
130 &quot;A String&quot;,
131 ],
132 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
133 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
134 },
135 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
136 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
137 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
138 { # The targets involved in a single timed promotion.
139 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
140 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
141 },
142 ],
143 },
144 },
145 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
146 &quot;sourcePhases&quot;: [ # Optional. Proceeds only after phase name matched any one in the list. 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])?$`.
147 &quot;A String&quot;,
148 ],
149 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait after a rollout is finished.
150 },
151 &quot;promoteReleaseRule&quot;: { # The `PromoteRelease` rule will automatically promote a release from the current target to a specified target. # Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
152 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
153 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
154 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
155 &quot;A String&quot;,
156 ],
157 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
158 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
159 },
160 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
161 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
162 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
163 { # The targets involved in a single timed promotion.
164 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
165 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
166 },
167 ],
168 },
169 },
170 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this operation. Default to the first phase.
171 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
172 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
173 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long the release need to be paused until being promoted to the next target.
174 },
175 &quot;repairRolloutRule&quot;: { # The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`. # Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
176 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the &#x27;Automation&#x27; rule.
177 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
178 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
179 &quot;A String&quot;,
180 ],
181 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
182 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
183 },
184 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
185 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
186 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
187 { # The targets involved in a single timed promotion.
188 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
189 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
190 },
191 ],
192 },
193 },
194 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
195 &quot;jobs&quot;: [ # 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])?$`.
196 &quot;A String&quot;,
197 ],
198 &quot;phases&quot;: [ # 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])?$`.
199 &quot;A String&quot;,
200 ],
201 &quot;repairPhases&quot;: [ # Required. Defines the types of automatic repair phases for failed jobs.
202 { # Configuration of the repair phase.
203 &quot;retry&quot;: { # Retries the failed job. # Optional. Retries a failed job.
204 &quot;attempts&quot;: &quot;A String&quot;, # Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
205 &quot;backoffMode&quot;: &quot;A String&quot;, # Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.
206 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
207 },
208 &quot;rollback&quot;: { # Rolls back a `Rollout`. # Optional. Rolls back a `Rollout`.
209 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.
210 &quot;disableRollbackIfRolloutPending&quot;: True or False, # Optional. If pending rollout exists on the target, the rollback operation will be aborted.
211 },
212 },
213 ],
214 },
215 &quot;timedPromoteReleaseRule&quot;: { # The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule. # Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
216 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
217 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
218 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
219 &quot;A String&quot;,
220 ],
221 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
222 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
223 },
224 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
225 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
226 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
227 { # The targets involved in a single timed promotion.
228 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
229 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
230 },
231 ],
232 },
233 },
234 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this rule. Default to the first phase.
235 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
236 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
237 &quot;schedule&quot;: &quot;A String&quot;, # Required. Schedule in crontab format. e.g. &quot;0 9 * * 1&quot; for every Monday at 9am.
238 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
239 },
240 },
241 ],
242 &quot;selector&quot;: { # AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied. # Required. Selected resources to which the automation will be applied.
243 &quot;targets&quot;: [ # Optional. Contains attributes about a target.
244 { # Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.
245 &quot;id&quot;: &quot;A String&quot;, # Optional. ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name * &quot;*&quot;, all targets in a location
246 &quot;labels&quot;: { # Target labels.
247 &quot;a_key&quot;: &quot;A String&quot;,
248 },
249 },
250 ],
251 },
252 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
253 &quot;suspended&quot;: True or False, # Optional. When Suspended, automation is deactivated from execution.
254 &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Automation`.
255 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was updated.
256 }
257
258 automationId: string, Required. ID of the `Automation`.
259 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
260 validateOnly: boolean, Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
261 x__xgafv: string, V1 error format.
262 Allowed values
263 1 - v1 error format
264 2 - v2 error format
265
266 Returns:
267 An object of the form:
268
269 { # This resource represents a long-running operation that is the result of a network API call.
270 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
271 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
272 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
273 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
274 {
275 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
276 },
277 ],
278 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
279 },
280 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
281 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
282 },
283 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
284 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
285 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
286 },
287 }</pre>
288 </div>
289
290 <div class="method">
291 <code class="details" id="delete">delete(name, allowMissing=None, etag=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
292 <pre>Deletes a single Automation resource.
293
294 Args:
295 name: string, Required. The name of the `Automation` to delete. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. (required)
296 allowMissing: boolean, Optional. If set to true, then deleting an already deleted or non-existing `Automation` will succeed.
297 etag: string, Optional. The weak etag of the request. 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.
298 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
299 validateOnly: boolean, Optional. If set, validate the request and verify whether the resource exists, but do not actually post it.
300 x__xgafv: string, V1 error format.
301 Allowed values
302 1 - v1 error format
303 2 - v2 error format
304
305 Returns:
306 An object of the form:
307
308 { # This resource represents a long-running operation that is the result of a network API call.
309 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
310 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
311 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
312 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
313 {
314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
315 },
316 ],
317 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
318 },
319 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
320 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
321 },
322 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
323 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
325 },
326 }</pre>
327 </div>
328
329 <div class="method">
330 <code class="details" id="get">get(name, x__xgafv=None)</code>
331 <pre>Gets details of a single Automation.
332
333 Args:
334 name: string, Required. Name of the `Automation`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. (required)
335 x__xgafv: string, V1 error format.
336 Allowed values
337 1 - v1 error format
338 2 - v2 error format
339
340 Returns:
341 An object of the form:
342
343 { # 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.
344 &quot;annotations&quot;: { # 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 (`/`). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.
345 &quot;a_key&quot;: &quot;A String&quot;,
346 },
347 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was created.
348 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the `Automation`. Max length is 255 characters.
349 &quot;etag&quot;: &quot;A String&quot;, # 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.
350 &quot;labels&quot;: { # Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 63 characters.
351 &quot;a_key&quot;: &quot;A String&quot;,
352 },
353 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
354 &quot;rules&quot;: [ # 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.
355 { # `AutomationRule` defines the automation activities.
356 &quot;advanceRolloutRule&quot;: { # The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase. # Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
357 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
358 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
359 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
360 &quot;A String&quot;,
361 ],
362 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
363 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
364 },
365 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
366 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
367 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
368 { # The targets involved in a single timed promotion.
369 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
370 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
371 },
372 ],
373 },
374 },
375 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
376 &quot;sourcePhases&quot;: [ # Optional. Proceeds only after phase name matched any one in the list. 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])?$`.
377 &quot;A String&quot;,
378 ],
379 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait after a rollout is finished.
380 },
381 &quot;promoteReleaseRule&quot;: { # The `PromoteRelease` rule will automatically promote a release from the current target to a specified target. # Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
382 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
383 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
384 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
385 &quot;A String&quot;,
386 ],
387 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
388 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
389 },
390 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
391 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
392 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
393 { # The targets involved in a single timed promotion.
394 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
395 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
396 },
397 ],
398 },
399 },
400 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this operation. Default to the first phase.
401 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
402 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
403 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long the release need to be paused until being promoted to the next target.
404 },
405 &quot;repairRolloutRule&quot;: { # The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`. # Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
406 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the &#x27;Automation&#x27; rule.
407 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
408 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
409 &quot;A String&quot;,
410 ],
411 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
412 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
413 },
414 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
415 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
416 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
417 { # The targets involved in a single timed promotion.
418 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
419 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
420 },
421 ],
422 },
423 },
424 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
425 &quot;jobs&quot;: [ # 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])?$`.
426 &quot;A String&quot;,
427 ],
428 &quot;phases&quot;: [ # 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])?$`.
429 &quot;A String&quot;,
430 ],
431 &quot;repairPhases&quot;: [ # Required. Defines the types of automatic repair phases for failed jobs.
432 { # Configuration of the repair phase.
433 &quot;retry&quot;: { # Retries the failed job. # Optional. Retries a failed job.
434 &quot;attempts&quot;: &quot;A String&quot;, # Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
435 &quot;backoffMode&quot;: &quot;A String&quot;, # Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.
436 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
437 },
438 &quot;rollback&quot;: { # Rolls back a `Rollout`. # Optional. Rolls back a `Rollout`.
439 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.
440 &quot;disableRollbackIfRolloutPending&quot;: True or False, # Optional. If pending rollout exists on the target, the rollback operation will be aborted.
441 },
442 },
443 ],
444 },
445 &quot;timedPromoteReleaseRule&quot;: { # The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule. # Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
446 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
447 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
448 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
449 &quot;A String&quot;,
450 ],
451 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
452 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
453 },
454 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
455 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
456 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
457 { # The targets involved in a single timed promotion.
458 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
459 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
460 },
461 ],
462 },
463 },
464 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this rule. Default to the first phase.
465 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
466 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
467 &quot;schedule&quot;: &quot;A String&quot;, # Required. Schedule in crontab format. e.g. &quot;0 9 * * 1&quot; for every Monday at 9am.
468 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
469 },
470 },
471 ],
472 &quot;selector&quot;: { # AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied. # Required. Selected resources to which the automation will be applied.
473 &quot;targets&quot;: [ # Optional. Contains attributes about a target.
474 { # Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.
475 &quot;id&quot;: &quot;A String&quot;, # Optional. ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name * &quot;*&quot;, all targets in a location
476 &quot;labels&quot;: { # Target labels.
477 &quot;a_key&quot;: &quot;A String&quot;,
478 },
479 },
480 ],
481 },
482 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
483 &quot;suspended&quot;: True or False, # Optional. When Suspended, automation is deactivated from execution.
484 &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Automation`.
485 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was updated.
486 }</pre>
487 </div>
488
489 <div class="method">
490 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
491 <pre>Lists Automations in a given project and location.
492
493 Args:
494 parent: string, Required. The parent `Delivery Pipeline`, which owns this collection of automations. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. (required)
495 filter: string, Filter automations to be returned. All fields can be used in the filter.
496 orderBy: string, Field to sort by.
497 pageSize: integer, The maximum number of automations to return. The service may return fewer than this value. If unspecified, at most 50 automations will be returned. The maximum value is 1000; values above 1000 will be set to 1000.
498 pageToken: string, A page token, received from a previous `ListAutomations` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.
499 x__xgafv: string, V1 error format.
500 Allowed values
501 1 - v1 error format
502 2 - v2 error format
503
504 Returns:
505 An object of the form:
506
507 { # The response object from `ListAutomations`.
508 &quot;automations&quot;: [ # The `Automation` objects.
509 { # 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.
510 &quot;annotations&quot;: { # 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 (`/`). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.
511 &quot;a_key&quot;: &quot;A String&quot;,
512 },
513 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was created.
514 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the `Automation`. Max length is 255 characters.
515 &quot;etag&quot;: &quot;A String&quot;, # 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.
516 &quot;labels&quot;: { # Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 63 characters.
517 &quot;a_key&quot;: &quot;A String&quot;,
518 },
519 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
520 &quot;rules&quot;: [ # 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.
521 { # `AutomationRule` defines the automation activities.
522 &quot;advanceRolloutRule&quot;: { # The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase. # Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
523 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
524 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
525 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
526 &quot;A String&quot;,
527 ],
528 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
529 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
530 },
531 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
532 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
533 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
534 { # The targets involved in a single timed promotion.
535 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
536 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
537 },
538 ],
539 },
540 },
541 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
542 &quot;sourcePhases&quot;: [ # Optional. Proceeds only after phase name matched any one in the list. 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])?$`.
543 &quot;A String&quot;,
544 ],
545 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait after a rollout is finished.
546 },
547 &quot;promoteReleaseRule&quot;: { # The `PromoteRelease` rule will automatically promote a release from the current target to a specified target. # Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
548 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
549 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
550 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
551 &quot;A String&quot;,
552 ],
553 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
554 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
555 },
556 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
557 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
558 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
559 { # The targets involved in a single timed promotion.
560 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
561 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
562 },
563 ],
564 },
565 },
566 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this operation. Default to the first phase.
567 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
568 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
569 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long the release need to be paused until being promoted to the next target.
570 },
571 &quot;repairRolloutRule&quot;: { # The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`. # Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
572 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the &#x27;Automation&#x27; rule.
573 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
574 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
575 &quot;A String&quot;,
576 ],
577 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
578 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
579 },
580 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
581 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
582 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
583 { # The targets involved in a single timed promotion.
584 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
585 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
586 },
587 ],
588 },
589 },
590 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
591 &quot;jobs&quot;: [ # 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])?$`.
592 &quot;A String&quot;,
593 ],
594 &quot;phases&quot;: [ # 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])?$`.
595 &quot;A String&quot;,
596 ],
597 &quot;repairPhases&quot;: [ # Required. Defines the types of automatic repair phases for failed jobs.
598 { # Configuration of the repair phase.
599 &quot;retry&quot;: { # Retries the failed job. # Optional. Retries a failed job.
600 &quot;attempts&quot;: &quot;A String&quot;, # Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
601 &quot;backoffMode&quot;: &quot;A String&quot;, # Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.
602 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
603 },
604 &quot;rollback&quot;: { # Rolls back a `Rollout`. # Optional. Rolls back a `Rollout`.
605 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.
606 &quot;disableRollbackIfRolloutPending&quot;: True or False, # Optional. If pending rollout exists on the target, the rollback operation will be aborted.
607 },
608 },
609 ],
610 },
611 &quot;timedPromoteReleaseRule&quot;: { # The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule. # Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
612 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
613 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
614 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
615 &quot;A String&quot;,
616 ],
617 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
618 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
619 },
620 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
621 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
622 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
623 { # The targets involved in a single timed promotion.
624 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
625 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
626 },
627 ],
628 },
629 },
630 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this rule. Default to the first phase.
631 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
632 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
633 &quot;schedule&quot;: &quot;A String&quot;, # Required. Schedule in crontab format. e.g. &quot;0 9 * * 1&quot; for every Monday at 9am.
634 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
635 },
636 },
637 ],
638 &quot;selector&quot;: { # AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied. # Required. Selected resources to which the automation will be applied.
639 &quot;targets&quot;: [ # Optional. Contains attributes about a target.
640 { # Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.
641 &quot;id&quot;: &quot;A String&quot;, # Optional. ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name * &quot;*&quot;, all targets in a location
642 &quot;labels&quot;: { # Target labels.
643 &quot;a_key&quot;: &quot;A String&quot;,
644 },
645 },
646 ],
647 },
648 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
649 &quot;suspended&quot;: True or False, # Optional. When Suspended, automation is deactivated from execution.
650 &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Automation`.
651 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was updated.
652 },
653 ],
654 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
655 &quot;unreachable&quot;: [ # Locations that could not be reached.
656 &quot;A String&quot;,
657 ],
658 }</pre>
659 </div>
660
661 <div class="method">
662 <code class="details" id="list_next">list_next()</code>
663 <pre>Retrieves the next page of results.
664
665 Args:
666 previous_request: The request for the previous page. (required)
667 previous_response: The response from the request for the previous page. (required)
668
669 Returns:
670 A request object that you can call &#x27;execute()&#x27; on to request the next
671 page. Returns None if there are no more items in the collection.
672 </pre>
673 </div>
674
675 <div class="method">
676 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
677 <pre>Updates the parameters of a single Automation resource.
678
679 Args:
680 name: string, Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. (required)
681 body: object, The request body.
682 The object takes the form of:
683
684 { # 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.
685 &quot;annotations&quot;: { # 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 (`/`). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.
686 &quot;a_key&quot;: &quot;A String&quot;,
687 },
688 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was created.
689 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the `Automation`. Max length is 255 characters.
690 &quot;etag&quot;: &quot;A String&quot;, # 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.
691 &quot;labels&quot;: { # Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 63 characters.
692 &quot;a_key&quot;: &quot;A String&quot;,
693 },
694 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
695 &quot;rules&quot;: [ # 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.
696 { # `AutomationRule` defines the automation activities.
697 &quot;advanceRolloutRule&quot;: { # The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase. # Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
698 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
699 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
700 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
701 &quot;A String&quot;,
702 ],
703 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
704 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
705 },
706 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
707 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
708 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
709 { # The targets involved in a single timed promotion.
710 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
711 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
712 },
713 ],
714 },
715 },
716 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
717 &quot;sourcePhases&quot;: [ # Optional. Proceeds only after phase name matched any one in the list. 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])?$`.
718 &quot;A String&quot;,
719 ],
720 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait after a rollout is finished.
721 },
722 &quot;promoteReleaseRule&quot;: { # The `PromoteRelease` rule will automatically promote a release from the current target to a specified target. # Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
723 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
724 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
725 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
726 &quot;A String&quot;,
727 ],
728 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
729 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
730 },
731 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
732 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
733 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
734 { # The targets involved in a single timed promotion.
735 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
736 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
737 },
738 ],
739 },
740 },
741 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this operation. Default to the first phase.
742 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
743 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
744 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long the release need to be paused until being promoted to the next target.
745 },
746 &quot;repairRolloutRule&quot;: { # The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`. # Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
747 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the &#x27;Automation&#x27; rule.
748 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
749 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
750 &quot;A String&quot;,
751 ],
752 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
753 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
754 },
755 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
756 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
757 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
758 { # The targets involved in a single timed promotion.
759 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
760 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
761 },
762 ],
763 },
764 },
765 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
766 &quot;jobs&quot;: [ # 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])?$`.
767 &quot;A String&quot;,
768 ],
769 &quot;phases&quot;: [ # 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])?$`.
770 &quot;A String&quot;,
771 ],
772 &quot;repairPhases&quot;: [ # Required. Defines the types of automatic repair phases for failed jobs.
773 { # Configuration of the repair phase.
774 &quot;retry&quot;: { # Retries the failed job. # Optional. Retries a failed job.
775 &quot;attempts&quot;: &quot;A String&quot;, # Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
776 &quot;backoffMode&quot;: &quot;A String&quot;, # Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.
777 &quot;wait&quot;: &quot;A String&quot;, # Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
778 },
779 &quot;rollback&quot;: { # Rolls back a `Rollout`. # Optional. Rolls back a `Rollout`.
780 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.
781 &quot;disableRollbackIfRolloutPending&quot;: True or False, # Optional. If pending rollout exists on the target, the rollback operation will be aborted.
782 },
783 },
784 ],
785 },
786 &quot;timedPromoteReleaseRule&quot;: { # The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule. # Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
787 &quot;condition&quot;: { # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule. # Output only. Information around the state of the Automation rule.
788 &quot;targetsPresentCondition&quot;: { # `TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist. # Optional. Details around targets enumerated in the rule.
789 &quot;missingTargets&quot;: [ # The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
790 &quot;A String&quot;,
791 ],
792 &quot;status&quot;: True or False, # True if there aren&#x27;t any missing Targets.
793 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the condition was updated.
794 },
795 &quot;timedPromoteReleaseCondition&quot;: { # `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined. # Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
796 &quot;nextPromotionTime&quot;: &quot;A String&quot;, # Output only. When the next scheduled promotion(s) will occur.
797 &quot;targetsList&quot;: [ # Output only. A list of targets involved in the upcoming timed promotion(s).
798 { # The targets involved in a single timed promotion.
799 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The destination target ID.
800 &quot;sourceTargetId&quot;: &quot;A String&quot;, # Optional. The source target ID.
801 },
802 ],
803 },
804 },
805 &quot;destinationPhase&quot;: &quot;A String&quot;, # Optional. The starting phase of the rollout created by this rule. Default to the first phase.
806 &quot;destinationTargetId&quot;: &quot;A String&quot;, # Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * &quot;@next&quot;, the next target in the promotion sequence
807 &quot;id&quot;: &quot;A String&quot;, # 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])?`.
808 &quot;schedule&quot;: &quot;A String&quot;, # Required. Schedule in crontab format. e.g. &quot;0 9 * * 1&quot; for every Monday at 9am.
809 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
810 },
811 },
812 ],
813 &quot;selector&quot;: { # AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied. # Required. Selected resources to which the automation will be applied.
814 &quot;targets&quot;: [ # Optional. Contains attributes about a target.
815 { # Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.
816 &quot;id&quot;: &quot;A String&quot;, # Optional. ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name * &quot;*&quot;, all targets in a location
817 &quot;labels&quot;: { # Target labels.
818 &quot;a_key&quot;: &quot;A String&quot;,
819 },
820 },
821 ],
822 },
823 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
824 &quot;suspended&quot;: True or False, # Optional. When Suspended, automation is deactivated from execution.
825 &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Automation`.
826 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the automation was updated.
827 }
828
829 allowMissing: boolean, Optional. If set to true, updating a `Automation` that does not exist will result in the creation of a new `Automation`.
830 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
831 updateMask: string, Required. Field mask is used to specify the fields to be overwritten by the update in the `Automation` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it&#x27;s in the mask. If the user doesn&#x27;t provide a mask then all fields are overwritten.
832 validateOnly: boolean, Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
833 x__xgafv: string, V1 error format.
834 Allowed values
835 1 - v1 error format
836 2 - v2 error format
837
838 Returns:
839 An object of the form:
840
841 { # This resource represents a long-running operation that is the result of a network API call.
842 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
843 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
844 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
845 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
846 {
847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
848 },
849 ],
850 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
851 },
852 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
853 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
854 },
855 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
856 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
857 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
858 },
859 }</pre>
860 </div>
861
862 </body></html>