Google Drive Connector

Version 21.0.8222


Google Drive Connector


The Google Drive Connector uploads to and downloads from the Google Drive cloud storage service.

概要

Each Google Drive Connector connects to a specified Google Drive storage account. Within the remote storage, a single folder is set as the upload target and a single folder is set as the download target.

Files that reach the Google Drive Connector in the ArcESB flow are uploaded to the upload target folder, and files found in the download target folder are downloaded and entered into the ArcESB flow. The connector supports upload and download filters to only send and receive specified file names and/or file extensions.

Account authorization is OAuth-based, so account credentials must be entered in an external site portal the first time the connector connects. The external portal generates an OAuth token that the connector uses to connect, and the connector handles token refresh automatically.

Connector Configuration

This section contains all of the configurable connector properties.

Settings Tab

Authorization

Settings related to authorizing access to the remote storage.

  • Connector Id The static name of the connector. All connector-specific files are held in a folder by the same name within the Data Directory.
  • Connector Description An optional field to provide free-form description of the connector and its role in the flow.
  • OAuth クライアントID The Client ID credential provided by Google for the target storage account. This value should be acquired directly from Google via the Google Console.
  • OAuth クライアントシークレット The Client Secret credential provided by Google for the target storage account. This value should be acquired directly from Google via the Google Console.

Note:Google may require an OAuth callback/redirect URL when generating OAuth credentials. Arc’s callback/redirect URL is the same as the address/port where the application is hosted, plus the following resource path: src/oauthCallback.rst. For example, if Arc is hosted on ‘mydomain.com’ on port 8001, the following URL should be specified as the callback/redirect URL: http://mydomain.com:8001/src/oauthCallback.rst.

Send

Settings related to uploading to the remote storage.

  • リモートフォルダ Files processed by the connector will be uploaded to this specified remote folder.
  • リモートファイルを上書き Whether files that already exist in the remote folder should be uploaded (overwritten) or skipped.

Receive

Settings related to downloading from the remote storage.

  • リモートフォルダ The remote folder from which files will be downloaded. Multiple folders can be specified in a comma-delimited list.
  • ファイルマスク A glob pattern that determines which files within the リモートフォルダ should be downloaded (e.g. *.txt). If multiple File Masks are required, the 受信フィルタ advanced field should be used.
  • ファイルを削除(受信後) Whether files that are successfully downloaded should be deleted from the remote storage afterwards.

Automation Tab

Automation Settings

Settings related to the automatic processing of files by the connector.

  • 送信 Whether files arriving at the connector will automatically be uploaded.
  • 再試行間隔 The amount of time before a failed upload is retried.
  • Max Attempts The maximum number of times the connector will process the input file. Success is measured based on a successful server acknowledgement. If this is set to 0, the connect will retry the file indefinitely.
  • 受信 Whether the connector should automatically poll the remote download path for files to download.
  • 受信間隔 The interval between automatic download attempts.
  • The number of minutes to wait before downloading. Only applicable when 受信間隔 is set to Minute.
  • 毎時何分 The minutes offset for an hourly schedule. Only applicable when 受信間隔 is set to Hourly. For example, if this value is set to 5, the automation service will download at 1:05, 2:05, 3:05, etc.
  • The time within a given day that the download should occur. Only applicable when 受信間隔 is set to Daily, or Weekly, or Monthly.
  • The day on which the download should occur. Only applicable when 受信間隔 is set to Weekly or Monthly.
  • Cron 式 An arbitrary string representing a cron expression that determines when the download should occur. Only applicable when 受信間隔 is set to Advanced.

Performance

Settings related to the allocation of resources to the connector.

  • Max Workers The maximum number of worker threads that will be consumed from the threadpool to process files on this connector. If set, overrides the default setting from the Profile tab.
  • Max Files The maximum number of files that will be processed by the connector each time worker threads are assigned to the connector. If set, overrides the default setting from the Profile tab.

Advanced Tab

Other Settings

Settings not included in the previous categories.

  • 受信フィルタ A glob pattern filter to determine which files should be downloaded from the remote storage (e.g. *.txt). Negative patterns may be used to indicate files that should not be downloaded (e.g. -*.tmp). This setting should be used when multiple ファイルマスク patterns are desired. Multiple patterns may be separated by commas, with later filters taking priority except when an exact match is found.
  • 送信フィルタ A glob pattern filter to determine which files in the Send folder will be uploaded by the connector (e.g. *.txt). Negative patterns may be used to indicate files that should not be uploaded (e.g. -*.tmp). Multiple patterns may be separated by commas, with later filters taking priority except when an exact match is found.
  • ログレベル The verbosity of logs generated by the connector. When requesting support, it is recommended to set this to Debug.
  • サブディレクトリを再帰 Whether to download files in subfolders of the target remote path.
  • 削除モード Files can exist in multiple folders in Google Drive, and deleting the file can remove it from all folders (move the file to trash) or simply disassociate it with a single folder. When this field is set to Delete Resource the file will be removed from all folders, and when this field is set to Remove Parent the file will be removed from the parent folder indicated by リモートフォルダ.
  • ドキュメントのエクスポート形式 When downloading Google Docs, the file will be exported as this specified MIME type.
  • シートのエクスポート形式 When downloading Google Sheets, the file will be exported as this specified MIME type.
  • スライドのエクスポート形式 When downloading Google Slides, the file will be exported as this specified MIME type.
  • 親コネクタ The connector from which settings should be inherited, unless explicitly overwritten within the existing connector configuration. Must be set to a connector of the same type as the current connector.
  • Log Subfolder Scheme Instructs the connector to group files in the Logs folder according to the selected interval. For example, the Weekly option instructs the connector to create a new subfolder each week and store all logs for the week in that folder. The blank setting tells the connector to save all logs directly in the Logs folder. For connectors that process many transactions, using subfolders can help keep logs organized and improve performance.
  • Log Messages Whether the log entry for a processed file will include a copy of the file itself.
  • Save to Sent Folder Whether files processed by the connector should be copied to the Sent folder for the connector.

Miscellaneous

Settings for specific use cases.

  • Other Settings Allows configuration of hidden connector settings in a semicolon-separated list, like setting1=value1;setting2=value2. Normal connector use cases and functionality should not require use of these settings.

Establishing a Connection

OAuth credentials are required to establish a connection with the Google Drive Connector. OAuth credentials should be acquired directly from Google via the Google Console, then specified in the following connector fields:

  • OAuth クライアントID
  • OAuth クライアントシークレット

Google may require an OAuth callback/redirect URL when generating OAuth credentials. Arc’s callback/redirect URL is the same as the address/port where the application is hosted, plus the following resource path: src/oauthCallback.rst. For example, if Arc is hosted on ‘mydomain.com’ on port 8001, the following URL should be specified as the callback/redirect URL: http://mydomain.com:8001/src/oauthCallback.rst.

Once authorization is successfully completed with Google, the Google Drive connector handles the processing of refreshing the OAuth tokens to ensure that authentication persists over time.

Uploading and Downloading

Uploading

To upload files, set the Send -> リモートフォルダ field to the folder where files should be uploaded to. Each Google Drive Connector uploads to a single specified folder location.

The リモートファイルを上書き option can be toggled to determine whether files that already exist in the remote folder should be overwritten or skipped. The 送信フィルタ field in the Advanced tab can be used to determine which files should be uploaded by the connector, based on filename or file extension.

After configuring, any files placed into the Send/Input Folder of the connector will be uploaded to the remote storage. If 送信オートメーション is enabled, the upload will happen automatically; otherwise, individual files can be Sent via the Input tab of the connector settings.

Downloading

To download files, set the 受信 -> リモートフォルダ field to the folder where files should be downloaded from. Multiple download folders can be specified in a comma-delimited list.

The ファイルマスク field can be set to a glob filter (e.g. *.txt), and only files matching this filter will be downloaded. To specify multiple filters, the 受信フィルタ setting can be configured in the Advanced tab.

The Delete files (after received) option toggles whether or not successfully downloaded files should be removed from the remote storage afterwards.

After configuring, files will be downloaded according to the 受信オートメーション settings, or by manually clicking the Receive button within the Output tab.