🚀 New! Kestra raises $3 million to grow Learn more

Create Create

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

Create a file or a folder.

Examples

yaml
id: "create"
type: "io.kestra.plugin.googleworkspace.drive.Create"
name: "My Folder"
mimeType: "application/vnd.google-apps.folder"

Properties

description

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

A short description of the file.

mimeType

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

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.

name

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

The name of the file This is not necessarily unique within a folder

parents

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

The destination path

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

teamDriveId

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

ID of the Team Drive the file resides in.

Outputs

file

The file metadata created

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: