/** * Google Drive Node - Version 3 * Discriminator: resource=drive, operation=create */ interface Credentials { googleApi: CredentialReference; googleDriveOAuth2Api: CredentialReference; } /** Create a shared drive */ export type GoogleDriveV3DriveCreateParams = { resource: 'drive'; operation: 'create'; authentication?: 'oAuth2' | 'serviceAccount' | Expression; /** * The name of the shared drive to create */ name?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** Capabilities * @default {} */ capabilities?: { /** Whether the current user can add children to folders in this shared drive * @default false */ canAddChildren?: boolean | Expression; /** Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive * @default false */ canChangeCopyRequiresWriterPermissionRestriction?: boolean | Expression; /** Whether the current user can change the domainUsersOnly restriction of this shared drive * @default false */ canChangeDomainUsersOnlyRestriction?: boolean | Expression; /** Whether the current user can change the background of this shared drive * @default false */ canChangeDriveBackground?: boolean | Expression; /** Whether the current user can change the driveMembersOnly restriction of this shared drive * @default false */ canChangeDriveMembersOnlyRestriction?: boolean | Expression; /** Whether the current user can comment on files in this shared drive * @default false */ canComment?: boolean | Expression; /** Whether the current user can copy files in this shared drive * @default false */ canCopy?: boolean | Expression; /** Whether the current user can delete children from folders in this shared drive * @default false */ canDeleteChildren?: boolean | Expression; /** 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. * @default false */ canDeleteDrive?: boolean | Expression; /** Whether the current user can download files in this shared drive * @default false */ canDownload?: boolean | Expression; /** Whether the current user can edit files in this shared drive * @default false */ canEdit?: boolean | Expression; /** Whether the current user can list the children of folders in this shared drive * @default false */ canListChildren?: boolean | Expression; /** Whether the current user can add members to this shared drive or remove them or change their role * @default false */ canManageMembers?: boolean | Expression; /** Whether the current user can read the revisions resource of files in this shared drive * @default false */ canReadRevisions?: boolean | Expression; /** Whether the current user can rename files or folders in this shared drive * @default false */ canRename?: boolean | Expression; /** Whether the current user can rename this shared drive * @default false */ canRenameDrive?: boolean | Expression; /** Whether the current user can share files or folders in this shared drive * @default false */ canShare?: boolean | Expression; /** Whether the current user can trash children from folders in this shared drive * @default false */ canTrashChildren?: boolean | Expression; }; /** The color of this shared drive as an RGB hex string */ colorRgb?: string | Expression; /** Whether the shared drive is hidden from default view * @default false */ hidden?: boolean | Expression; /** Restrictions * @default {} */ restrictions?: { /** 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. * @default false */ adminManagedRestrictions?: boolean | Expression; /** 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. * @default false */ copyRequiresWriterPermission?: boolean | Expression; /** 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. * @default false */ domainUsersOnly?: boolean | Expression; /** Whether access to items inside this shared drive is restricted to its members * @default false */ driveMembersOnly?: boolean | Expression; }; }; }; export type GoogleDriveV3DriveCreateOutput = { id?: string; kind?: string; name?: string; }; export type GoogleDriveV3DriveCreateNode = { type: 'n8n-nodes-base.googleDrive'; version: 3; credentials?: Credentials; config: NodeConfig; output?: Items; };