1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95id: upload_file_to_gcs_app
type: io.kestra.plugin.ee.apps.Execution
displayName: Upload File to GCS App
namespace: utils
flowId: upload_file_to_gcs
access:
type: PRIVATE
tags:
- GCS Imports
- Internal
layout:
- on: OPEN
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
### Upload File to GCS App
- type: io.kestra.plugin.ee.apps.execution.blocks.CreateExecutionForm
- type: io.kestra.plugin.ee.apps.execution.blocks.CreateExecutionButton
size: LARGE
style: INFO
text: Upload File
- on: RUNNING
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
### Process Initiated!
- type: io.kestra.plugin.ee.apps.core.blocks.Loading
- type: io.kestra.plugin.ee.apps.execution.blocks.Logs
filter:
logLevel: INFO
- type: io.kestra.plugin.ee.apps.execution.blocks.CancelExecutionButton
size: SMALL
style: DANGER
text: Cancel Process
- on: FALLBACK
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
### File Upload Cancelled Successfully!
...
- type: io.kestra.plugin.ee.apps.core.blocks.Button
text: Return to File Upload Form
size: LARGE
style: SUCCESS
url: "{{ app.url }}"
- on: FAILURE
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
### File Uploaded Failed!
---
Please inspect the logs below:
- type: io.kestra.plugin.ee.apps.execution.blocks.Logs
filter:
logLevel: INFO
- type: io.kestra.plugin.ee.apps.core.blocks.Button
text: Return to File Upload Form
size: LARGE
style: SUCCESS
url: "{{ app.url }}"
- on: SUCCESS
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
### File Uploaded Successfully!
Your file has uploaded successfully. Review the GCS Outputs below:
- type: io.kestra.plugin.ee.apps.execution.blocks.TaskOutputs
outputs:
- displayName: GCS Bucket
type: STRING
value: "<you-can-output-bucket-here>"
description: <
This is the GCS Bucket where the file was uploaded to.
- displayName: GCS File Path
type: STRING
value: <you-can-output-gcs-file-path-here>
description: <
This is the GCS File Path of where file was uploaded to.
- type: io.kestra.plugin.ee.apps.core.blocks.Button
text: Return to File Upload Form
size: LARGE
style: SUCCESS
url: "{{ app.url }}"