List List

yaml
type: "io.kestra.plugin.googleworkspace.drive.List"

List file on a Drive folder.

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

  • Type: array
  • SubType: string
  • Dynamic:
  • Required:

list of bodies of items (files/documents) to which the query applies.

'allTeamDrives' must be combined with 'user'; all other values must be used in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.

query

  • Type: string
  • Dynamic: ✔️
  • Required:

Query operators to filter results

see details here if not defined, will list all files that the service account have access

readTimeout

  • Type: integer
  • Dynamic: ✔️
  • Required:
  • Default: 120

The read timeout for the request (in seconds)

scopes

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required:
  • Default: [https://www.googleapis.com/auth/drive]

The GCP scopes to used

serviceAccount

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP service account key

Outputs

files

  • Type: array
  • SubType: File
  • Required:

The list of files

Definitions

io.kestra.plugin.googleworkspace.drive.models.File

Properties

createdTime
  • Type: string
  • Dynamic:
  • Required:
  • Format: date-time
id
  • Type: string
  • Dynamic:
  • Required:
mimeType
  • Type: string
  • Dynamic:
  • Required:
name
  • Type: string
  • Dynamic:
  • Required:
parents
  • Type: array
  • SubType: string
  • Dynamic:
  • Required:
size
  • Type: integer
  • Dynamic:
  • Required:
trashed
  • Type: boolean
  • Dynamic:
  • Required:
version
  • Type: integer
  • Dynamic:
  • Required:

Was this page helpful?