When to use this connector
Use this connector to create Flows that work with files in Google Drive.
Create a Connection
To work with Google Drive, you will need to create a Connection. In the Connections
window, click +
, and type in google drive
in the search field. Select the Google Drive
Connection from the gallery.
Authentication
To connect to specific Google service, you will either be using the OAuth2 authentication (default) or the authentication with a Google Service Account.
OAuth2 authentication
To connect to the Google service using OAuth2 protocol, you will need to select OAuth2
as an Authentication type
and click Sign in with Google
. Read more about OAuth2 authentication with Google Services.
Authentication using Google Service account
To connect to the Google service using the service account, select the Service Account
as an Authentication type
, then share the folder with the service account email. The default service account email is etl-framework@api-project-201080624425.iam.gserviceaccount.com
.
To share a folder with a service account email, click SHARE
, add the service account email to the list, and click Done
.
Parameters for authenticating with Google Service Account
Service Account Email
: the drive must be shared with the service account email.Service Account
: You can create your own service account in the Google API console, authorize it in the Google Analytics Admin and add it to this Connection. If nothing is entered in this field, the default account, linked to the emailetl-framework@api-project-201080624425.iam.gserviceaccount.com
will be used.
Connection parameters
Shared Folder ID
: a unique ID for the folder. For example, if the URL used to access a foldrer like the followinghttps://drive.google.com/drive/u/0/folders/1DdCZgMuvn6bbIpzT6RIPmBZ-ZWZ8uZxd
, the Folder ID is going to be1DdCZgMuvn6bbIpzT6RIPmBZ-ZWZ8uZxd
.
Support MyDrive and Shared Drive
: if this option is enabled (default) the connector supports MyDrives and Shared drives. When it is disabled it only supports MyDrives. Most of the drives are configured as MyDrives so you can try disabling it for more efficiency. Revert back to 'enabled' if the connector doesn't show any files in Explorer.Directory under shared folder
: the actual directory with files. This parameter is optional.Files
: the actual file name or a wildcard file name, for example,*.csv
.
Add Suffix When Creating Files in Transformation
: you can select one of the predefined suffixes for the files created using this Connection. For example, if you selectuuid
as a suffix and the original file name isdest.csv
, Etlworks will create files with the namedest_uuid.csv
, where uuid is a globally unique identifier such as21EC2020-3AEA-4069-A2DD-08002B30309D
.
This parameter works only when the file is created using source-to-destination-transformation. Read how to add a suffix to the files created when copying, moving, renaming, and ziping files.
Enable Wildcard File Name
: if there are multiple source files in a folder, you can specify an algorithm which will be used to select the next source file to process. For example, ifFiles
is set to*.csv
andoldest
is selected, Etlworks will always select the oldest file in the folder which matches the wildcard*.csv
.Override Wildcard File Name set for Connection
: ifWildcard File Names
are allowed,Override Wildcard File Name set for Connection
is enabled, and the file name entered in theFROM
field of the transformation is a wildcard file name, the system will override the file name entered at the Connection level. Otherwise, the default behavior is to use the wildcard file name entered when the Connection was configured.
Decryption
When Google Drive Connection is used as a source (FROM
) in the source-to-destination transformation, it is possible to configure the automatic decryption of the encrypted source files using the PGP algorithm and private key uploaded to the secure key storage.
If the private key is available, all source files processed by the transformation will be automatically decrypted using the PGP algorithm and given key. Note that the private key requires a password.
Comments
0 comments
Please sign in to leave a comment.