Debian Codegraph @

docs/dyn/workflows_v1.projects.locations.workflows.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="workflows_v1.html">Workflows API</a> . <a href="workflows_v1.projects.html">projects</a> . <a href="workflows_v1.projects.locations.html">locations</a> . <a href="workflows_v1.projects.locations.workflows.html">workflows</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, body=None, workflowId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, revisionId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single workflow.</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 workflows in a given project and location. The default order is not specified.</p>
92 <p class="toc_element">
93 <code><a href="#listRevisions">listRevisions(name, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists revisions for a given workflow.</p>
95 <p class="toc_element">
96 <code><a href="#listRevisions_next">listRevisions_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(parent, body=None, workflowId=None, x__xgafv=None)</code>
112 <pre>Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error.
113
114 Args:
115 parent: string, Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Workflow program to be executed by Workflows.
120 &quot;allKmsKeys&quot;: [ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
121 &quot;A String&quot;,
122 ],
123 &quot;allKmsKeysVersions&quot;: [ # Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
124 &quot;A String&quot;,
125 ],
126 &quot;callLogLevel&quot;: &quot;A String&quot;, # Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
127 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
128 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
129 &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # Output only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
130 &quot;description&quot;: &quot;A String&quot;, # Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
131 &quot;executionHistoryLevel&quot;: &quot;A String&quot;, # Optional. Describes the execution history level to apply to this workflow.
132 &quot;labels&quot;: { # Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
133 &quot;a_key&quot;: &quot;A String&quot;,
134 },
135 &quot;name&quot;: &quot;A String&quot;, # The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
136 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for the latest revision of the workflow&#x27;s creation.
137 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
138 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project&#x27;s default service account. Modifying this field for an existing workflow results in a new workflow revision.
139 &quot;sourceContents&quot;: &quot;A String&quot;, # Workflow code to be executed. The size limit is 128KB.
140 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the workflow deployment.
141 &quot;stateError&quot;: { # Describes an error related to the current state of the workflow. # Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
142 &quot;details&quot;: &quot;A String&quot;, # Provides specifics about the error.
143 &quot;type&quot;: &quot;A String&quot;, # The type of this state error.
144 },
145 &quot;tags&quot;: { # Optional. Input only. Immutable. Tags associated with this workflow.
146 &quot;a_key&quot;: &quot;A String&quot;,
147 },
148 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
149 &quot;userEnvVars&quot;: { # Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with &quot;GOOGLE&quot; or &quot;WORKFLOWS&quot;.
150 &quot;a_key&quot;: &quot;A String&quot;,
151 },
152 }
153
154 workflowId: string, Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160 Returns:
161 An object of the form:
162
163 { # This resource represents a long-running operation that is the result of a network API call.
164 &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.
165 &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.
166 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
167 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
168 {
169 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
170 },
171 ],
172 &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.
173 },
174 &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.
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 &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}`.
178 &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`.
179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
180 },
181 }</pre>
182 </div>
183
184 <div class="method">
185 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
186 <pre>Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.
187
188 Args:
189 name: string, Required. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow} (required)
190 x__xgafv: string, V1 error format.
191 Allowed values
192 1 - v1 error format
193 2 - v2 error format
194
195 Returns:
196 An object of the form:
197
198 { # This resource represents a long-running operation that is the result of a network API call.
199 &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.
200 &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.
201 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
202 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
203 {
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 ],
207 &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.
208 },
209 &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.
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 &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}`.
213 &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`.
214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
215 },
216 }</pre>
217 </div>
218
219 <div class="method">
220 <code class="details" id="get">get(name, revisionId=None, x__xgafv=None)</code>
221 <pre>Gets details of a single workflow.
222
223 Args:
224 name: string, Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} (required)
225 revisionId: string, Optional. The revision of the workflow to retrieve. If the revision_id is empty, the latest revision is retrieved. The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded decimal revision number. They are followed by a hyphen and three hexadecimal characters.
226 x__xgafv: string, V1 error format.
227 Allowed values
228 1 - v1 error format
229 2 - v2 error format
230
231 Returns:
232 An object of the form:
233
234 { # Workflow program to be executed by Workflows.
235 &quot;allKmsKeys&quot;: [ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
236 &quot;A String&quot;,
237 ],
238 &quot;allKmsKeysVersions&quot;: [ # Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
239 &quot;A String&quot;,
240 ],
241 &quot;callLogLevel&quot;: &quot;A String&quot;, # Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
242 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
243 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
244 &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # Output only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
245 &quot;description&quot;: &quot;A String&quot;, # Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
246 &quot;executionHistoryLevel&quot;: &quot;A String&quot;, # Optional. Describes the execution history level to apply to this workflow.
247 &quot;labels&quot;: { # Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
250 &quot;name&quot;: &quot;A String&quot;, # The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
251 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for the latest revision of the workflow&#x27;s creation.
252 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
253 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project&#x27;s default service account. Modifying this field for an existing workflow results in a new workflow revision.
254 &quot;sourceContents&quot;: &quot;A String&quot;, # Workflow code to be executed. The size limit is 128KB.
255 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the workflow deployment.
256 &quot;stateError&quot;: { # Describes an error related to the current state of the workflow. # Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
257 &quot;details&quot;: &quot;A String&quot;, # Provides specifics about the error.
258 &quot;type&quot;: &quot;A String&quot;, # The type of this state error.
259 },
260 &quot;tags&quot;: { # Optional. Input only. Immutable. Tags associated with this workflow.
261 &quot;a_key&quot;: &quot;A String&quot;,
262 },
263 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
264 &quot;userEnvVars&quot;: { # Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with &quot;GOOGLE&quot; or &quot;WORKFLOWS&quot;.
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 }</pre>
268 </div>
269
270 <div class="method">
271 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
272 <pre>Lists workflows in a given project and location. The default order is not specified.
273
274 Args:
275 parent: string, Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} (required)
276 filter: string, Filter to restrict results to specific workflows. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state=&quot;SUCCEEDED&quot;` or `createTime&gt;&quot;2023-08-01&quot; AND state=&quot;FAILED&quot;`
277 orderBy: string, Comma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a &quot;desc&quot; suffix. If not specified, the results are returned in an unspecified order.
278 pageSize: integer, Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000.
279 pageToken: string, A page token, received from a previous `ListWorkflows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflows` must match the call that provided the page token.
280 x__xgafv: string, V1 error format.
281 Allowed values
282 1 - v1 error format
283 2 - v2 error format
284
285 Returns:
286 An object of the form:
287
288 { # Response for the ListWorkflows method.
289 &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.
290 &quot;unreachable&quot;: [ # Unreachable resources.
291 &quot;A String&quot;,
292 ],
293 &quot;workflows&quot;: [ # The workflows that match the request.
294 { # Workflow program to be executed by Workflows.
295 &quot;allKmsKeys&quot;: [ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
296 &quot;A String&quot;,
297 ],
298 &quot;allKmsKeysVersions&quot;: [ # Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
299 &quot;A String&quot;,
300 ],
301 &quot;callLogLevel&quot;: &quot;A String&quot;, # Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
302 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
303 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
304 &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # Output only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
305 &quot;description&quot;: &quot;A String&quot;, # Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
306 &quot;executionHistoryLevel&quot;: &quot;A String&quot;, # Optional. Describes the execution history level to apply to this workflow.
307 &quot;labels&quot;: { # Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 &quot;name&quot;: &quot;A String&quot;, # The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
311 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for the latest revision of the workflow&#x27;s creation.
312 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
313 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project&#x27;s default service account. Modifying this field for an existing workflow results in a new workflow revision.
314 &quot;sourceContents&quot;: &quot;A String&quot;, # Workflow code to be executed. The size limit is 128KB.
315 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the workflow deployment.
316 &quot;stateError&quot;: { # Describes an error related to the current state of the workflow. # Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
317 &quot;details&quot;: &quot;A String&quot;, # Provides specifics about the error.
318 &quot;type&quot;: &quot;A String&quot;, # The type of this state error.
319 },
320 &quot;tags&quot;: { # Optional. Input only. Immutable. Tags associated with this workflow.
321 &quot;a_key&quot;: &quot;A String&quot;,
322 },
323 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
324 &quot;userEnvVars&quot;: { # Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with &quot;GOOGLE&quot; or &quot;WORKFLOWS&quot;.
325 &quot;a_key&quot;: &quot;A String&quot;,
326 },
327 },
328 ],
329 }</pre>
330 </div>
331
332 <div class="method">
333 <code class="details" id="listRevisions">listRevisions(name, pageSize=None, pageToken=None, x__xgafv=None)</code>
334 <pre>Lists revisions for a given workflow.
335
336 Args:
337 name: string, Required. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow} (required)
338 pageSize: integer, The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100. Values greater than 100 are coerced down to 100.
339 pageToken: string, The page token, received from a previous ListWorkflowRevisions call. Provide this to retrieve the subsequent page.
340 x__xgafv: string, V1 error format.
341 Allowed values
342 1 - v1 error format
343 2 - v2 error format
344
345 Returns:
346 An object of the form:
347
348 { # Response for the ListWorkflowRevisions method.
349 &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.
350 &quot;workflows&quot;: [ # The revisions of the workflow, ordered in reverse chronological order.
351 { # Workflow program to be executed by Workflows.
352 &quot;allKmsKeys&quot;: [ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
353 &quot;A String&quot;,
354 ],
355 &quot;allKmsKeysVersions&quot;: [ # Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
356 &quot;A String&quot;,
357 ],
358 &quot;callLogLevel&quot;: &quot;A String&quot;, # Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
359 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
360 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
361 &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # Output only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
362 &quot;description&quot;: &quot;A String&quot;, # Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
363 &quot;executionHistoryLevel&quot;: &quot;A String&quot;, # Optional. Describes the execution history level to apply to this workflow.
364 &quot;labels&quot;: { # Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
365 &quot;a_key&quot;: &quot;A String&quot;,
366 },
367 &quot;name&quot;: &quot;A String&quot;, # The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
368 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for the latest revision of the workflow&#x27;s creation.
369 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
370 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project&#x27;s default service account. Modifying this field for an existing workflow results in a new workflow revision.
371 &quot;sourceContents&quot;: &quot;A String&quot;, # Workflow code to be executed. The size limit is 128KB.
372 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the workflow deployment.
373 &quot;stateError&quot;: { # Describes an error related to the current state of the workflow. # Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
374 &quot;details&quot;: &quot;A String&quot;, # Provides specifics about the error.
375 &quot;type&quot;: &quot;A String&quot;, # The type of this state error.
376 },
377 &quot;tags&quot;: { # Optional. Input only. Immutable. Tags associated with this workflow.
378 &quot;a_key&quot;: &quot;A String&quot;,
379 },
380 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
381 &quot;userEnvVars&quot;: { # Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with &quot;GOOGLE&quot; or &quot;WORKFLOWS&quot;.
382 &quot;a_key&quot;: &quot;A String&quot;,
383 },
384 },
385 ],
386 }</pre>
387 </div>
388
389 <div class="method">
390 <code class="details" id="listRevisions_next">listRevisions_next()</code>
391 <pre>Retrieves the next page of results.
392
393 Args:
394 previous_request: The request for the previous page. (required)
395 previous_response: The response from the request for the previous page. (required)
396
397 Returns:
398 A request object that you can call &#x27;execute()&#x27; on to request the next
399 page. Returns None if there are no more items in the collection.
400 </pre>
401 </div>
402
403 <div class="method">
404 <code class="details" id="list_next">list_next()</code>
405 <pre>Retrieves the next page of results.
406
407 Args:
408 previous_request: The request for the previous page. (required)
409 previous_response: The response from the request for the previous page. (required)
410
411 Returns:
412 A request object that you can call &#x27;execute()&#x27; on to request the next
413 page. Returns None if there are no more items in the collection.
414 </pre>
415 </div>
416
417 <div class="method">
418 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
419 <pre>Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.
420
421 Args:
422 name: string, The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. (required)
423 body: object, The request body.
424 The object takes the form of:
425
426 { # Workflow program to be executed by Workflows.
427 &quot;allKmsKeys&quot;: [ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
428 &quot;A String&quot;,
429 ],
430 &quot;allKmsKeysVersions&quot;: [ # Output only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
431 &quot;A String&quot;,
432 ],
433 &quot;callLogLevel&quot;: &quot;A String&quot;, # Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
434 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
435 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
436 &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # Output only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
437 &quot;description&quot;: &quot;A String&quot;, # Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
438 &quot;executionHistoryLevel&quot;: &quot;A String&quot;, # Optional. Describes the execution history level to apply to this workflow.
439 &quot;labels&quot;: { # Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
440 &quot;a_key&quot;: &quot;A String&quot;,
441 },
442 &quot;name&quot;: &quot;A String&quot;, # The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
443 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for the latest revision of the workflow&#x27;s creation.
444 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is &quot;000001-a4d&quot;, where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
445 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account. The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project&#x27;s default service account. Modifying this field for an existing workflow results in a new workflow revision.
446 &quot;sourceContents&quot;: &quot;A String&quot;, # Workflow code to be executed. The size limit is 128KB.
447 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the workflow deployment.
448 &quot;stateError&quot;: { # Describes an error related to the current state of the workflow. # Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
449 &quot;details&quot;: &quot;A String&quot;, # Provides specifics about the error.
450 &quot;type&quot;: &quot;A String&quot;, # The type of this state error.
451 },
452 &quot;tags&quot;: { # Optional. Input only. Immutable. Tags associated with this workflow.
453 &quot;a_key&quot;: &quot;A String&quot;,
454 },
455 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
456 &quot;userEnvVars&quot;: { # Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with &quot;GOOGLE&quot; or &quot;WORKFLOWS&quot;.
457 &quot;a_key&quot;: &quot;A String&quot;,
458 },
459 }
460
461 updateMask: string, List of fields to be updated. If not present, the entire workflow will be updated.
462 x__xgafv: string, V1 error format.
463 Allowed values
464 1 - v1 error format
465 2 - v2 error format
466
467 Returns:
468 An object of the form:
469
470 { # This resource represents a long-running operation that is the result of a network API call.
471 &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.
472 &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.
473 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
474 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
475 {
476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
477 },
478 ],
479 &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.
480 },
481 &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.
482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
483 },
484 &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}`.
485 &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`.
486 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
487 },
488 }</pre>
489 </div>
490
491 </body></html>