/** * Google Drive Node - Version 2 * Discriminator: resource=drive, operation=update */ interface Credentials { googleApi: CredentialReference; googleDriveOAuth2Api: CredentialReference; } /** Update a file */ export type GoogleDriveV2DriveUpdateParams = { resource: 'drive'; operation: 'update'; /** * Authentication * @default oAuth2 */ authentication?: 'oAuth2' | 'serviceAccount' | Expression; /** * The ID of the drive * @hint The Google Drive drive to operate on * @default {"mode":"list","value":""} */ driveId?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string }; /** * Update Fields * @default {} */ options?: { /** The color of this shared drive as an RGB hex string */ colorRgb?: string | Expression; /** The name of this shared drive */ name?: string | Expression | PlaceholderValue; /** 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 GoogleDriveV2DriveUpdateNode = { type: 'n8n-nodes-base.googleDrive'; version: 2; credentials?: Credentials; config: NodeConfig; };