FetchGoogleDriveMetadata 2025.3.28.13-SNAPSHOT

BUNDLE

com.snowflake.openflow.runtime | runtime-google-drive-nar

DESCRIPTION

Fetches Google Drive file metadata. This includes the file’s name, size, MIME type, and permissions.The file ID must be provided as a FlowFile attribute.

TAGS

authorization, cloud, drive, gcp, google, openflow, permissions, storage, unstructured

INPUT REQUIREMENT

REQUIRED

Supports Sensitive Dynamic Properties

false

PROPERTIES

Property

Description

File ID

An id of an file to retrieve the metadata for

GCP Credentials Service

The Controller Service used to obtain Google Cloud Platform credentials.

RELATIONSHIPS

NAME

DESCRIPTION

not.found

A FlowFile is routed here if the file metadata was not found

retry

A FlowFile is routed here if the processor should retry the request (e.g., after rate limiting).

failure

A FlowFile is routed here if the processor fails to retrieve Google Drive file metadata.

success

A FlowFile is routed here after successfully retrieving Google Drive file metadata.

WRITES ATTRIBUTES

NAME

DESCRIPTION

google.drive.drive.id

The ID of the Shared Google Drive.

google.drive.file.name

The name of the file.

google.drive.created.time

The timestamp when the file was created, in milliseconds since the Unix epoch.

google.drive.modified.time

The timestamp when the file was modified, in milliseconds since the Unix epoch.

google.drive.size

The size of the file in bytes.

google.drive.md5

The MD5 checksum of the file.

google.drive.mime.type

The MIME type of the file.

google.drive.version

The version of the file. This changes based on user and system based updates to the file.

google.drive.webUrl

A link for opening the file in a relevant Google editor or viewer in a browser.

google.drive.lastModifiedBy.displayName

A display name of the user that modified the file.

google.drive.lastModifiedBy.email

An email of the user that modified the file.

google.drive.permissions.<role>.users

A comma-separated list of email addresses for users with the specified role. Valid roles are ‘owner’, ‘organizer’, ‘fileOrganizer’, ‘writer’, ‘commenter’, ‘reader’. For example, if the owner is john.doe@gmail.com and users jane.doe@gmail.com and jake.doe@gmail.com are readers, there would be an attribute named google.drive.permissions.owner.users with the value john.doe@gmail.com, and an attribute named google.drive.permissions.reader.users with the value jane.doe@gmail.com, jake.doe@gmail.com

google.drive.permissions.<role>.groups

A comma-separated list of email addresses for groups with the specified role. Valid roles are ‘owner’, ‘organizer’, ‘fileOrganizer’, ‘writer’, ‘commenter’, ‘reader’. For example, if the owner is employees@openflow-all-dev.iam.gserviceaccount.com and the group contractors@openflow-all-dev.iam.gserviceaccount.com is a reader, there would be an attribute named google.drive.permissions.owner.groups with the value employees@openflow-all-dev.iam.gserviceaccount.com, and an attribute named google.drive.permissions.reader.groups with the value contractors@openflow-all-dev.iam.gserviceaccount.com

google.drive.permissions.<role>.domains

A comma-separated list of domain names for which all users have the given role. Valid roles are ‘owner’, ‘organizer’, ‘fileOrganizer’, ‘writer’, ‘commenter’, ‘reader’. For example, if all users in the domain snowflake.com have the role of reader, there would be an attribute named google.drive.permissions.reader.domains with the value snowflake.com

google.drive.permissions.<role>.public

If a file is shared publicly, this attribute will be added with a value of ‘true’ for any role that applies to the public.

google.drive.file.path

The hierarchical path of the file in Google Drive, e.g. ‘parent_folder/child_folder/file.txt’.

SEE ALSO

Language: English