Upload
yaml
type: "io.kestra.plugin.googleworkspace.drive.upload"
Examples
yaml
id: googleworkspace_drive_upload
namespace: company.team
inputs:
- id: file
type: FILE
description: The file to be uploaded to Google Drive
tasks:
- id: upload
type: io.kestra.plugin.googleworkspace.drive.Upload
from: "{{ inputs.file }}"
parents:
- "1HuxzpLt1b0111MuKMgy8wAv-m9Myc1E_"
name: "My awesome CSV"
contentType: "text/csv"
mimeType: "application/vnd.google-apps.spreadsheet"
yaml
id: upload_google_drive
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- id: upload
type: io.kestra.plugin.googleworkspace.drive.Upload
from: "{{ outputs.download.uri }}"
parents:
- 15OENbAxvonlASDkYyfGBftV2c0fDTmnB
name: Orders
contentType: text/csv
mimeType: application/vnd.google-apps.spreadsheet
Properties
contentType *Requiredstring
from *Requiredstring
description string
fileId string
mimeType string
name string
parents array
SubType string
readTimeout integerstring
Default
120
scopes array
SubType string
Default
["https://www.googleapis.com/auth/drive"]
serviceAccount string
teamDriveId string
Outputs
file File
Definitions
io.kestra.plugin.googleworkspace.drive.models.File
createdTime string
Format
date-time
id string
mimeType string
name string
parents array
SubType string