Skip to main content Skip to complementary content

Centralizing Google Drive metadata

Talend Studio enables you to centralize the details of your Google Drive connection under the Metadata folder in the Repository tree view. You can then use the established connection to connect to your Google Drive when using the Google Drive components.

Procedure

  1. In the Repository tree view, expand the Metadata node, right-click the Google Drive tree node, and select New GoogleDrive Connection from the contextual menu to open the New Google Drive Connection wizard.
  2. Specify the values for the properties listed in the following table according to the OAuth method you are using.
    Property Description
    Name The name for the Google Drive connection to be created.

    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.

    • Access Token (deprecated): uses an access token to access Google Drive.

    • 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 detailed information about how to access Google Drive using each method, see OAuth methods for accessing Google Drive.

    Access Token

    The access token generated through Google Developers OAuth 2.0 Playground.

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

    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.

    DataStore Path

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

    This property is available only when Installed Application (Id & Secret) or Installed Application (JSON) 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.

  3. Click Test connection to verify the configuration.

    If you are using the OAuth method Access Token (deprecated), Installed Application (Id & Secret), or Installed Application (JSON), a window will pop up in your web browser, asking you to choose your account and allow the access to your Google Drive. After the authentication in web browser, a connection successful dialog box will prompt up in Talend Studio.

  4. Click OK to close the connection successful dialog box and then click Finish.

    The newly created Google Drive connection is displayed under the Google Drive node in the Repository tree view.

    You can now add a Google Drive component onto the design workspace by dragging and dropping the new Google Drive connection node to reuse the connection information. For more information about dropping component metadata in the design workspace, see Using centralized metadata in a Job. For more information about the usage of the Google Drive components, see the related documentation for the Google Drive components.

    To modify the Google Drive connection metadata created, right-click the connection node in the Repository tree view and select Edit GoogleDrive Connection from the contextual menu to open the metadata setup wizard.

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 – please let us know!