> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Cloud Storage

CData Sync アプリケーションからGoogle Cloud Storage コネクタを使用して、Google Cloud Storage からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。## Supported File FormatsWhen Sync writes data to Google Cloud Storage, you can choose the file format for the exported data. The following file formats are supported for the Google Cloud Storage source:- (Default) **CSV：** Plain text comma-separated values.
- **Avro：** A row-based binary format that supports schema evolution.
- **Parquet：** A columnar storage format that is optimized for analytics.## PrerequisitesIf you want to authenticate with a Google Cloud service account (for silent authentication or delegated organization-wide access), do the following before configuring your connection in Sync:- Create a service account in Google Cloud and grant it the required permissions on your bucket or project.
- For OAuth JWT authentication, register a custom OAuth application and download the certificate file (.p12 or .pfx).Then proceed to the relevant authentication method below.## Google Cloud Storage コネクタを追加Sync でGoogle Cloud Storage のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**データソース**タブをクリックして
  **Google Cloud Storage** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして Google Cloud Storage コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。## Google Cloud Storage への認証After you add the connector, you need to set the required properties.- **File Format:** Select the file format that you want to use: **Delta Parquet**, **CSV** (default), **Avro**, and **Parquet**.

  > [!NOTE]
  >
  > The **Delta Parquet** and **Apache Iceberg** file formats are not supported for Sync source connectors. If you select either of these formats, Sync generates an error.

- **URI:** Enter the path to the resource location for your file format.

- **Project Id:** Enter the identifier (Id) of the project where your Google Cloud Storage instance resides.CData Sync supports authenticating to Google Cloud Storage in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.- [**OAuth**](#oauth) (default)
- [**OAuth PKCE**](#oauth-pkce)
- [**OAuth JWT**](#oauth-jwt)
- [**GCP Instance Account**](#gcp-instance-account)### OAuthTo connect with OAuth custom credentials, specify the following properties:- **Auth Scheme:** Select **OAuth**.
- **OAuth Version:** Select the version of OAuth that you want to use. The default version is **2.0**.
- (Optional) **Scope:** Specify the scope of your access to the application.
- (Optional) **OAuth Authorization URL:** Enter the OAuth authorization URL for the OAuth service.
- (Optional) **OAuth Access Token URL:** Enter the URL from which to retrieve the access token.
- (Optional) **OAuth Refresh Token URL:** Enter the URL from which to refresh the OAuth token.### OAuth PKCETo connect with the OAuth PKCE extension, specify the following properties:- **Auth Scheme:** Select **OAuthPKCE**.
- (Optional) **OAuth Client Id:** Enter the client identifier (Id) that you were assigned when you registered your application with an OAuth authorization server.### OAuth JWT
      

Google Cloud Storage アカウントで接続するには、次のプロパティを指定します：


      \<ul><li>**Auth Scheme：****OAuthJWT** を選択。</li>
        \<li>**OAuth JWT Cert：**Java web token（JWT）証明書ストアを入力。</li>
        \<li>**OAuth JWT Cert Type：**JWT 証明書を格納するキーストアの種類を入力。デフォルトの種類は**PEMKEY_BLOB** です。</li>
        \<li>**OAuth Client Id：**OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアント識別子（Id）を入力。</li>
        \<li>**OAuth Client Secret：**OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントシークレットを入力。</li>
        \<li>（オプション）**Scope：**アプリケーションへのアクセス範囲を入力。</li>
        \<li>（オプション）**OAuth Authorization URL：**OAuth サービスのOAuth 認可URL を入力。</li>
        \<li>（オプション）**OAuth Access Token URL：**アクセストークンを取得するURL を入力。</li>
        \<li>（オプション）**OAuth Refresh Token URL：**OAuth トークンを更新するURL を入力。</li>
        \<li>（オプション）**OAuth JWT Cert Password：**OAuth JWT 証明書のパスワードを入力。</li>
        \<li>（オプション）**OAuth JWT Cert Subject：**OAuth JWT 証明書のサブジェクトを入力。</li>
        \<li>（オプション）**OAuth JWT Subject：**アプリケーションが委任されたアクセスを要求するユーザーサブジェクトを入力。</li>
        \<li>（オプション）**OAuth JWT Subject Type：**JWT 認証のサブジェクトの種類（**enterprise** または**user**）を選択。デフォルトの種類は**enterprise** です。</li>
        \<li>（オプション）**OAuth JWT Public Key Id：**JWT のパブリックキーのId を入力。</li></ul>
    ### GCP Instance AccountGCP 仮想マシンでCData Sync を実行すると、Sync は仮想マシンに紐づけられたサービスアカウントを使用して認証できます。そのアカウントを使用するには、**Auth Scheme** で**GCPInstanceAccount** を選択します。追加のプロパティは必要ありません。## 接続を完了するTo complete your connection:1) Specify the following properties:

   **For all file formats:**

   * (Optional) **Project Id:** Enter the identifier (Id) of the project where your Google Cloud Storage instance resides.

     > [!NOTE]
     >
     > This property is **required** for the Avro file format, and it is set in [Authenticate to Google Cloud Storage](#google-cloud-storage-への認証).

   **For the CSV file format:**

   * **FMT:** Enter the format that you want to use to parse all text files. The default format is **CsvDelimited**.
   * **Aggregate Files:** Select whether you want to aggregate all the files that are located in the URI directory and that have the same schema into a single table named AggregatedFiles. By default, the **Enable** checkbox is not selected.
   * **Include Column Headers:** Select whether you want to obtain column headers from the first lines of the specified files. By default, the **Enable** checkbox is already selected.

   **For the Avro and Parquet file formats:**

   * **Data Model:** Select the data model that you want to use to parse documents for your format and to generate the database metadata. The default data model is **Document**.
   * **Aggregate Files:** Select whether you want to aggregate all the files that are located in the URI directory and that have the same schema into a single table named AggregatedFiles. By default, the **Enable** checkbox is not selected.
2) Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
3) If you authenticate with OAuth and OAuthPKCE, click **Connect to Google Cloud Storage** to connect to your Google Cloud Storage account.
4) Click **Create & Test** to create your connection.## 詳細について


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.