List files in a Google Drive folder.
yaml
type: "io.kestra.plugin.googleworkspace.drive.List"
Examples
List subfolder in a Drive folder
yaml
id: googleworkspace_drive_list
namespace: company.team
tasks:
- id: list
type: io.kestra.plugin.googleworkspace.drive.List
query: |
mimeType = 'application/vnd.google-apps.folder'
and '1z2GZgLEX12BN9zbVE6TodrCHyTRMj_ka' in parents
Properties
corpora array
SubType string
Possible Values
user
domain
teamDrive
allTeamDrives
List of bodies of items (files/documents) applicable to the query
'allTeamDrives' must be combined with 'user'; all other values must be used in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
query string
Query operators to filter results
For more details refer to Search Files API. If not defined, the task will list all files that the service account have access.
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
Definitions
io.kestra.plugin.googleworkspace.drive.models.File
createdTime string
Format
date-time
id string
mimeType string
name string
parents array
SubType string