"Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
},
{
displayName:'Move to Trash',
name:'trashed',
type:'boolean',
default:false,
description:'Whether to move a file to the trash. Only the owner may trash a file.',
},
{
displayName:'OCR Language',
name:'ocrLanguage',
type:'string',
default:'',
description:'A language hint for OCR processing during image import (ISO 639-1 code)',
},
{
displayName:'Parent ID',
name:'parentId',
type:'string',
default:'',
description:'The ID of the parent to set',
},
{
displayName:'Use Content As Indexable Text',
name:'useContentAsIndexableText',
type:'boolean',
default:false,
description:'Whether to use the uploaded content as indexable text',
},
],
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['update'],
resource:['file'],
},
},
options:[
{
displayName:'Fields',
name:'fields',
type:'multiOptions',
options:[
{
name:'[All]',
value:'*',
description:'All fields',
},
{
name:'explicitlyTrashed',
value:'explicitlyTrashed',
},
{
name:'exportLinks',
value:'exportLinks',
},
{
name:'hasThumbnail',
value:'hasThumbnail',
},
{
name:'iconLink',
value:'iconLink',
},
{
name:'ID',
value:'id',
},
{
name:'Kind',
value:'kind',
},
{
name:'mimeType',
value:'mimeType',
},
{
name:'Name',
value:'name',
},
{
name:'Permissions',
value:'permissions',
},
{
name:'Shared',
value:'shared',
},
{
name:'Spaces',
value:'spaces',
},
{
name:'Starred',
value:'starred',
},
{
name:'thumbnailLink',
value:'thumbnailLink',
},
{
name:'Trashed',
value:'trashed',
},
{
name:'Version',
value:'version',
},
{
name:'webViewLink',
value:'webViewLink',
},
],
default:[],
description:'The fields to return',
},
],
},
// ----------------------------------
// file:upload
// ----------------------------------
{
displayName:'File Name',
name:'name',
type:'string',
default:'',
required: true,
displayOptions:{
show:{
operation:['upload'],
resource:['file'],
},
},
placeholder:'invoice_1.pdf',
description:'The name the file should be saved as',
'By default the response only contain the ID of the file. If this option gets activated, it will resolve the data automatically.',
},
{
displayName:'Parents',
name:'parents',
type:'string',
typeOptions:{
multipleValues: true,
},
default:[],
displayOptions:{
show:{
operation:['upload'],
resource:['file'],
},
},
description:'The IDs of the parent folders which contain the file',
},
// ----------------------------------
// folder
// ----------------------------------
// ----------------------------------
// folder:create
// ----------------------------------
{
displayName:'Folder',
name:'name',
type:'string',
default:'',
required: true,
displayOptions:{
show:{
operation:['create'],
resource:['folder'],
},
},
placeholder:'invoices',
description:'The name of folder to create',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
'/operation':['copy','list','share','create'],
'/resource':['file','folder'],
},
},
options:[
{
displayName:'Email Message',
name:'emailMessage',
type:'string',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:'',
description:'A plain text custom message to include in the notification email',
},
{
displayName:'Enforce Single Parent',
name:'enforceSingleParent',
type:'boolean',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:false,
description:
'Whether to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive.',
"<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed.</p>",
},
{
displayName:'Send Notification Email',
name:'sendNotificationEmail',
type:'boolean',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:false,
description:'Whether to send a notification email when sharing to users or groups',
},
{
displayName:'Supports All Drives',
name:'supportsAllDrives',
type:'boolean',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:false,
description:
'Whether the requesting application supports both My Drives and shared drives',
},
{
displayName:'Transfer Ownership',
name:'transferOwnership',
type:'boolean',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:false,
description:
'Whether to transfer ownership to the specified user and downgrade the current owner to a writer',
},
{
displayName:'Use Domain Admin Access',
name:'useDomainAdminAccess',
type:'boolean',
displayOptions:{
show:{
'/operation':['share'],
'/resource':['file','folder'],
},
},
default:false,
description:
'Whether to perform the operation as domain administrator, i.e. if you are an administrator of the domain to which the shared drive belongs, you will be granted access automatically.',
},
{
displayName:'File Name',
name:'name',
type:'string',
displayOptions:{
show:{
'/operation':['copy'],
'/resource':['file'],
},
},
default:'',
placeholder:'invoice_1.pdf',
description:'The name the file should be saved as',
},
{
displayName:'Parents',
name:'parents',
type:'string',
displayOptions:{
show:{
'/operation':['copy','create'],
'/resource':['file','folder'],
},
},
typeOptions:{
multipleValues: true,
},
default:[],
description:'The IDs of the parent folders the file/folder should be saved in',
},
{
displayName:'Spaces',
name:'spaces',
type:'multiOptions',
displayOptions:{
show:{
'/operation':['list'],
'/resource':['file'],
},
},
options:[
{
name:'[All]',
value:'*',
description:'All spaces',
},
{
name:'appDataFolder',
value:'appDataFolder',
},
{
name:'Drive',
value:'drive',
},
{
name:'Photos',
value:'photos',
},
],
default:[],
description:'The spaces to operate on',
},
{
displayName:'Corpora',
name:'corpora',
type:'options',
displayOptions:{
show:{
'/operation':['list'],
'/resource':['file'],
},
},
options:[
{
name:'User',
value:'user',
description:'All files in "My Drive" and "Shared with me"',
},
{
name:'Domain',
value:'domain',
description:"All files shared to the user's domain that are searchable",
},
{
name:'Drive',
value:'drive',
description:'All files contained in a single shared drive',
},
{
name:'allDrives',
value:'allDrives',
description:'All drives',
},
],
default:'',
description:'The corpora to operate on',
},
{
displayName:'Drive ID',
name:'driveId',
type:'string',
default:'',
displayOptions:{
show:{
'/operation':['list'],
'/resource':['file'],
corpora:['drive'],
},
},
description:
'ID of the shared drive to search. The driveId parameter must be specified if and only if corpora is set to drive.',
'Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive',
},
{
displayName:'Can Change Domain Users Only Restriction',
name:'canChangeDomainUsersOnlyRestriction',
type:'boolean',
default:false,
description:
'Whether the current user can change the domainUsersOnly restriction of this shared drive',
},
{
displayName:'Can Change Drive Background',
name:'canChangeDriveBackground',
type:'boolean',
default:false,
description:
'Whether the current user can change the background of this shared drive',
},
{
displayName:'Can Change Drive Members Only Restriction',
name:'canChangeDriveMembersOnlyRestriction',
type:'boolean',
default:false,
description:
'Whether the current user can change the driveMembersOnly restriction of this shared drive',
},
{
displayName:'Can Comment',
name:'canComment',
type:'boolean',
default:false,
description:'Whether the current user can comment on files in this shared drive',
},
{
displayName:'Can Copy',
name:'canCopy',
type:'boolean',
default:false,
description:'Whether the current user can copy files in this shared drive',
},
{
displayName:'Can Delete Children',
name:'canDeleteChildren',
type:'boolean',
default:false,
description:
'Whether the current user can delete children from folders in this shared drive',
},
{
displayName:'Can Delete Drive',
name:'canDeleteDrive',
type:'boolean',
default:false,
description:
'Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.',
},
{
displayName:'Can Download',
name:'canDownload',
type:'boolean',
default:false,
description:'Whether the current user can download files in this shared drive',
},
{
displayName:'Can Edit',
name:'canEdit',
type:'boolean',
default:false,
description:'Whether the current user can edit files in this shared drive',
},
{
displayName:'Can List Children',
name:'canListChildren',
type:'boolean',
default:false,
description:
'Whether the current user can list the children of folders in this shared drive',
},
{
displayName:'Can Manage Members',
name:'canManageMembers',
type:'boolean',
default:false,
description:
'Whether the current user can add members to this shared drive or remove them or change their role',
},
{
displayName:'Can Read Revisions',
name:'canReadRevisions',
type:'boolean',
default:false,
description:
'Whether the current user can read the revisions resource of files in this shared drive',
},
{
displayName:'Can Rename',
name:'canRename',
type:'boolean',
default:false,
description:
'Whether the current user can rename files or folders in this shared drive',
},
{
displayName:'Can Rename Drive',
name:'canRenameDrive',
type:'boolean',
default:false,
description:'Whether the current user can rename this shared drive',
},
{
displayName:'Can Share',
name:'canShare',
type:'boolean',
default:false,
description:'Whether the current user can rename this shared drive',
},
{
displayName:'Can Trash Children',
name:'canTrashChildren',
type:'boolean',
default:false,
description:
'Whether the current user can trash children from folders in this shared drive',
},
],
},
{
displayName:'Color RGB',
name:'colorRgb',
type:'color',
default:'',
description:'The color of this shared drive as an RGB hex string',
},
{
displayName:'Created Time',
name:'createdTime',
type:'dateTime',
default:'',
description:'The time at which the shared drive was created (RFC 3339 date-time)',
},
{
displayName:'Hidden',
name:'hidden',
type:'boolean',
default:false,
description:'Whether the shared drive is hidden from default view',
},
{
displayName:'Restrictions',
name:'restrictions',
type:'collection',
placeholder:'Add Field',
default:{},
options:[
{
displayName:'Admin Managed Restrictions',
name:'adminManagedRestrictions',
type:'boolean',
default:false,
description:
'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
},
{
displayName:'Copy Requires Writer Permission',
name:'copyRequiresWriterPermission',
type:'boolean',
default:false,
description:
'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
},
{
displayName:'Domain Users Only',
name:'domainUsersOnly',
type:'boolean',
default:false,
description:
'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
},
{
displayName:'Drive Members Only',
name:'driveMembersOnly',
type:'boolean',
default:false,
description:
'Whether access to items inside this shared drive is restricted to its members',
},
],
},
],
},
// ----------------------------------
// drive:delete
// ----------------------------------
// ----------------------------------
// drive:get
// ----------------------------------
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['get'],
resource:['drive'],
},
},
options:[
{
displayName:'Use Domain Admin Access',
name:'useDomainAdminAccess',
type:'boolean',
default:false,
description:
'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. (Default: false).',
},
],
},
// ----------------------------------
// drive:list
// ----------------------------------
{
displayName:'Return All',
name:'returnAll',
type:'boolean',
displayOptions:{
show:{
operation:['list'],
resource:['drive'],
},
},
default:false,
description:'Whether to return all results or only up to a given limit',
},
{
displayName:'Limit',
name:'limit',
type:'number',
displayOptions:{
show:{
operation:['list'],
resource:['drive'],
returnAll:[false],
},
},
typeOptions:{
minValue: 1,
maxValue: 200,
},
default:100,
description:'Max number of results to return',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['list'],
resource:['drive'],
},
},
options:[
{
displayName:'Query',
name:'q',
type:'string',
default:'',
description:
'Query string for searching shared drives. See the <a href="https://developers.google.com/drive/api/v3/search-shareddrives">"Search for shared drives"</a> guide for supported syntax.',
},
{
displayName:'Use Domain Admin Access',
name:'useDomainAdminAccess',
type:'boolean',
default:false,
description:
'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. (Default: false).',
},
],
},
// ----------------------------------
// drive:update
// ----------------------------------
{
displayName:'Update Fields',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['update'],
resource:['drive'],
},
},
options:[
{
displayName:'Color RGB',
name:'colorRgb',
type:'color',
default:'',
description:'The color of this shared drive as an RGB hex string',
},
{
displayName:'Name',
name:'name',
type:'string',
default:'',
description:'The name of this shared drive',
},
{
displayName:'Restrictions',
name:'restrictions',
type:'collection',
placeholder:'Add Field',
default:{},
options:[
{
displayName:'Admin Managed Restrictions',
name:'adminManagedRestrictions',
type:'boolean',
default:false,
description:
'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
},
{
displayName:'Copy Requires Writer Permission',
name:'copyRequiresWriterPermission',
type:'boolean',
default:false,
description:
'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
},
{
displayName:'Domain Users Only',
name:'domainUsersOnly',
type:'boolean',
default:false,
description:
'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
},
{
displayName:'Drive Members Only',
name:'driveMembersOnly',
type:'boolean',
default:false,
description:
'Whether access to items inside this shared drive is restricted to its members',
},
],
},
],
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['upload'],
resource:['file'],
},
},
options:[
{
displayName:'APP Properties',
name:'appPropertiesUi',
placeholder:'Add Property',
type:'fixedCollection',
default:{},
typeOptions:{
multipleValues: true,
},
description:
'A collection of arbitrary key-value pairs which are private to the requesting app',
options:[
{
name:'appPropertyValues',
displayName:'APP Property',
values:[
{
displayName:'Key',
name:'key',
type:'string',
default:'',
description:'Name of the key to add',
},
{
displayName:'Value',
name:'value',
type:'string',
default:'',
description:'Value to set for the key',
},
],
},
],
},
{
displayName:'Properties',
name:'propertiesUi',
placeholder:'Add Property',
type:'fixedCollection',
default:{},
typeOptions:{
multipleValues: true,
},
description:'A collection of arbitrary key-value pairs which are visible to all apps',