1{
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
7 }
8 }
9 }
10 },
11 "basePath": "",
12 "baseUrl": "https://workflows.googleapis.com/",
13 "batchPath": "batch",
14 "canonicalName": "Workflows",
15 "description": "Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API.",
16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/workflows",
18 "fullyEncodeReservedExpansion": true,
19 "icons": {
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
22 },
23 "id": "workflows:v1",
24 "kind": "discovery#restDescription",
25 "mtlsRootUrl": "https://workflows.mtls.googleapis.com/",
26 "name": "workflows",
27 "ownerDomain": "google.com",
28 "ownerName": "Google",
29 "parameters": {
30 "$.xgafv": {
31 "description": "V1 error format.",
32 "enum": [
33 "1",
34 "2"
35 ],
36 "enumDescriptions": [
37 "v1 error format",
38 "v2 error format"
39 ],
40 "location": "query",
41 "type": "string"
42 },
43 "access_token": {
44 "description": "OAuth access token.",
45 "location": "query",
46 "type": "string"
47 },
48 "alt": {
49 "default": "json",
50 "description": "Data format for response.",
51 "enum": [
52 "json",
53 "media",
54 "proto"
55 ],
56 "enumDescriptions": [
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
60 ],
61 "location": "query",
62 "type": "string"
63 },
64 "callback": {
65 "description": "JSONP",
66 "location": "query",
67 "type": "string"
68 },
69 "fields": {
70 "description": "Selector specifying which fields to include in a partial response.",
71 "location": "query",
72 "type": "string"
73 },
74 "key": {
75 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
76 "location": "query",
77 "type": "string"
78 },
79 "oauth_token": {
80 "description": "OAuth 2.0 token for the current user.",
81 "location": "query",
82 "type": "string"
83 },
84 "prettyPrint": {
85 "default": "true",
86 "description": "Returns response with indentations and line breaks.",
87 "location": "query",
88 "type": "boolean"
89 },
90 "quotaUser": {
91 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
92 "location": "query",
93 "type": "string"
94 },
95 "uploadType": {
96 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
97 "location": "query",
98 "type": "string"
99 },
100 "upload_protocol": {
101 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
102 "location": "query",
103 "type": "string"
104 }
105 },
106 "protocol": "rest",
107 "resources": {
108 "projects": {
109 "resources": {
110 "locations": {
111 "methods": {
112 "get": {
113 "description": "Gets information about a location.",
114 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
115 "httpMethod": "GET",
116 "id": "workflows.projects.locations.get",
117 "parameterOrder": [
118 "name"
119 ],
120 "parameters": {
121 "name": {
122 "description": "Resource name for the location.",
123 "location": "path",
124 "pattern": "^projects/[^/]+/locations/[^/]+$",
125 "required": true,
126 "type": "string"
127 }
128 },
129 "path": "v1/{+name}",
130 "response": {
131 "$ref": "Location"
132 },
133 "scopes": [
134 "https://www.googleapis.com/auth/cloud-platform"
135 ]
136 },
137 "list": {
138 "description": "Lists information about the supported locations for this service.",
139 "flatPath": "v1/projects/{projectsId}/locations",
140 "httpMethod": "GET",
141 "id": "workflows.projects.locations.list",
142 "parameterOrder": [
143 "name"
144 ],
145 "parameters": {
146 "filter": {
147 "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
148 "location": "query",
149 "type": "string"
150 },
151 "name": {
152 "description": "The resource that owns the locations collection, if applicable.",
153 "location": "path",
154 "pattern": "^projects/[^/]+$",
155 "required": true,
156 "type": "string"
157 },
158 "pageSize": {
159 "description": "The maximum number of results to return. If not set, the service selects a default.",
160 "format": "int32",
161 "location": "query",
162 "type": "integer"
163 },
164 "pageToken": {
165 "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
166 "location": "query",
167 "type": "string"
168 }
169 },
170 "path": "v1/{+name}/locations",
171 "response": {
172 "$ref": "ListLocationsResponse"
173 },
174 "scopes": [
175 "https://www.googleapis.com/auth/cloud-platform"
176 ]
177 }
178 },
179 "resources": {
180 "operations": {
181 "methods": {
182 "delete": {
183 "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
184 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
185 "httpMethod": "DELETE",
186 "id": "workflows.projects.locations.operations.delete",
187 "parameterOrder": [
188 "name"
189 ],
190 "parameters": {
191 "name": {
192 "description": "The name of the operation resource to be deleted.",
193 "location": "path",
194 "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
195 "required": true,
196 "type": "string"
197 }
198 },
199 "path": "v1/{+name}",
200 "response": {
201 "$ref": "Empty"
202 },
203 "scopes": [
204 "https://www.googleapis.com/auth/cloud-platform"
205 ]
206 },
207 "get": {
208 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
209 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
210 "httpMethod": "GET",
211 "id": "workflows.projects.locations.operations.get",
212 "parameterOrder": [
213 "name"
214 ],
215 "parameters": {
216 "name": {
217 "description": "The name of the operation resource.",
218 "location": "path",
219 "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
220 "required": true,
221 "type": "string"
222 }
223 },
224 "path": "v1/{+name}",
225 "response": {
226 "$ref": "Operation"
227 },
228 "scopes": [
229 "https://www.googleapis.com/auth/cloud-platform"
230 ]
231 },
232 "list": {
233 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
234 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
235 "httpMethod": "GET",
236 "id": "workflows.projects.locations.operations.list",
237 "parameterOrder": [
238 "name"
239 ],
240 "parameters": {
241 "filter": {
242 "description": "The standard list filter.",
243 "location": "query",
244 "type": "string"
245 },
246 "name": {
247 "description": "The name of the operation's parent resource.",
248 "location": "path",
249 "pattern": "^projects/[^/]+/locations/[^/]+$",
250 "required": true,
251 "type": "string"
252 },
253 "pageSize": {
254 "description": "The standard list page size.",
255 "format": "int32",
256 "location": "query",
257 "type": "integer"
258 },
259 "pageToken": {
260 "description": "The standard list page token.",
261 "location": "query",
262 "type": "string"
263 }
264 },
265 "path": "v1/{+name}/operations",
266 "response": {
267 "$ref": "ListOperationsResponse"
268 },
269 "scopes": [
270 "https://www.googleapis.com/auth/cloud-platform"
271 ]
272 }
273 }
274 },
275 "workflows": {
276 "methods": {
277 "create": {
278 "description": "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.",
279 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows",
280 "httpMethod": "POST",
281 "id": "workflows.projects.locations.workflows.create",
282 "parameterOrder": [
283 "parent"
284 ],
285 "parameters": {
286 "parent": {
287 "description": "Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}",
288 "location": "path",
289 "pattern": "^projects/[^/]+/locations/[^/]+$",
290 "required": true,
291 "type": "string"
292 },
293 "workflowId": {
294 "description": "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.",
295 "location": "query",
296 "type": "string"
297 }
298 },
299 "path": "v1/{+parent}/workflows",
300 "request": {
301 "$ref": "Workflow"
302 },
303 "response": {
304 "$ref": "Operation"
305 },
306 "scopes": [
307 "https://www.googleapis.com/auth/cloud-platform"
308 ]
309 },
310 "delete": {
311 "description": "Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.",
312 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}",
313 "httpMethod": "DELETE",
314 "id": "workflows.projects.locations.workflows.delete",
315 "parameterOrder": [
316 "name"
317 ],
318 "parameters": {
319 "name": {
320 "description": "Required. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow}",
321 "location": "path",
322 "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$",
323 "required": true,
324 "type": "string"
325 }
326 },
327 "path": "v1/{+name}",
328 "response": {
329 "$ref": "Operation"
330 },
331 "scopes": [
332 "https://www.googleapis.com/auth/cloud-platform"
333 ]
334 },
335 "get": {
336 "description": "Gets details of a single workflow.",
337 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}",
338 "httpMethod": "GET",
339 "id": "workflows.projects.locations.workflows.get",
340 "parameterOrder": [
341 "name"
342 ],
343 "parameters": {
344 "name": {
345 "description": "Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}",
346 "location": "path",
347 "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$",
348 "required": true,
349 "type": "string"
350 },
351 "revisionId": {
352 "description": "Optional. The revision of the workflow to retrieve. If the revision_id is empty, the latest revision is retrieved. The format is \"000001-a4d\", where the first six characters define the zero-padded decimal revision number. They are followed by a hyphen and three hexadecimal characters.",
353 "location": "query",
354 "type": "string"
355 }
356 },
357 "path": "v1/{+name}",
358 "response": {
359 "$ref": "Workflow"
360 },
361 "scopes": [
362 "https://www.googleapis.com/auth/cloud-platform"
363 ]
364 },
365 "list": {
366 "description": "Lists workflows in a given project and location. The default order is not specified.",
367 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows",
368 "httpMethod": "GET",
369 "id": "workflows.projects.locations.workflows.list",
370 "parameterOrder": [
371 "parent"
372 ],
373 "parameters": {
374 "filter": {
375 "description": "Filter to restrict results to specific workflows. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `createTime\u003e\"2023-08-01\" AND state=\"FAILED\"`",
376 "location": "query",
377 "type": "string"
378 },
379 "orderBy": {
380 "description": "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 \"desc\" suffix. If not specified, the results are returned in an unspecified order.",
381 "location": "query",
382 "type": "string"
383 },
384 "pageSize": {
385 "description": "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.",
386 "format": "int32",
387 "location": "query",
388 "type": "integer"
389 },
390 "pageToken": {
391 "description": "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.",
392 "location": "query",
393 "type": "string"
394 },
395 "parent": {
396 "description": "Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location}",
397 "location": "path",
398 "pattern": "^projects/[^/]+/locations/[^/]+$",
399 "required": true,
400 "type": "string"
401 }
402 },
403 "path": "v1/{+parent}/workflows",
404 "response": {
405 "$ref": "ListWorkflowsResponse"
406 },
407 "scopes": [
408 "https://www.googleapis.com/auth/cloud-platform"
409 ]
410 },
411 "listRevisions": {
412 "description": "Lists revisions for a given workflow.",
413 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}:listRevisions",
414 "httpMethod": "GET",
415 "id": "workflows.projects.locations.workflows.listRevisions",
416 "parameterOrder": [
417 "name"
418 ],
419 "parameters": {
420 "name": {
421 "description": "Required. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow}",
422 "location": "path",
423 "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$",
424 "required": true,
425 "type": "string"
426 },
427 "pageSize": {
428 "description": "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.",
429 "format": "int32",
430 "location": "query",
431 "type": "integer"
432 },
433 "pageToken": {
434 "description": "The page token, received from a previous ListWorkflowRevisions call. Provide this to retrieve the subsequent page.",
435 "location": "query",
436 "type": "string"
437 }
438 },
439 "path": "v1/{+name}:listRevisions",
440 "response": {
441 "$ref": "ListWorkflowRevisionsResponse"
442 },
443 "scopes": [
444 "https://www.googleapis.com/auth/cloud-platform"
445 ]
446 },
447 "patch": {
448 "description": "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.",
449 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}",
450 "httpMethod": "PATCH",
451 "id": "workflows.projects.locations.workflows.patch",
452 "parameterOrder": [
453 "name"
454 ],
455 "parameters": {
456 "name": {
457 "description": "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.",
458 "location": "path",
459 "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$",
460 "required": true,
461 "type": "string"
462 },
463 "updateMask": {
464 "description": "List of fields to be updated. If not present, the entire workflow will be updated.",
465 "format": "google-fieldmask",
466 "location": "query",
467 "type": "string"
468 }
469 },
470 "path": "v1/{+name}",
471 "request": {
472 "$ref": "Workflow"
473 },
474 "response": {
475 "$ref": "Operation"
476 },
477 "scopes": [
478 "https://www.googleapis.com/auth/cloud-platform"
479 ]
480 }
481 }
482 }
483 }
484 }
485 }
486 }
487 },
488 "revision": "20240110",
489 "rootUrl": "https://workflows.googleapis.com/",
490 "schemas": {
491 "Empty": {
492 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
493 "id": "Empty",
494 "properties": {},
495 "type": "object"
496 },
497 "ListLocationsResponse": {
498 "description": "The response message for Locations.ListLocations.",
499 "id": "ListLocationsResponse",
500 "properties": {
501 "locations": {
502 "description": "A list of locations that matches the specified filter in the request.",
503 "items": {
504 "$ref": "Location"
505 },
506 "type": "array"
507 },
508 "nextPageToken": {
509 "description": "The standard List next-page token.",
510 "type": "string"
511 }
512 },
513 "type": "object"
514 },
515 "ListOperationsResponse": {
516 "description": "The response message for Operations.ListOperations.",
517 "id": "ListOperationsResponse",
518 "properties": {
519 "nextPageToken": {
520 "description": "The standard List next-page token.",
521 "type": "string"
522 },
523 "operations": {
524 "description": "A list of operations that matches the specified filter in the request.",
525 "items": {
526 "$ref": "Operation"
527 },
528 "type": "array"
529 }
530 },
531 "type": "object"
532 },
533 "ListWorkflowRevisionsResponse": {
534 "description": "Response for the ListWorkflowRevisions method.",
535 "id": "ListWorkflowRevisionsResponse",
536 "properties": {
537 "nextPageToken": {
538 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
539 "type": "string"
540 },
541 "workflows": {
542 "description": "The revisions of the workflow, ordered in reverse chronological order.",
543 "items": {
544 "$ref": "Workflow"
545 },
546 "type": "array"
547 }
548 },
549 "type": "object"
550 },
551 "ListWorkflowsResponse": {
552 "description": "Response for the ListWorkflows method.",
553 "id": "ListWorkflowsResponse",
554 "properties": {
555 "nextPageToken": {
556 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
557 "type": "string"
558 },
559 "unreachable": {
560 "description": "Unreachable resources.",
561 "items": {
562 "type": "string"
563 },
564 "type": "array"
565 },
566 "workflows": {
567 "description": "The workflows that match the request.",
568 "items": {
569 "$ref": "Workflow"
570 },
571 "type": "array"
572 }
573 },
574 "type": "object"
575 },
576 "Location": {
577 "description": "A resource that represents a Google Cloud location.",
578 "id": "Location",
579 "properties": {
580 "displayName": {
581 "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
582 "type": "string"
583 },
584 "labels": {
585 "additionalProperties": {
586 "type": "string"
587 },
588 "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
589 "type": "object"
590 },
591 "locationId": {
592 "description": "The canonical id for this location. For example: `\"us-east1\"`.",
593 "type": "string"
594 },
595 "metadata": {
596 "additionalProperties": {
597 "description": "Properties of the object. Contains field @type with type URL.",
598 "type": "any"
599 },
600 "description": "Service-specific metadata. For example the available capacity at the given location.",
601 "type": "object"
602 },
603 "name": {
604 "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
605 "type": "string"
606 }
607 },
608 "type": "object"
609 },
610 "Operation": {
611 "description": "This resource represents a long-running operation that is the result of a network API call.",
612 "id": "Operation",
613 "properties": {
614 "done": {
615 "description": "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.",
616 "type": "boolean"
617 },
618 "error": {
619 "$ref": "Status",
620 "description": "The error result of the operation in case of failure or cancellation."
621 },
622 "metadata": {
623 "additionalProperties": {
624 "description": "Properties of the object. Contains field @type with type URL.",
625 "type": "any"
626 },
627 "description": "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.",
628 "type": "object"
629 },
630 "name": {
631 "description": "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}`.",
632 "type": "string"
633 },
634 "response": {
635 "additionalProperties": {
636 "description": "Properties of the object. Contains field @type with type URL.",
637 "type": "any"
638 },
639 "description": "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`.",
640 "type": "object"
641 }
642 },
643 "type": "object"
644 },
645 "OperationMetadata": {
646 "description": "Represents the metadata of the long-running operation.",
647 "id": "OperationMetadata",
648 "properties": {
649 "apiVersion": {
650 "description": "API version used to start the operation.",
651 "type": "string"
652 },
653 "createTime": {
654 "description": "The time the operation was created.",
655 "format": "google-datetime",
656 "type": "string"
657 },
658 "endTime": {
659 "description": "The time the operation finished running.",
660 "format": "google-datetime",
661 "type": "string"
662 },
663 "target": {
664 "description": "Server-defined resource path for the target of the operation.",
665 "type": "string"
666 },
667 "verb": {
668 "description": "Name of the verb executed by the operation.",
669 "type": "string"
670 }
671 },
672 "type": "object"
673 },
674 "StateError": {
675 "description": "Describes an error related to the current state of the workflow.",
676 "id": "StateError",
677 "properties": {
678 "details": {
679 "description": "Provides specifics about the error.",
680 "type": "string"
681 },
682 "type": {
683 "description": "The type of this state error.",
684 "enum": [
685 "TYPE_UNSPECIFIED",
686 "KMS_ERROR"
687 ],
688 "enumDescriptions": [
689 "No type specified.",
690 "Caused by an issue with KMS."
691 ],
692 "type": "string"
693 }
694 },
695 "type": "object"
696 },
697 "Status": {
698 "description": "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).",
699 "id": "Status",
700 "properties": {
701 "code": {
702 "description": "The status code, which should be an enum value of google.rpc.Code.",
703 "format": "int32",
704 "type": "integer"
705 },
706 "details": {
707 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
708 "items": {
709 "additionalProperties": {
710 "description": "Properties of the object. Contains field @type with type URL.",
711 "type": "any"
712 },
713 "type": "object"
714 },
715 "type": "array"
716 },
717 "message": {
718 "description": "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.",
719 "type": "string"
720 }
721 },
722 "type": "object"
723 },
724 "Workflow": {
725 "description": "Workflow program to be executed by Workflows.",
726 "id": "Workflow",
727 "properties": {
728 "callLogLevel": {
729 "description": "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.",
730 "enum": [
731 "CALL_LOG_LEVEL_UNSPECIFIED",
732 "LOG_ALL_CALLS",
733 "LOG_ERRORS_ONLY",
734 "LOG_NONE"
735 ],
736 "enumDescriptions": [
737 "No call logging level specified.",
738 "Log all call steps within workflows, all call returns, and all exceptions raised.",
739 "Log only exceptions that are raised from call steps within workflows.",
740 "Explicitly log nothing."
741 ],
742 "type": "string"
743 },
744 "createTime": {
745 "description": "Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.",
746 "format": "google-datetime",
747 "readOnly": true,
748 "type": "string"
749 },
750 "cryptoKeyName": {
751 "description": "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.",
752 "type": "string"
753 },
754 "description": {
755 "description": "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.",
756 "type": "string"
757 },
758 "labels": {
759 "additionalProperties": {
760 "type": "string"
761 },
762 "description": "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.",
763 "type": "object"
764 },
765 "name": {
766 "description": "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.",
767 "type": "string"
768 },
769 "revisionCreateTime": {
770 "description": "Output only. The timestamp for the latest revision of the workflow's creation.",
771 "format": "google-datetime",
772 "readOnly": true,
773 "type": "string"
774 },
775 "revisionId": {
776 "description": "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 \"000001-a4d\", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.",
777 "readOnly": true,
778 "type": "string"
779 },
780 "serviceAccount": {
781 "description": "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's default service account. Modifying this field for an existing workflow results in a new workflow revision.",
782 "type": "string"
783 },
784 "sourceContents": {
785 "description": "Workflow code to be executed. The size limit is 128KB.",
786 "type": "string"
787 },
788 "state": {
789 "description": "Output only. State of the workflow deployment.",
790 "enum": [
791 "STATE_UNSPECIFIED",
792 "ACTIVE",
793 "UNAVAILABLE"
794 ],
795 "enumDescriptions": [
796 "Invalid state.",
797 "The workflow has been deployed successfully and is serving.",
798 "Workflow data is unavailable. See the `state_error` field."
799 ],
800 "readOnly": true,
801 "type": "string"
802 },
803 "stateError": {
804 "$ref": "StateError",
805 "description": "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.",
806 "readOnly": true
807 },
808 "updateTime": {
809 "description": "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.",
810 "format": "google-datetime",
811 "readOnly": true,
812 "type": "string"
813 },
814 "userEnvVars": {
815 "additionalProperties": {
816 "type": "string"
817 },
818 "description": "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 \"GOOGLE\" or \"WORKFLOWS\".",
819 "type": "object"
820 }
821 },
822 "type": "object"
823 }
824 },
825 "servicePath": "",
826 "title": "Workflows API",
827 "version": "v1",
828 "version_module": true
829}
View as plain text