Skip to content

Google Drive

Google Drive is a cloud storage service by Google that enables users to store, sync, share files, and collaborate online.

Categories: file-storage

Type: googleDrive/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Copy File

Name: copyFile

Copy a selected file to a different location within Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileIdFile IDSTRINGThe id of the file to be copied.true
fileNameNew File NameSTRINGThe name of the new file created as a result of the copy operation.true
folderIdDestination Folder IDSTRINGThe ID of the folder where the copied file will be stored.true

Output

Type: OBJECT

Properties

NameType
idSTRING
kindSTRING
mimeTypeSTRING
nameSTRING

JSON Example

{
"label" : "Copy File",
"name" : "copyFile",
"parameters" : {
"fileId" : "",
"fileName" : "",
"folderId" : ""
},
"type" : "googleDrive/v1/copyFile"
}

Create New Folder

Name: createNewFolder

Creates a new empty folder in Google Drive.

Properties

NameLabelTypeDescriptionRequired
folderNameFolder NameSTRINGThe name of the new folder.true
folderIdParent Folder IDSTRINGID of the folder where the new folder will be created; if no folder is selected, the folder will be created in the root folder.false

Output

Sample Output:

{id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, mimeType=plain/text, name=new-file.txt}

Type: OBJECT

Properties

NameType
idSTRING
mimeTypeSTRING
nameSTRING

JSON Example

{
"label" : "Create New Folder",
"name" : "createNewFolder",
"parameters" : {
"folderName" : "",
"folderId" : ""
},
"type" : "googleDrive/v1/createNewFolder"
}

Create New Text File

Name: createNewTextFile

Creates a new text file in Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileNameFile NameSTRINGThe name of the new text file.true
textTextSTRINGThe text content to add to file.true
mimeTypeFile TypeSTRING
Options plain/text, text/csv, text/xml
Select file type.true
folderIdParent Folder IDSTRINGID of the folder where the file should be created; if no folder is selected, the file will be created in the root folder.false

Output

Sample Output:

{id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, mimeType=plain/text, name=new-file.txt}

Type: OBJECT

Properties

NameType
idSTRING
mimeTypeSTRING
nameSTRING

JSON Example

{
"label" : "Create New Text File",
"name" : "createNewTextFile",
"parameters" : {
"fileName" : "",
"text" : "",
"mimeType" : "",
"folderId" : ""
},
"type" : "googleDrive/v1/createNewTextFile"
}

Delete File

Name: deleteFile

Delete a selected file from Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileIdFile IDSTRINGThe id of a file to delete.true

JSON Example

{
"label" : "Delete File",
"name" : "deleteFile",
"parameters" : {
"fileId" : ""
},
"type" : "googleDrive/v1/deleteFile"
}

Download File

Name: downloadFile

Download selected file from Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileIdFile IDSTRINGID of the file to download.true

Output

Type: FILE_ENTRY

Properties

NameType
extensionSTRING
mimeTypeSTRING
nameSTRING
urlSTRING

JSON Example

{
"label" : "Download File",
"name" : "downloadFile",
"parameters" : {
"fileId" : ""
},
"type" : "googleDrive/v1/downloadFile"
}

Get File

Name: getFile

Retrieve a specified file from your Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileIdFile IDSTRINGID of the file to be retrieved.true

Output

Type: OBJECT

Properties

NameType
idSTRING
kindSTRING
mimeTypeSTRING
nameSTRING

JSON Example

{
"label" : "Get File",
"name" : "getFile",
"parameters" : {
"fileId" : ""
},
"type" : "googleDrive/v1/getFile"
}

Upload File

Name: uploadFile

Uploads a file in your Google Drive.

Properties

NameLabelTypeDescriptionRequired
fileEntryFileFILE_ENTRYThe object property which contains a reference to the file to upload.true
folderIdParent Folder IDSTRINGID of the folder where the file will be uploaded; if no folder is selected, the file will be uploaded to the root folder.false

Output

Sample Output:

{id=1hPJ7kjhStTX90amAWSJ-V0K1-nhDlsIr, mimeType=plain/text, name=new-file.txt}

Type: OBJECT

Properties

NameType
idSTRING
mimeTypeSTRING
nameSTRING

JSON Example

{
"label" : "Upload File",
"name" : "uploadFile",
"parameters" : {
"fileEntry" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
},
"folderId" : ""
},
"type" : "googleDrive/v1/uploadFile"
}

Triggers

New File

Name: newFile

Triggers when new file is uploaded to Google Drive.

Type: POLLING

Properties

NameLabelTypeDescriptionRequired
folderIdParent FolderSTRINGtrue

Output

Type: ARRAY

Properties

NameType
OBJECT
Properties {STRING(id), STRING(mimeType), STRING(name)}

JSON Example

{
"label" : "New File",
"name" : "newFile",
"parameters" : {
"folderId" : ""
},
"type" : "googleDrive/v1/newFile"
}

New Folder

Name: newFolder

Triggers when new folder is uploaded to Google Drive.

Type: POLLING

Properties

NameLabelTypeDescriptionRequired
folderIdParent FolderSTRINGtrue

Output

Type: ARRAY

Properties

NameType
OBJECT
Properties {STRING(id), STRING(mimeType), STRING(name)}

JSON Example

{
"label" : "New Folder",
"name" : "newFolder",
"parameters" : {
"folderId" : ""
},
"type" : "googleDrive/v1/newFolder"
}


Additional instructions


anl-c-google-drive-md

CONNECTION

Setting up OAuth2

Turning on Drive API