Skip to content

Enable Google Drive processors to use Shared Drives#3964

Merged
MikolajGagatekRP merged 4 commits intomainfrom
miko/gdrive_search_shared
Feb 5, 2026
Merged

Enable Google Drive processors to use Shared Drives#3964
MikolajGagatekRP merged 4 commits intomainfrom
miko/gdrive_search_shared

Conversation

@MikolajGagatekRP
Copy link
Contributor

@MikolajGagatekRP MikolajGagatekRP commented Feb 5, 2026

Enable Google Drive Shared Drives Support

This PR adds support for accessing files stored in Google Drive Shared Drives (formerly Team Drives) for the gcp_drive_search and gcp_drive_download processors.

Changes

  • Added shared_drives boolean field to both processors (defaults to false for backwards compatibility)
  • Updated gcp_drive_search to include items from shared drives when enabled (SupportsAllDrives + IncludeItemsFromAllDrives)
  • Updated gcp_drive_download to download files from shared drives when enabled (SupportsAllDrives)

Usage

Search files in shared drives

  processor:
    gcp_drive_search:
      query: "name contains 'report'"
      shared_drives: true

Download files from shared drives

  processor:
    gcp_drive_download:
      file_id: "${!json(\"id\")}"
      shared_drives: true
  Files: internal/impl/google/drive_search.go, internal/impl/google/drive_download.go

@CLAassistant
Copy link

CLAassistant commented Feb 5, 2026

CLA assistant check
All committers have signed the CLA.

@MikolajGagatekRP MikolajGagatekRP self-assigned this Feb 5, 2026
Advanced(),
service.NewBoolField(driveDownloadSupportSharedDrives).
Description("Whether or not to include shared drives.").
Default(false),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@birdayz suggested adding it.
We are preparing pipelines for CKO ADP Workshop and using our RP shared docs would be very helpful for that. Hence to achieve it we need to turn on that function to search/download files including SharedDrives

methods instead of functions
fix filed const namings
@MikolajGagatekRP MikolajGagatekRP marked this pull request as ready for review February 5, 2026 13:07
@MikolajGagatekRP MikolajGagatekRP merged commit 0980e4d into main Feb 5, 2026
5 checks passed
@MikolajGagatekRP MikolajGagatekRP deleted the miko/gdrive_search_shared branch February 5, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants