interface GoogleDriveV1NodeParameters {
authentication?: "oAuth2" | "serviceAccount";
binaryData?: boolean;
binaryPropertyName?: string;
driveId?: {
mode: "id" | "list" | "url";
value: string;
};
fileContent?: string;
fileId?: { mode: "id"
| "list"
| "url"; value: string };
limit?: number;
name?: string;
operation?:
| "create"
| "get"
| "update"
| "list"
| "delete"
| "upload"
| "copy"
| "download"
| "share";
options?: | {
fileName?: string;
googleFileConversion?: {
conversion: {
docsToFormat?: | "text/html"
| "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
| "application/vnd.oasis.opendocument.text"
| "application/pdf"
| "application/rtf";
drawingsToFormat?: | "application/pdf"
| "image/jpeg"
| "image/png"
| "image/svg+xml";
sheetsToFormat?: | "application/pdf"
| "application/x-vnd.oasis.opendocument.spreadsheet"
| "text/csv";
slidesToFormat?: | "text/plain"
| "application/pdf"
| "application/vnd.openxmlformats-officedocument.presentationml.presentation"
| "application/vnd.oasis.opendocument.presentation";
};
};
}
| {
fields?: (
| "id"
| "name"
| "permissions"
| "*"
| "kind"
| "explicitlyTrashed"
| "exportLinks"
| "hasThumbnail"
| "iconLink"
| "mimeType"
| "shared"
| "spaces"
| "starred"
| "thumbnailLink"
| "trashed"
| "version"
| "webViewLink"
)[];
}
| {
corpora?: "user"
| "domain"
| "drive"
| "allDrives";
driveId?: string;
emailMessage?: string;
enforceSingleParent?: boolean;
fields?: (
| "id"
| "name"
| "permissions"
| "*"
| "kind"
| "explicitlyTrashed"
| "exportLinks"
| "hasThumbnail"
| "iconLink"
| "mimeType"
| "shared"
| "spaces"
| "starred"
| "thumbnailLink"
| "trashed"
| "version"
| "webViewLink"
)[];
moveToNewOwnersRoot?: boolean;
name?: string;
parents?: string;
sendNotificationEmail?: boolean;
spaces?: ("*" | "photos" | "drive" | "appDataFolder")[];
supportsAllDrives?: boolean;
transferOwnership?: boolean;
useDomainAdminAccess?: boolean;
}
| {
capabilities?: {
canAddChildren?: boolean;
canChangeCopyRequiresWriterPermissionRestriction?: boolean;
canChangeDomainUsersOnlyRestriction?: boolean;
canChangeDriveBackground?: boolean;
canChangeDriveMembersOnlyRestriction?: boolean;
canComment?: boolean;
canCopy?: boolean;
canDeleteChildren?: boolean;
canDeleteDrive?: boolean;
canDownload?: boolean;
canEdit?: boolean;
canListChildren?: boolean;
canManageMembers?: boolean;
canReadRevisions?: boolean;
canRename?: boolean;
canRenameDrive?: boolean;
canShare?: boolean;
canTrashChildren?: boolean;
};
colorRgb?: string;
createdTime?: string;
hidden?: boolean;
restrictions?: {
adminManagedRestrictions?: boolean;
copyRequiresWriterPermission?: boolean;
domainUsersOnly?: boolean;
driveMembersOnly?: boolean;
};
}
| { useDomainAdminAccess?: boolean }
| { q?: string; useDomainAdminAccess?: boolean }
| {
colorRgb?: string;
name?: string;
restrictions?: {
adminManagedRestrictions?: boolean;
copyRequiresWriterPermission?: boolean;
domainUsersOnly?: boolean;
driveMembersOnly?: boolean;
};
}
| {
appPropertiesUi?: {
appPropertyValues: {
key?: string;
value?: string;
}[];
};
propertiesUi?: {
propertyValues: { key?: string; value?: string }[];
};
};
parents?: string;
permissionsUi?: {
permissionsValues: {
allowFileDiscovery?: boolean;
domain?: string;
emailAddress?: string;
role?: | "owner"
| "commenter"
| "fileOrganizer"
| "organizer"
| "reader"
| "writer";
type?: "user"
| "group"
| "domain"
| "anyone";
};
};
queryFilters?: {
mimeType: {
customMimeType?: string;
mimeType?: | "custom"
| "application/vnd.google-apps.audio"
| "application/vnd.google-apps.document"
| "application/vnd.google-apps.drawing"
| "application/vnd.google-apps.presentation"
| "application/vnd.google-apps.spreadsheet"
| "application/vnd.google-apps.photo"
| "application/vnd.google-apps.video"
| "application/vnd.google-apps.drive-sdk"
| "application/vnd.google-apps.script"
| "application/vnd.google-apps.file"
| "application/vnd.google-apps.folder"
| "application/vnd.google-apps.form"
| "application/vnd.google-apps.fusiontable"
| "application/vnd.google-apps.map"
| "application/vnd.google-apps.site"
| "application/vnd.google-apps.unknown";
}[];
name: {
operation?: "contains"
| "is"
| "isNot";
value?: string;
}[];
};
queryString?: string;
resolveData?: boolean;
resource?: "file"
| "folder"
| "drive";
returnAll?: boolean;
updateFields?: {
fileName?: string;
keepRevisionForever?: boolean;
ocrLanguage?: string;
parentId?: string;
trashed?: boolean;
useContentAsIndexableText?: boolean;
};
useQueryString?: boolean;
}Properties§
readonly authentication?: "oAuth2" | "serviceAccount"readonly binary Data?: booleanWhether the data to upload should be taken from binary field
readonly binary Property Name?: stringDefault: "data"
readonly drive Id?: { ... }The ID of the drive Default: {"mode":"list","value":""}
readonly file Content?: stringThe text content of the file to upload
readonly file Id?: { ... }The ID of the file Default: {"mode":"list","value":""}
readonly limit?: numberMax number of results to return Default: 50 Type options: {"minValue":1,"maxValue":1000}
readonly name?: stringThe name the file should be saved as
readonly operation?:
| "create"
| "get"
| "update"
| "list"
| "delete"
| "upload"
| "copy"
| "download"
| "share"Default: "upload"
readonly options?:
| {
fileName?: string;
googleFileConversion?: {
conversion: {
docsToFormat?: | "text/html"
| "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
| "application/vnd.oasis.opendocument.text"
| "application/pdf"
| "application/rtf";
drawingsToFormat?: | "application/pdf"
| "image/jpeg"
| "image/png"
| "image/svg+xml";
sheetsToFormat?: | "application/pdf"
| "application/x-vnd.oasis.opendocument.spreadsheet"
| "text/csv";
slidesToFormat?: | "text/plain"
| "application/pdf"
| "application/vnd.openxmlformats-officedocument.presentationml.presentation"
| "application/vnd.oasis.opendocument.presentation";
};
};
}
| {
fields?: (
| "id"
| "name"
| "permissions"
| "*"
| "kind"
| "explicitlyTrashed"
| "exportLinks"
| "hasThumbnail"
| "iconLink"
| "mimeType"
| "shared"
| "spaces"
| "starred"
| "thumbnailLink"
| "trashed"
| "version"
| "webViewLink"
)[];
}
| {
corpora?: "user"
| "domain"
| "drive"
| "allDrives";
driveId?: string;
emailMessage?: string;
enforceSingleParent?: boolean;
fields?: (
| "id"
| "name"
| "permissions"
| "*"
| "kind"
| "explicitlyTrashed"
| "exportLinks"
| "hasThumbnail"
| "iconLink"
| "mimeType"
| "shared"
| "spaces"
| "starred"
| "thumbnailLink"
| "trashed"
| "version"
| "webViewLink"
)[];
moveToNewOwnersRoot?: boolean;
name?: string;
parents?: string;
sendNotificationEmail?: boolean;
spaces?: ("*" | "photos" | "drive" | "appDataFolder")[];
supportsAllDrives?: boolean;
transferOwnership?: boolean;
useDomainAdminAccess?: boolean;
}
| {
capabilities?: {
canAddChildren?: boolean;
canChangeCopyRequiresWriterPermissionRestriction?: boolean;
canChangeDomainUsersOnlyRestriction?: boolean;
canChangeDriveBackground?: boolean;
canChangeDriveMembersOnlyRestriction?: boolean;
canComment?: boolean;
canCopy?: boolean;
canDeleteChildren?: boolean;
canDeleteDrive?: boolean;
canDownload?: boolean;
canEdit?: boolean;
canListChildren?: boolean;
canManageMembers?: boolean;
canReadRevisions?: boolean;
canRename?: boolean;
canRenameDrive?: boolean;
canShare?: boolean;
canTrashChildren?: boolean;
};
colorRgb?: string;
createdTime?: string;
hidden?: boolean;
restrictions?: {
adminManagedRestrictions?: boolean;
copyRequiresWriterPermission?: boolean;
domainUsersOnly?: boolean;
driveMembersOnly?: boolean;
};
}
| { useDomainAdminAccess?: boolean }
| { q?: string; useDomainAdminAccess?: boolean }
| {
colorRgb?: string;
name?: string;
restrictions?: {
adminManagedRestrictions?: boolean;
copyRequiresWriterPermission?: boolean;
domainUsersOnly?: boolean;
driveMembersOnly?: boolean;
};
}
| {
appPropertiesUi?: {
appPropertyValues: {
key?: string;
value?: string;
}[];
};
propertiesUi?: {
propertyValues: { key?: string; value?: string }[];
};
}Default: {}
readonly parents?: stringThe IDs of the parent folders which contain the file Default: [] Type options: {"multipleValues":true}
readonly permissions Ui?: { ... }Default: {} Type options: {"multipleValues":false}
readonly query Filters?: { ... }Filters to use to return only specific files Default: {} Type options: {"multipleValues":true}
readonly query String?: stringQuery to use to return only specific files
readonly resolve Data?: booleanBy default the response only contain the ID of the file. If this option gets activated, it will resolve the data automatically.
readonly resource?: "file" | "folder" | "drive"Default: "file"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly update Fields?: { ... }Default: {}
readonly use Query String?: booleanWhether a query string should be used to filter results
Default: "serviceAccount"