Download
Download objects from Google Drive.
Task version: 1.1.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.GoogleDrive
Task Parameters
FileQuery : String
Query for specific files to be downloaded.
See Google Drive API Guide
Default: *
Example: '42o3j8C7kntMJZeElbZb5B_5u92snSIkb' in parents and name contains 'test'
DestinationDirectory : String
Destination directory (local or network folder).
Default: -
Example: //fileshare/destinationdirectory, c:\temp, /downloads
🗝ServiceAccountKeyJSON : String
Service account key JSON.
Default: -
Example: { "type": "service_account", "project_id": "something", "private_key_id": "fdsafdsafdsalmnop12345678909876543212344", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE.......Hw==\n-----END PRIVATE KEY-----\n", "client_email": "someone@something.iam.gserviceaccount.com", "client_id": "123456789012345678900", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www....nt.com" }
IncludeSharedDrives : Boolean
Whether to include shared drives in the search.
Default: False
Example: false
ThrowErrorOnFailure : Boolean
Value indicating whether download error should stop the Task and throw an exception (true) or try to add the error message to Result.ErrorMessages and continue to download next file.
Default: True
Example: true
CreateDestinationFolder : Boolean
Determines whether to create the destination folder if it does not already exist.
Default: -
Example: false
Task Result
Success : Boolean
Gets a value indicating whether download was executed successfully.
Example: true
Data : List<DownloadResult>
List of download result(s).
Example: { {"id", "filename"}, {"id", filename"} }
ErrorMessage : List<Object>
List of error messages.
Example: { "An error occured...", "Another error occured" }
Task Changelog
Changelog for Task Frends.GoogleDrive.Download.
[1.1.0]
Added
Added a flag to include shared drives in the file search
[1.0.0] - 2023-11-16
Added
Initial implementation
Last updated
Was this helpful?

