Create a file or a folder in Google Drive.
type: "io.kestra.plugin.googleworkspace.drive.create"Examples
id: googleworkspace_drive_create
namespace: company.team
tasks:
- id: create
type: io.kestra.plugin.googleworkspace.drive.Create
name: "My Folder"
mimeType: "application/vnd.google-apps.folder"
Properties
descriptionstring
A short description of the file
mimeTypestring
The MIME type of the file
Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published here.
namestring
The name of the file
This is not necessarily unique within a folder
parentsarray
The destination path
readTimeoutintegerstring
120The read timeout for the request (in seconds)
scopesarray
["https://www.googleapis.com/auth/drive"]The GCP scopes to used
serviceAccountstring
The GCP service account key
teamDriveIdstring
ID of the Team Drive the file resides in
Outputs
file
The file metadata created
io.kestra.plugin.googleworkspace.drive.models.File
date-time