Files
n8n/packages/nodes-base/nodes/Google/Drive/v2/actions/file/File.resource.ts
T
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

86 lines
2.0 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
import * as copy from './copy.operation';
import * as createFromText from './createFromText.operation';
import * as deleteFile from './deleteFile.operation';
import * as download from './download.operation';
import * as move from './move.operation';
import * as share from './share.operation';
import * as update from './update.operation';
import * as upload from './upload.operation';
export { copy, createFromText, deleteFile, download, move, share, update, upload };
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['file'],
},
},
options: [
{
name: 'Copy',
value: 'copy',
description: 'Create a copy of an existing file',
action: 'Copy file',
},
{
name: 'Create From Text',
value: 'createFromText',
description: 'Create a file from a provided text',
action: 'Create file from text',
},
{
name: 'Delete',
value: 'deleteFile',
description: 'Permanently delete a file',
action: 'Delete a file',
},
{
name: 'Download',
value: 'download',
description: 'Download a file',
action: 'Download file',
},
{
name: 'Move',
value: 'move',
description: 'Move a file to another folder',
action: 'Move file',
},
{
name: 'Share',
value: 'share',
description: 'Add sharing permissions to a file',
action: 'Share file',
},
{
name: 'Update',
value: 'update',
description: 'Update a file',
action: 'Update file',
},
{
name: 'Upload',
value: 'upload',
description: 'Upload an existing file to Google Drive',
action: 'Upload file',
},
],
default: 'upload',
},
...copy.description,
...deleteFile.description,
...createFromText.description,
...download.description,
...move.description,
...share.description,
...update.description,
...upload.description,
];