Skip to content

Commit a37369b

Browse files
authored
Google Drive source connector: shared drives are now also supported (#589)
1 parent 299c273 commit a37369b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
- `<name>` (_required_) - A unique name for this connector.
2-
- `<drive-id>` - The ID for the target Google Drive folder.
2+
- `<drive-id>` - The ID for the target Google Drive folder or drive.
33
- `<service-account-key>` - The contents of the `credentials.json` key file as a single-line string.
44
- For `extensions`, set one or more `<extension>` values (such as `pdf` or `docx`) to process files with only those extensions. The default is to include all extensions.
55

66
<Note>
77
Do not include the leading dot in the file extensions. For example, use `pdf` or `docx` instead of `.pdf` or `.docx`.
88
</Note>
99

10-
- Set `recursive` to `true` to recursively process data from subfolders within the target folder. The default is `false` if not otherwise specified.
10+
- Set `recursive` to `true` to recursively process data from subfolders within the target folder or drive. The default is `false` if not otherwise specified.

snippets/general-shared-text/google-drive-cli-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AdditionalIngestDependencies from '/snippets/general-shared-text/ingest-d
1010

1111
The following environment variables:
1212

13-
- `GOOGLE_DRIVE_FOLDER_ID` - The folder ID, represented by `--drive-id` (CLI) or `drive_id` (Python).
13+
- `GOOGLE_DRIVE_FOLDER_ID` - The folder or drive ID, represented by `--drive-id` (CLI) or `drive_id` (Python).
1414
- One of the following:
1515

1616
- `GCP_SERVICE_ACCOUNT_KEY_FILEPATH` - The path to the `credentials.json` key file, represented by `--service-account-key-path` (CLI) or `service_account_key_path` (Python).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Fill in the following fields:
22

33
- **Name** (_required_): A unique name for this connector.
4-
- **Drive ID** (_required_): The target folder's ID.
4+
- **Drive ID** (_required_): The target folder's or drive's ID.
55
- **Extensions**: A comma-separated list of any file extensions to be included in the ingestion process (such as `jpg,pdf`), if filtering is needed.
66
The default is to include all files, if not otherwise specified.
77

88
<Note>
99
Do not include the leading dot in the file extensions. For example, use `jpg` or `pdf` instead of `.jpg` or `.pdf`.
1010
</Note>
1111

12-
- **Recursive**: Check this box to also access files from all subfolders within the folder.
12+
- **Recursive**: Check this box to also access files from all subfolders within the folder or drive.
1313
- **Account Key** (_required_): The contents of the `credentials.json` key file for the target service account. These contents must be expressed as a single-line string without line breaks.

snippets/general-shared-text/google-drive.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ allowfullscreen
3232
(Get-Content -Path "<path-to-downloaded-key-file>" -Raw).Replace("`r`n", "").Replace("`n", "")
3333
```
3434

35-
- A [Google Drive folder](https://support.google.com/drive/answer/2375091).
36-
- Give the service account access to the folder. To do this, share the folder with the service account's email address.
35+
- A Google Drive [shared folder](https://support.google.com/drive/answer/2375091) or [shared drive](https://support.google.com/a/users/answer/7212025).
36+
- Give the service account access to the shared folder or shared drive. To do this, share the folder or drive with the service account's email address.
3737
[Learn how](https://support.google.com/drive/answer/7166529).
3838
[Learn more](https://www.googlecloudcommunity.com/gc/Workspace-Q-A/Can-i-give-access-to-document-of-google-drive-to-service-account/m-p/530106).
39-
- Get the folder's ID. This is a part of the URL for your Google Drive folder represented in the following URL as `{folder_id}`: `https://drive.google.com/drive/folders/{folder-id}`.
39+
- Get the shared folder's ID or shared drive's ID. This is a part of the URL for your Google Drive shared folder or shared drive, represented in the following URL as `{folder_id}`: `https://drive.google.com/drive/folders/{folder-id}`.

0 commit comments

Comments
 (0)