{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Google Driveインポート連携","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-driveインポート連携","__idx":0},"children":["Google Driveインポート連携"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google DriveからTreasure Dataにデータファイルをインポートできます。このデータコネクタは、CSVおよびTSVファイル、またはCSVおよびTSVファイルのgzipのみをサポートしています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Googleアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用して接続を作成する","__idx":2},"children":["Treasure コンソールを使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成する","__idx":3},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalogに移動し、Google Driveを検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140041.55e4e61badff4516641d1772e5151daff874fa5ea424f79d3fe2098efaa8c3f7.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"を選択します。認証された接続を作成しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140051.adbe6f214e4339c29f1a9d9abbd41ac03cb017fb7d8cbba3a2315dd887944a38.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Driveへのアクセスには、OAuth2認証が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Click here"]},"を選択して、Googleアカウントに接続します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポップアップウィンドウでGoogleアカウントにログインし、Treasure Dataアプリへのアクセスを許可します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140119.6afe6692f82df2f21e05953eaf4c969773d8d50b79259e94ee6ec81666ea41fc.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールにリダイレクトされます。「新しい接続を作成する」手順を繰り返し、新しいOAuth接続を選択します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140127.ea8d47d5a36ae3e169dc5c06e7066dddf974763c7d7a2bb5a4d8ce028fc66ba5.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2022-6-28_13-11-37.a70583d15051a4fb27cb40f858b9065f737b4269c20695bf067aa67ad3b65adc.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140135.f1c6bb9446cf951ba0a10fd97a63196a8d377c7cc3ea0a0ffcc40dc6624bdcae.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいGoogle Drive接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-dataにデータを転送する","__idx":4},"children":["Treasure Dataにデータを転送する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証された接続を作成すると、自動的にAuthenticationsタブに移動します。作成した接続を探して、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ファイルからインポート","__idx":5},"children":["ファイルからインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CSVまたはTSVファイルをインポートするか、CSVまたはTSVファイルのgzipをインポートできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File types"]},"では、Fileを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140146.6e670d3d1c80a2ec112b9a3d227cf7938cbfb9e0aad8c758dda948ebd767c97b.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータ:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID"]},": Google DriveのファイルID。CSVおよびTSVファイル、またはCSVおよびTSVファイルのgzipのみをサポートします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After"]},": 指定したタイムスタンプ以降に変更されたファイルのみをインポートする場合に使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Loading"]},": スケジュールに基づいてデータをインポートする場合に使用します。前回のインポート以降の新しい変更されたファイルのみをインポートする場合に使用します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"フォルダからインポート","__idx":6},"children":["フォルダからインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CSVまたはTSVファイル、またはCSVまたはTSVファイルのgzipのリストをインポートします。フォルダからインポートする場合、フォルダには同じタイプのファイルが含まれている必要があります。例:CSVファイルのみを含むフォルダ。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File types"]},"では、Folderを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140159.3eeba24a34c2b070205b77472529ccb299eee5d75be38be2f58da88a09a47205.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータ:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID"]},": Google DriveのファイルID。CSVおよびTSVファイル、またはCSVおよびTSVファイルのgzipのみをサポートします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After"]},": 指定したタイムスタンプ以降に変更されたファイルのみをインポートする場合に使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filename pattern"]},": 正規表現を使用してファイル名と一致させます。ファイル名がこのパターンと一致しない場合、ファイルはスキップされます。(例えば、ファイル名パターンが*.csv$*の場合、ファイル名がこのパターンと一致しない場合、そのファイルはスキップされます)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Loading"]},": スケジュールに基づいてデータをインポートする場合に使用します。前回のインポート以降のフォルダ内の新しい変更されたファイルのみをインポートする場合に使用します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プレビュー","__idx":7},"children":["プレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/about-data-preview"},"children":["プレビュー"]},"が表示されます。変更する場合は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advanced Settings"]},"を選択し、それ以外の場合は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140209.9acb167c3082078c8cb3b843d94aa75b41e6c4334bad4c067952b904c8c671ee.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"詳細設定","__idx":8},"children":["詳細設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140223.e038f81c890e85b582ce66d6dbd79ac398b6352195c331b0e571ca3eac031816.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のパラメータを指定できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Decoders: ファイルのエンコードに基づいてファイルデコーダーを変更できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Gzip\nBzip2\nZip\nOpenPGP Decryption\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Parser: 必要に応じて、CSV/TSV Parserの設定を更新します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"charset: UTF-8\nnewline: LF\ntype: csv\ndelimiter: ','\nquote: '\"'\nescape: '\"'\ntrim_if_not_quoted: false\nskip_header_lines: 1\nallow_extra_columns: false\nallow_optional_columns: false\ncolumns:\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maximum retry interval milliseconds. 再試行間の最大時間を指定します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  Type: number\n  Default: 120000\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maximum retry times. 各API呼び出しの最大再試行回数を指定します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  Type: number\n  Default: 7\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Initial retry interval millisecond. 最初の再試行の待機時間を指定します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  Type: number\n  Default: 1000\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maximum retry interval milliseconds. 再試行間の最大時間を指定します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  Type: number\n  Default: 120000\n"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ターゲットデータベースとテーブルを選択する","__idx":9},"children":["ターゲットデータベースとテーブルを選択する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のソースを選択するか、新しいデータベースとテーブルを作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191209-223011.d49b378b87d9308f0d634574a82fbabe1edb6149d1eb2a8f3a3b02f0c7fdca7d.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいデータベースを作成し、データベースに名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new table"]},"でも同様の手順を完了します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のテーブルにレコードを",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["追加"]},"するか、既存のテーブルを",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["置換"]},"するかを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトのキーではなく、異なる",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["partition key seed"]},"を設定したい場合は、ポップアップメニューを使用して指定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジューリング","__idx":10},"children":["スケジューリング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["When"]},"タブでは、1回限りの転送、または自動的な定期転送をスケジュールできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Once now"]},": 1回限りのジョブを設定します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Repeat…"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},": ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"の3つのオプション、およびカスタム",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]},"を受け付けます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]},": 実行時間の遅延を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeZone"]},": 'Asia/Tokyo'のような拡張タイムゾーン形式をサポートします。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140248.9daa74ba0dc9dfeb5cecdec5ca398bfd08969e7656780fe3e64e2233078e7730.7a2fdaca.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"詳細","__idx":11},"children":["詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Transferに名前を付け、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択して開始します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140257.6ab8e45a9e44ecd67b9d01b7d9b0b869fbb2c09d855c506f041c9d86e26f0b7e.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行されると、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]},"タブで転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用してgoogle-drive接続を作成する","__idx":12},"children":["コマンドラインを使用してGoogle Drive接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールを使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-data-toolbeltのインストール","__idx":13},"children":["Treasure Data Toolbeltのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルの作成seedyml","__idx":14},"children":["設定ファイルの作成(seed.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定ファイルには、Google Driveからコネクタに取り込むものを指定するin:セクションと、コネクタがTreasure Data内のdatabaseに出力するものを指定するout:セクションが含まれます。利用可能なoutモードの詳細については、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Appendix"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例は、Google Driveからファイルをインポートする方法を示しています。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: google_drive\n  client_id: xxxxxxxxxxx\n  client_secret: xxxxxxxxxxx\n  refresh_token: xxxxxxxxxxx\n  target: file\n  id: xxxxxxxxxxx(drive file id)\n  last_modified_time: \"YYYY-MM-DD HH:MM:SS\"\n  incremental: false\nout: mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例は、Google Driveのフォルダー内のファイルをインポートする方法を示しています。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n type: google_drive\n client_id: xxxxxxxxxxx\n client_secret: xxxxxxxxxxx\n refresh_token: xxxxxxxxxxx\n target: folder\n id: xxxxxxxxxxx(drive folder id)\n last_modified_time: \"YYYY-MM-DD HH:MM:SS\"\n filename_pattern: xxxxxxxxxxx (Ex: abc.csv$)\n incremental: false\nout:\n mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"guessコマンドを実行して実行設定ファイルloadymlを生成する","__idx":15},"children":["Guessコマンドを実行して実行設定ファイル(load.yml)を生成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インポートされるデータのプレビューオプション","__idx":16},"children":["インポートされるデータのプレビュー(オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector: previewコマンドを使用して、インポートされるデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":17},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:issueを使用してジョブを実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを実行する前に、データを保存するdatabaseとtableを指定する必要があります。例:td_sample_db、td_sample_table"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml \\\n--database td_sample_db \\\n--table td_sample_table \\\n--time-column date_time_column\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション分割されているため、--time-columnオプションを指定することをお勧めします。このオプションが指定されていない場合、データコネクタは最初のlong型またはtimestamp型のカラムをパーティション分割時間として選択します。--time-columnで指定するカラムの型は、long型またはtimestamp型である必要があります(プレビュー結果を使用して、利用可能なカラム名と型を確認してください。一般的に、ほとんどのデータ型にはlast_modified_dateカラムがあります)。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間カラムがない場合は、add_timeフィルターオプションを使用してカラムを追加できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time filter"]},"プラグインを参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:issueは、database(sample_db)とtable(sample_table)が既に作成されていることを前提としています。TD内にdatabaseまたはtableが存在しない場合、td connector:issueは失敗します。したがって、databaseとtableを手動で作成するか、td connector:issueで--auto-create-tableを使用して自動的にdatabaseとtableを作成する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml \\\n      --database td_sample_db \\\n      --table td_sample_table \\\n      --time-column date_time_column \\\n      --auto-create-table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コマンドラインからロードジョブを送信します。データサイズによっては、処理に数時間かかる場合があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":18},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なファイルまたはフォルダーのインポートのために、定期的なデータコネクタの実行をスケジュールできます。高可用性を確保するために、スケジューラーを慎重に設定しています。この機能を使用することで、ローカルのデータセンターでcronデーモンを使用する必要がなくなります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スケジュール実行は、Google Driveからデータを取得する定期的な試行中のデータコネクタの動作を制御する設定パラメーターをサポートしています:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental"]}," この設定は、ロードモードを制御するために使用され、ファイルまたはフォルダー内のファイルの最終更新時刻に基づいてデータコネクタがGoogle Driveからデータを取得する方法を管理します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["last_modified_time この設定は、前回のロードジョブからのファイルの最終更新時刻を制御するために使用されます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細と例については、以下のAppendixの「Incremental Loadingの仕組み」を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの作成","__idx":19},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:createコマンドを使用して新しいスケジュールを作成できます。スケジュールの名前、cron形式のスケジュール、データを保存するdatabaseとtable、およびデータコネクタ設定ファイルが必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"パラメーターは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"のオプションを受け入れます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。-tまたは--timezoneオプションを使用して、タイムゾーンでスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションは、'Asia/Tokyo'、'America/Los_Angeles'などの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーン略語は*サポートされておらず*、予期しないスケジュールにつながる可能性があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション分割されているため、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]},"オプションを指定することをお勧めします。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml \\\n    --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールのリスト表示","__idx":20},"children":["スケジュールのリスト表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:listコマンドを入力すると、スケジュールされたエントリのリストを表示できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:list+--------------+------------+----------+-------+--------------+-----------------+--------------------------------------------+| Name         | Cron       | Timezone | Delay | Database     | Table           | Config                                     |+--------------+------------+----------+-------+--------------+-----------------+--------------------------------------------+| daily_import | 10 0 * * * | UTC      | 0     | td_sample_db | td_sample_table | {\"in\"=>{\"type\"=>\"google_drive\",  |+--------------+------------+----------+-------+--------------+-----------------+--------------------------------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"appendix","__idx":21},"children":["Appendix"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"outプラグインのモード","__idx":22},"children":["Outプラグインのモード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルのoutセクションでファイルインポートモードを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["out:セクションは、データをTreasure Data tableにインポートする方法を制御します。"," ","たとえば、Treasure Dataの既存のtableにデータを追加したり、データを置き換えたりすることができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["出力モードは、データがTreasure Dataに配置されるときにデータを変更する方法です。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]},"(デフォルト): レコードはターゲットtableに追加されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace"]},"(td 0.11.10以降で利用可能): ターゲットtableのデータを置き換えます。ターゲットtableに加えられた手動のスキーマ変更はそのまま残ります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: append\nin:\n  ...\nout:\n  mode: replace\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インクリメンタルローディングの仕組み","__idx":23},"children":["インクリメンタルローディングの仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インクリメンタルローディングは、最終更新時刻を使用して、最終更新時刻以降に変更されたファイルのみを読み込みます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["インクリメンタルを使用したファイルからのインポート:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["初回実行時、このコネクタはこのファイルを読み込みます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["が true"]}," の場合、最新の更新時刻がファイル更新時刻として保存されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ファイル File0001.csv をインポート:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"+--------------+--------------------------+\n|   Filename   |   modified time          |\n+--------------+--------------------------+\n| File0001.csv | 2019-05-04T10:00:00.123Z |\n"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブが完了すると、last_modified_time は 2019-05-04T10:00:00.123Z に設定されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次回実行時には、ファイルの更新時刻が '",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2019-05-08T10:00:00.123Z'"]}," より大きい場合にのみ、ファイル File0001.csv がインポートされます。これは、初回実行後にファイルが更新されたことを意味します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["インクリメンタルを使用したフォルダからのインポート:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["初回実行時、このコネクタはファイルタイプが CSV/TSV または CSV/TSV の gzip であるすべてのファイルを読み込みます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental が true"]}," の場合、フォルダ内のファイルリストを確認し、ファイルから最大更新時刻を取得します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートフォルダに含まれるファイル:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"+--------------+--------------------------+\n|   Filename   |     Last update          |\n+--------------+--------------------------+\n| File0001.csv | 2019-05-04T10:00:00.123Z |\n| File0011.csv | 2019-05-05T10:00:00.123Z |\n| File0012.csv | 2019-05-06T10:00:00.123Z |\n| File0013.csv | 2019-05-07T10:00:00.123Z |\n| File0014.csv | 2019-05-08T10:00:00.123Z |\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["最大更新時刻"]},": 2019-05-08T10:00:00.123Z"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブが完了すると、last_modified_time は最大更新時刻 (2019-05-08T10:00:00.123Z) に設定されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次回実行時には、更新時刻が ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2019-05-08T10:00:00.123Z"]}," より大きいファイルのみがインポートされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートフォルダに新規追加および更新されたファイル:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"+--------------+--------------------------+\n|   Filename   |     Last update          |\n+--------------+--------------------------+\n| File0001.csv | 2019-05-04T10:00:00.123Z |\n| File0011.csv | 2019-05-05T10:00:00.123Z |\n| File0012.csv | 2019-05-06T10:00:00.123Z |\n| File0013.csv | 2019-05-09T10:00:00.123Z |\n| File0014.csv | 2019-05-08T10:00:00.123Z |\n| File0015.csv | 2019-05-09T13:00:00.123Z |\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["最大更新時刻"]},": 2019-05-09T13:00:00.123Z"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この場合、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0013.csv"]}," と ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0015.csv"]}," のファイルのみがインポートされます。ジョブが完了すると、last_modified_time は最大更新時刻 (2019-05-09T13:00:00.123Z) に設定されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"client_idclient_secretrefresh_token-の取得","__idx":24},"children":["client_id、client_secret、refresh_token の取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI からジョブを発行するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client_id"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client_secret"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["refresh_token"]}," が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.cloud.google.com/projectcreate"},"children":["https://console.cloud.google.com/projectcreate"]}," にアクセスしてプロジェクトを登録します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140319.a2cd8ccea7a02ee36fdd4f1125f59ac6e6052eac04c083108059c8952cba84a1.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロジェクトに名前を付け、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.cloud.google.com/apis/dashboard"},"children":["https://console.cloud.google.com/apis/dashboard?"]}," にアクセスして、プロジェクトの Drive Service を有効にします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140332.08cd8e0d8a2feeea780d1561c37ce50feb396a5eaa711cbb5fcd2c8073397b71.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140342.0c4d171dd4f6f107e7ed5d62070baf5d9ca038e681cc1d0e31a605648fd8fcdf.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Drive API を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140403.e538b3edf99594f269d6b8c6d488bcb6363e1757282d3852e987f77cd6a4fa06.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.cloud.google.com/apis/credentials"},"children":["https://console.cloud.google.com/apis/credentials"]}," にアクセスし、プロジェクトを選択して新しい認証情報を作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140437.ac1658e38b75d32ee99868f9a62c4ff971d77eae9b57570628824929fe73c421.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth consent screen"]}," タブに移動し、アプリケーション名を入力してから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add scope"]}," を選択して /auth/drive スコープを追加し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]}," タブに移動し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create credentials"]}," をクリックしてから OAuth client ID を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140450.19b272bf31d9fc78b0bdcc013f08bd7003b9a058c76dd9d5507a8cfb55a8fde7.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証情報に名前を付け、リダイレクト URL として ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/oauthplayground/"},"children":["https://developers.google.com/oauthplayground/"]}," を追加します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140509.5288c1ad0c500ab41f699bd95d4642741bd5ec85199e16dd82ac09f05bbb8c38.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証情報を選択して、client_id と client_secret を取得します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140924.40f14099cbb47d819667a06a87d88f9e61bb6ca223fea39722179f209bd01c13.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140939.8a84dd05858f1c97bfd5e4ba3d4ab36c73070fce0baff6abe8bc8e17993ce7ee.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/oauthplayground"},"children":["https://developers.google.com/oauthplayground"]}," にアクセスして ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["refresh_token"]}," を取得します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、Drive API v3 とスコープ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["auth/drive"]}," を選択し、Settings を選択して認証情報から取得できる ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client id、client secret"]}," を入力してから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authorize APIs"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-140951.1fc16c5c2e4bcbc45a86290c3d13f253415df987ae3f275dbe65a873e19f0f95.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google アカウントでログインし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141008.3724665d859d8f8f8ea05db9e0f34cfa22508ea3ecaa86676e3fdfcb110bdf55.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Exchange authorization code for tokens"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141019.36bcc3a6337d266184e827bb391627ba2fc3e948d241d5600b5a7af3ec18d68c.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141036.ef22333fbdcfb8c29e49b47185356030067e9e90a658f0c46a466fb0582ac201.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["refresh token をコピーして、後で使用するために保存します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"トークンの有効期限に関する注意事項","__idx":25},"children":["トークンの有効期限に関する注意事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["refresh token は、次のいずれかの理由で機能しなくなる可能性があります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーがアプリへのアクセスを取り消した。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["refresh token が 6 か月間使用されていない。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーがパスワードを変更し、refresh token に Gmail スコープが含まれている。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーアカウントが付与された (有効な) refresh token の最大数を超えた。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現在、クライアントごとのユーザーアカウントあたりの refresh token の制限は 50 です。制限に達すると、新しい refresh token を作成すると、警告なしに最も古い refresh token が自動的に無効になります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["参照: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/identity/protocols/OAuth2"},"children":["https://developers.google.com/identity/protocols/OAuth2"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"google-drive-から-file-id-または-folder-id-を取得する","__idx":26},"children":["Google Drive から File ID または Folder ID を取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://drive.google.com/"},"children":["https://drive.google.com"]}," にアクセスし、Google アカウントでログインします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folder ID の取得:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Folder ID を取得したいフォルダを選択し、URL から ID をコピーします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141047.e178d70f0c385526a7268f0fa06e35d0e754917e3996e60949f175fd5df6267c.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File ID の取得:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドライブからファイルを選択し、右クリックして「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get shareable link"]},"」を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141058.45cefa2678a35432ae686d7083a2cd047c48b794be415ee4b2dc03934c7fe65f.7a2fdaca.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Link sharing"]}," をオンにして、リンクから File ID をコピーします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191015-141118.e66e152c01509dff6c5aae223271d7b6ffd7c35cdddc11f9c6cf22965b4d4ea2.7a2fdaca.png","alt":""},"children":[]}]}]},"headings":[{"value":"Google Driveインポート連携","id":"google-driveインポート連携","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソールを使用して接続を作成する","id":"treasure-コンソールを使用して接続を作成する","depth":2},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":3},{"value":"Treasure Dataにデータを転送する","id":"treasure-dataにデータを転送する","depth":2},{"value":"ファイルからインポート","id":"ファイルからインポート","depth":3},{"value":"フォルダからインポート","id":"フォルダからインポート","depth":3},{"value":"プレビュー","id":"プレビュー","depth":3},{"value":"詳細設定","id":"詳細設定","depth":3},{"value":"ターゲットデータベースとテーブルを選択する","id":"ターゲットデータベースとテーブルを選択する","depth":3},{"value":"スケジューリング","id":"スケジューリング","depth":3},{"value":"詳細","id":"詳細","depth":3},{"value":"コマンドラインを使用してGoogle Drive接続を作成する","id":"コマンドラインを使用してgoogle-drive接続を作成する","depth":2},{"value":"Treasure Data Toolbeltのインストール","id":"treasure-data-toolbeltのインストール","depth":3},{"value":"設定ファイルの作成(seed.yml)","id":"設定ファイルの作成seedyml","depth":3},{"value":"Guessコマンドを実行して実行設定ファイル(load.yml)を生成する","id":"guessコマンドを実行して実行設定ファイルloadymlを生成する","depth":3},{"value":"インポートされるデータのプレビュー(オプション)","id":"インポートされるデータのプレビューオプション","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":3},{"value":"スケジュールのリスト表示","id":"スケジュールのリスト表示","depth":3},{"value":"Appendix","id":"appendix","depth":2},{"value":"Outプラグインのモード","id":"outプラグインのモード","depth":3},{"value":"インクリメンタルローディングの仕組み","id":"インクリメンタルローディングの仕組み","depth":3},{"value":"client_id、client_secret、refresh_token の取得","id":"client_idclient_secretrefresh_token-の取得","depth":3},{"value":"トークンの有効期限に関する注意事項","id":"トークンの有効期限に関する注意事項","depth":3},{"value":"Google Drive から File ID または Folder ID を取得する","id":"google-drive-から-file-id-または-folder-id-を取得する","depth":2}],"frontmatter":{"seo":{"title":"Google Driveインポート連携"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/google-drive-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}