Export a Google Workspace document into a downloadable file format, then download the file.
Possible Google Workspace documents to export include Google Docs, Sheets, and Slides, and they can be exported as Word, Excel, Powerpoint files, and more.
yaml
type: "io.kestra.plugin.googleworkspace.drive.Export"
Examples
yaml
id: googleworkspace_drive_export
namespace: company.team
tasks:
- id: export
type: io.kestra.plugin.googleworkspace.drive.Export
fileId: "1Dkd3W0OQo-wxz1rrORLP7YGSj6EBLEg74fiTdbJUIQE"
Properties
contentType *Requiredstring
The content-type of the file
a valid RFC2045 like text/csv
, application/msword
, etc.
fileId *Requiredstring
The file id to copy
readTimeout integerstring
Default
120
The read timeout for the request (in seconds)
scopes array
SubType string
Default
["https://www.googleapis.com/auth/drive"]
The GCP scopes to used
serviceAccount string
The GCP service account key
Outputs
file File
The file metadata uploaded
uri string
Format
uri
The url of the downloaded file on kestra storage
Definitions
io.kestra.plugin.googleworkspace.drive.models.File
createdTime string
Format
date-time
id string
mimeType string
name string
parents array
SubType string