Skip to main content Skip to complementary content
Close announcements banner

tGoogleDrivePut Standard properties

These properties are used to configure tGoogleDrivePut running in the Standard Job framework.

The Standard tGoogleDrivePut component belongs to the Cloud family.

The component in this framework is available in all Talend products.

Basic settings

Property Type

Select the way the connection details will be set.

  • Built-In: The connection details will be set locally for this component. You need to specify the values for all related connection properties manually.

  • Repository: The connection details stored centrally in Repository > Metadata will be reused by this component.

    You need to click the [...] button next to it and in the pop-up Repository Content dialog box, select the connection details to be reused, and all related connection properties will be automatically filled in.

This property is not available when other connection component is selected from the Connection Component drop-down list.

Connection Component

Select the component that opens the database connection to be reused by this component.

Application Name

The application name required by Google Drive to get access to its APIs.

OAuth Method

Select an OAuth method used to access Google Drive from the drop-down list.

  • Installed Application (Id & Secret): uses the client ID and client secret created through Google API Console to access Google Drive. For more information about this method, see Google Identity Platform > Installed applications .

  • Installed Application (JSON): uses the client secret JSON file that is created through Google API Console and contains the client ID, client secret, and other OAuth 2.0 parameters to access Google Drive.

  • Service Account: uses a service account JSON file created through Google API Console to access Google Drive. For more information about this method, see Google Identity Platform > Service accounts.

For more information about how to access Google Drive using each method, see OAuth methods for accessing Google Drive.

Client ID and Client Secret

The client ID and client secret.

These two properties are available only when Installed Application (Id & Secret) is selected from the OAuth Method drop-down list.

Client Secret JSON

The path to the client secret JSON file.

This property is available only when Installed Application (JSON) is selected from the OAuth Method drop-down list.

Service Account JSON

The path to the service account JSON file.

This property is available only when Service Account is selected from the OAuth Method drop-down list.

Use Proxy

Select this check box when you are working behind a proxy. With this check box selected, you need to specify the value for the following parameters:

  • Host: The IP address of the HTTP proxy server.

  • Port: The port number of the HTTP proxy server.

Use SSL

Select this check box if an SSL connection is used to access Google Drive. With this check box selected, you need to specify the value for the following parameters:

  • Algorithm: The name of the SSL cryptography algorithm.

  • Keystore File: The path to the certificate TrustStore file that contains the list of certificates the client trusts.

  • Password: The password used to check the integrity of the TrustStore data.

File Name

The name for the file after being uploaded.

Destination Folder

The name or ID of the folder in which uploaded data will be stored.

Access Method

Select the method by which the destination folder is specified, either by Name or by Id.

Replace if Existing

Select this check box to overwrite any existing file with the newly uploaded one.

Upload Mode

Select one of the following upload modes from the drop-down list:

  • Upload Incoming content as File: Select this option to upload data from an input flow of the preceding component.

  • Upload Local File: Select this option to upload data from a local file. In the File field displayed, specify the path to the file to be uploaded.

  • Expose As OutputStream: Select this option to expose output stream of this component, which can be used by other components to write the file content. For example, you can use the Use Output Stream feature of the tFileOutputDelimited component to feed a given tGoogleDrivePut's exposed output stream. For more information, see tFileOutputDelimited.

Schema and Edit schema

A schema is a row description, and it defines the fields to be processed and passed on to the next component.

The schema of this component is read-only. You can click the [...] button next to Edit schema to view the predefined schema which contains the following fields:

  • content: The content of the uploaded data.

  • parentFolderId: The ID of the parent folder.

  • fileId: The ID of the file.

Advanced settings

DataStore Path

The path to the credential file that stores the refresh token.

Information noteNote: When your client ID, client secret, or any other configuration related to the Installed Application authentication changes, you need to delete this credential file manually before running your Job again.

This property is available only when Installed Application (Id & Secret) or Installed Application (JSON) is selected from the OAuth Method drop-down list.

Read Timeout

Enter the read timeout value in seconds. An exception will occur if the timeout expires before there is data available for read. The default value is 30 and 0 means an infinite time out. This option is available if the component does not use an existing connection.

Include shared folders/files

Select this check box to take into account files and folders that have been shared with you.

Include shared drives

Select this check box to take into account drives that have been shared with you.

It is recommended to use the by Id Access Method in Basic settings when you select this check box, as using the by Name Access Method can affect performance.

Corpora type

Select a type of Corpora to narrow the scope of file and folder searches:
  • User to query files that you have accessed, including both shared drive and My Drive files.
  • Drive to query all items in the specified shared drive. Specify the drive ID in the Drive ID field.
  • Domain to query files that are shared to the domain, including both shared drive and My Drive files.
  • All drives to query files that you have accessed and all shared drives in which you are a member. This corpora type can affect performance as it has a broad scope.
By default, User is the selected value.

This property is available only when the Include shared drives check box is selected.

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at the Job level as well as at each component level.

Global Variables

ERROR_MESSAGE

The error message generated by the component when an error occurs. This is an After variable and it returns a string.

PARENT_FOLDER_ID

The ID of the parent folder. This is an After variable and it returns a string.

FILE_ID

The ID of the file. This is an After variable and it returns a string.

Usage

Usage rule

This component can be used as a standalone component to upload a local file to Google Drive or an end component to upload data from an input flow of the preceding component to Google Drive.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!