{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"OneDrive Import Integration","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":"onedrive-import-integration","__idx":0},"children":["OneDrive Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/onedrive-import-integration"},"children":["OneDrive Export Integrationの詳細はこちら"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OneDriveに接続して、個人用、ビジネス用ファイル、またはSharePointドキュメントをTreasure Dataにインポートできます。"]},{"$$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":["OneDriveまたはSharePointアカウント"," ","OAuth認証には、ご自身で承認を行う必要があります。このインテグレーションは、OneDriveユーザーが管理者から承認を得る認証フローをサポートしていません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure アカウントへの認証済みアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"onedriveの増分ロード","__idx":2},"children":["OneDriveの増分ロード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分ロードは、ファイルの最終インポート日を使用してレコードを単調にロードし、最新の実行後のファイルを挿入または更新します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["初回実行時、このコネクタは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filename Regex"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After"]},"に一致するすべてのファイルをロードします。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[": true"]},"が設定されている場合、最新の変更日時が新しい",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After"]},"値として保存されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","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":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Filename Regex: File001.*.csv"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Modified After: 2019-05-01T10:00:00.00Z"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この場合、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0011.csv"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0012.csv"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0013.csv"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File0014.csv"]},"のファイルがインポートされます。これらはFilename Regexに一致し、すべて最終更新日が2019-05-01T10:00:00.00Zより後であるためです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブが完了すると、新しい",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After = 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-09T10:00:00.123Z |\n"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Filename Regex: File001.*.csv"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Modified After: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2019-05-08T10: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"]},"のファイルのみがインポートされます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ドメイン名と相対パス","__idx":3},"children":["ドメイン名と相対パス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OneDriveビジネスアカウントプラン(個人フォルダ、SharePointサイトコレクション、共有されたフォルダを含む)にアクセスするには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ドメイン名"]},"とURL",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["相対パス"]},"が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ブラウザでインポートしたいフォルダを開きます。次に、以下のようにドメイン名と相対パスを取得します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["個人フォルダ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid21.d8e866d5958e831aa40bb70fce176a012b4cdf8eed73d949c5d07d9b562c612a.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SharePointコレクション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid20.c8b13e356d42eda2d83c157077bf57a166aecbeb816f6d1ac43531f1ee91765b.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["共有されたフォルダ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid19.3f16c9cd9ff534a71a642e921fb17dcc8f347223b343e8a764d4970577e55aef.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ファイル名regexマッチング","__idx":4},"children":["ファイル名Regexマッチング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このコネクタはファイル名マッチャーにJava言語のRegexをサポートしています。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html"},"children":["ドキュメント"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[".csv拡張子を持つすべてのファイルに一致: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[".*.csv"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接頭辞abcで始まるすべてのファイルに一致: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["abc.*"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファイルabc.csvに完全一致: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["abc.csv"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要求される権限","__idx":5},"children":["要求される権限"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OneDrive Connectorは、個人アカウントを使用している場合、以下の権限を要求します:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"25%","data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["権限"]}," "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}," "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注記"]}," "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["User.Read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザーがアプリにサインインできるようにし、アプリがサインインしたユーザーのプロフィールを読み取れるようにします。また、サインインしたユーザーの基本的な会社情報も読み取れるようにします。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Files.ReadWrite.AppFolder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アプリケーションのフォルダ内のファイルの読み取り、作成、更新、削除をアプリに許可します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アプリケーションのフォルダは、「TreasureData OneDrive Connector」アプリ専用の特別なフォルダです。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/special-folders-appfolder?view=odsp-graph-online"},"children":["App Folderとは"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Files.ReadWrite.All"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サインインしたユーザーがアクセスできるすべてのファイルの読み取り、作成、更新、削除をアプリに許可します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートおよびエクスポートコネクタは同じクライアントアプリケーションを共有し、読み取り、作成、更新のみを実行しますが、ファイルは削除しません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["offline_access"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザーが現在アプリを使用していない場合でも、アプリがユーザーデータを読み取り、更新できるようにします。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされたインポート/エクスポートに使用"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ビジネス/ワークアカウントでは追加の権限が要求されます"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"権限"},"children":["権限"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"注記"},"children":["注記"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Sites.ReadWrite.All"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべてのグループの読み取りと書き込み、すべてのサイトコレクション内のアイテムの編集または削除"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["読み取り、作成、更新のみを実行しますが、ファイルは削除しません。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["注意: 削除権限はSites.ReadWrite.All権限の一部としてデフォルトで付与されますが、データコネクタはMicrosoft OneDrive上のファイルを削除しません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用した接続の作成","__idx":6},"children":["Treasure コンソールを使用した接続の作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続の作成","__idx":7},"children":["新しい接続の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ接続を設定する際、インテグレーションにアクセスするための認証を提供します。Treasure Dataでは、認証を設定してから、ソース情報を指定します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub -> Catalogに移動し、OneDriveを検索して選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip0.6c2f0f220863628976d5dbcc1014513e90988e7b60eb31a9f8319dbb53f659c4.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のダイアログが開きます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid2.85818121ef23b08699a9818c23b8aa7b3540201dfb926d81aee85977d01978af.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data OneDriveへのアクセスにはOAuth2認証が必要です。認証では、ユーザーが手動でTreasure アカウントをそれぞれのOneDriveアカウントに接続する必要があります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証するには、以下の手順を完了してください:"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Click here"]},"を選択して、新しいアカウントに接続します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポップアップウィンドウでOneDriveアカウントにログインし、Treasure Dataアプリへのアクセスを許可します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip3.15e0ab4128222b1154be8d03b65d0298b6a06a2b23247368f63a01615229bc7f.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールにリダイレクトされます。最初のステップ(新しい接続の作成)を繰り返し、新しいOAuth接続を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid1.8379a4fcadd0a4a08cbd59fcdf16d92e9f75115b76393cd37077340f70af4205.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいOneDrive接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid3.3893f58f999796017dd115911f310941a4933d3ac29c304046dd0f4d48364c80.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onedriveデータをtreasure-dataに転送","__idx":8},"children":["OneDriveデータをTreasure Dataに転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]},"で、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を設定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid4.b7164694fcf1c16845b6e66c59fc0c603650ead7251afc309784a6c76f2c972a.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OneDrive Connectorは2種類のアカウントプランタイプをサポートしています:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Business"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip7.74fc2071648e7cdae7f4464e67ca9cadc343b80293bbde523ce2ad2423dd0d8f.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Personal"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip5.a479483068731ab61ad35156805e7f305b5769ac4a0d9079f4a97de24d02ff09.f5e2eeff.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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OneDrive Account Plan"]},": OneDriveアカウントプラン。2つのタイプをサポート:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Business"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Personal"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ingest Shared Files"]},": ビジネスアカウントプランのみに適用。直接共有されたファイルをインポート(共有されたフォルダとは異なります)。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Domain Name"]},": ビジネスアカウントプランのみに適用。付録のドメイン名と相対パスを参照してください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Relative Path"]},": ビジネスアカウントプランのみに適用。URL相対パスを指定します。付録のドメイン名と相対パスを参照してください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folder Path"]},": ファイルをインポートするフォルダパス。例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["/import/20190501"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["This is a shared folder"]},": 個人アカウントプランのみに適用。共有フォルダへの相対パスを指定します。FAQ「共有されたフォルダをインポートする方法」を参照してください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filename RegEx"]},": 指定されたファイル名regexに一致するファイルのみをインポート。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions"},"children":["正規表現"]},"の詳細を参照してください。また、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/onedrive-import-integration"},"children":["ファイル名Regexマッチング"]},"も参照してください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified After"]},": このタイムスタンプ以降に変更されたファイルのみをインポート。タイムゾーンはUTCです。このパラメータが空の場合、すべてのファイルをインポートします。タイムスタンプ形式: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["yyyy-MM-dd'T'HH:mm:ss.SSSZ"]}," 例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["2019-05-01T10:00:00.121Z"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental?"]}," 繰り返し実行する際、最後のインポート以降のファイルのみをインポートしようとします。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/onedrive-import-integration"},"children":["増分ロードの仕組み"]},"を参照してください。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プレビュー","__idx":9},"children":["プレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データプレビューはオプションであり、必要に応じて",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"をクリックしてダイアログの次のページに進むことができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]},"を選択して、インポートを実行する前にデータのプレビューを表示します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データプレビューに表示されるデータは、ソースから近似されたものです。実際にインポートされるデータではありません。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データが期待どおりに見えることを確認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-data-preview-2024-02-09.27dc5fd8772fca4f7f44ab28c00476ae1894744fe1e75d06932628929cc7bff1.4e139be3.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"高度な設定","__idx":10},"children":["高度な設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["高度な設定では、推測されたプロパティをカスタマイズできます。必要に応じて以下のセクションを編集してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip9.935431565af730280ac09a18383fe801e467de0fb2782da064a2697b16b10bac.f5e2eeff.png","alt":""},"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":["Decoders"]},": OneDriveに保存されているエンコードされたファイルに応じて、推測されたファイルデコーダーを変更できます。サポートされているファイルデコーダー:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Gzip"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bzip2"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Zip"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["OpenPGP Decryption"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parser"]},": 必要に応じてファイルパーサーを更新します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Columns"]},":"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Name"]},": カラムの名前を変更します。カラム名にサポートされている文字は、小文字のアルファベット、数字、「_」(アンダースコア)のみです。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]},": 値を指定された型として解析し、その型をTreasure Dataスキーマの一部として保存します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["boolean"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["long"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["timestamp"]},": Treasure DataではString型としてインポートされます(例: 2017-04-01 00:00:00.000)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["double"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["json"]}]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retry Limit"]},": オプション。システムがあきらめる前にエラーが発生したときの再試行回数。デフォルトは7"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Initial retry time wait in millis"]},": オプション。1回目と2回目の試行の間の時間(ミリ秒)。デフォルト: 500ミリ秒"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max retry wait in millis"]},": オプション。2回目以降のすべての試行の間の時間(ミリ秒)。デフォルト: 300000 ~ 5分。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP Connect Timeout"]},": オプション。HTTP接続タイムアウトの時間(ミリ秒)。デフォルト: 60000 ~ 1分。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP Read Timeout"]},": オプション。HTTP読み取りタイムアウトの時間(ミリ秒)。デフォルト: 300000 ~ 5分。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Minimum task size"]},": インポートフォルダに多数の小さなファイルが含まれている場合、インポートパフォーマンスの低下を引き起こす可能性があります。パフォーマンス向上のため、この値を設定して、1つのタスクで複数のファイルを結合します。例: 4000000 ~ 4MB"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ターゲットデータベースとテーブルの選択","__idx":11},"children":["ターゲットデータベースとテーブルの選択"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のデータベースとテーブルを選択するか、新しいものを作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid5.1c60c3ae94aaf3055bd04dc438a7def51c19ff11efd7562a5c370c092f3ac2ae.f5e2eeff.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":["パーティションキーシード"]},"を設定したい場合は、ポップアップメニューを使用して指定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジューリング","__idx":12},"children":["スケジューリング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},"タブで、1回限りの転送を指定するか、自動化された定期転送をスケジュールできます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Once now"]},"を選択した場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Transfer"]},"を選択します。**Repeat…**を選択した場合は、スケジュールオプションを指定してから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule Transfer"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid6.45a9930925d1a2f78f9f4232666c9bb1707e377546e0dfbecc7ab327d35a1bbf.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["New Source名を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["DONE"]},"を選択します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid7.a6ff4d19488f5ee97043de52977c118d69fc39cf7447b73fd07cb32223d34ddd.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]},"タブで転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid8.531fd752bd7fe08078c6d98b79f25da50893eb42c86977a445cfe694e7bde706.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用したonedrive接続の作成","__idx":13},"children":["コマンドラインを使用したOneDrive接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD Toolbeltを使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"独自のrefresh_tokenの取得","__idx":14},"children":["独自の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":["開発者アカウントを登録し、Azure App Registration Portal ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com/#home"},"children":["https://portal.azure.com/#home"]},"にアクセスします。検索ボックスで、App Registrationを検索します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip10.a3de3a519ef47a897fdde953ebbc3704d025933a84c67f665ca7337da4e7e73d.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Registration"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid24.b554a3ea8b913c0e7016b9cb19c596b55a1a1ca4b109aceb7843134aa8cac56d.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Name"]},"を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account Type"]},"を選択し、図のように",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Redirect URI"]},"を入力します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Register"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid30.d76eedf22042193376fcb9a2180683cde504c0d3813130c2274f3a9bc4b72c62.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Permissions"]},"タブから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add a Permission"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid26.ec753e52dcd1fb45d410d4497368f57d0a943b7f62e30da0ee66394a527196b3.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request API permissions"]},"ウィンドウから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Microsoft Graph"]}," -> ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delegated permissions"]},"を選択し、図のように権限を追加します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip12.9f76be00862cd2a00c60924dec7dd4393caaa8b6eb0df55a349970b9bc8d89fc.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Certificates & secrets"]},"タブから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New client secret"]},"を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Never"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid27.1736523178ee28566b7de0fcf39a7fd573ba498d39037ef81ca7714593e68cbe.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client secret"]},"キーが図のように作成されます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid28.098e0a5fd77c642d4f48912bc335ed714271e576b2a7edd6c70bada858d924c1.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Overviewタブから、図のように",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client id"]},"が表示されます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid29.37fd3ca46e0a133ca5937cf6e3d987d1db51eb93dbe88e1a5fa12dbc6d83f967.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このURLのclient_idを置き換えて、ブラウザで開きます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=xxxxxx&response_type=code&redirect_uri=http://localhost&response_mode=query&scope=offline_access files.readwrite.all openid sites.readwrite.all files.readwrite.appfolder&state=1234\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permission Request"]},"ウィンドウを承認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip13.a25a6ea1e79a3b3046f956c09bcdc3b9278934f106ed6d926958b80e057084f5.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アドレスバーから",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["code"]},"をコピーします:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mceclip14.0d91f944a300db6359191f6a78f9d40f0c1882b549eac7062a787fb10f73bcf3.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["code、client_id、client_secret"]},"を置き換えて、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://curl.haxx.se/docs/manpage.html"},"children":["curl"]},"コマンドを実行し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["access_token"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["refresh_token"]},"を取得します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"curl -X POST \\\n  https://login.microsoftonline.com/common/oauth2/v2.0/token \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d 'client_id={xxxxxx}&client_secret={xxxxx}&grant_type=authorization_code&scope=offline_access%20files.readwrite.all%20openid%20sites.readwrite.all&code={xxxxxx}&redirect_uri=http://localhost'\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-toolbeltのインストール","__idx":15},"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":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ gem install td\n$ td --version\n0.16.1\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルの作成-seedyml","__idx":16},"children":["設定ファイルの作成 (seed.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テキストエディタを使用して、seed.ymlというファイルを作成します。以下の情報をコピーして貼り付け、プレースホルダーテキストをOneDriveの情報に置き換えます。この設定は、「replace」モードが指定されているため、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["/xxx"]},"フォルダからすべてのファイルコンテンツをターゲットデータベースにダンプします。利用可能なoutモードの詳細については、付録を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アカウントがBusinessアカウントプランの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: one_drive\n  refresh_token: 'xxxxxxxxxxxxxxxx'\n  client_id: 'xxxxxxxxxx'\n  client_secret: 'xxxxxx'\n  account_type: business\n  domain_name: xxxx.xxxx.com\n  server_relative_path: /xxx/xx\n  folder_path: /xxx\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アカウントがPersonalアカウントプランの場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: one_drive\n  refresh_token: 'xxxxxxxxxxxxxxxx'\n  client_id: 'xxxxxxxxxx'\n  client_secret: 'xxxxxx'\n  account_type: personal\n  folder_path: /xxx\nout:\n  mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"認証","__idx":17},"children":["認証"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OneDriveでの認証のために",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_secret"]},"、および",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refresh_token"]},"を指定します。詳細については、付録の「独自のrefresh_tokenの取得」を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["domain_name、server_relative_path、およびfolder_pathを指定します。付録のドメイン名と相対パスを参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"guess-fieldsコマンドの実行-loadymlファイルの生成","__idx":18},"children":["Guess Fieldsコマンドの実行 (load.ymlファイルの生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スキーマレスデータベースからデータを取得する場合は、guessコマンドを使用します。ターミナルから以下のコマンドを実行します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["connector:guessは、ターゲットデータを自動的に読み取り、データ形式をインテリジェントに推測します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルを開きます。ファイル形式、エンコーディング、カラム名、型を含む、推測されたファイル形式定義が表示されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定キーと説明は以下のとおりです:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Config key"},"children":["Config key"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OneDriveアカウントプラン。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["business"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth client_id"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth client_secret"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refresh_token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["独自のrefresh_tokenの取得を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_shared_root"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["business"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["accout_type"]},"のみに適用。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["true"]},"の場合、直接共有されたファイルをインポート(共有フォルダとは異なります)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_shared_folder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["personal"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["account_type"]},"のみに適用。共有されたファイル/フォルダをインポート。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["domain_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["account_type"]}," = ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["business"]},"の場合に必要。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["server_relative_path"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["account_type"]}," = ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["business"]},"の場合に必要。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folder_path"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["is_shared_root"]}," = ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["false"]},"の場合に必要"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["last_modified_time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムスタンプ以降に変更されたファイルのみをインポート。タイムゾーンはUTC。このパラメータが空の場合、すべてのファイルをインポート。タイムスタンプ形式: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["yyyy-MM-dd'T'HH:mm:ss.SSSZ"]}," 例: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["2019-05-01T10:00:00.121Z"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name_match_pattern"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたファイル名regexに一致するファイルのみをインポート。ファイル名Regexマッチングを参照"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["繰り返し実行する際、最後のインポート以降のファイルのみをインポートしようとします。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["retry_limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション。システムがあきらめる前にエラーが発生したときの再試行回数。デフォルトは7回"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["retry_initial_wait_millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1回目と2回目の試行の間の時間(ミリ秒)。デフォルト: 500ミリ秒"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["max_retry_wait_millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2回目以降のすべての試行の間の時間(ミリ秒)。デフォルト: 300000 ~ 5分"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connection_timeout_millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP接続タイムアウトの時間(ミリ秒)。デフォルト: 60000 ~ 1分"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_timeout_millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP読み取りタイムアウトの時間(ミリ秒)。デフォルト: 300000 ~ 5分。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["min_task_size"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートフォルダに多数の小さなファイルが含まれている場合、インポートパフォーマンスの低下を引き起こす可能性があります。パフォーマンス向上のため、この値を設定して1つのタスクで複数のファイルを結合します。例: 4000000 ~ 4MB"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["personalアカウントプラン、incremental、およびcolumn_optionsを使用した",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["load.yml"]},"の例。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: one_drive\n  refresh_token: 'xxxxxxxxxxxxxxxx'\n  client_id: 'xxxxxxxxxx'\n  client_secret: 'xxxxxx'\n  account_type: personal\n  folder_path: /xxx\n  decoders:\n  - {type: gzip}\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: ','\n    quote: '\"'\n    escape: ''\n    skip_header_lines: 1\n    columns:\n    - name: id\n      type: long\n    - name: company\n      type: string\n    - name: customer\n      type: string\n    - name: created_at\n      type: timestamp\n      format: '%Y-%m-%d %H:%M:%S'\nout: {mode: append}\nexec: {}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-インポートするデータのプレビュー","__idx":19},"children":["オプション: インポートするデータのプレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プレビューコマンドを使用して、システムがデータをどのように解析するかをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n+-------+---------+----------+---------------------+\n| id    | company | customer | created_at          |\n+-------+---------+----------+---------------------+\n| 11200 | AA Inc. |    David | 2015-03-31 06:12:37 |\n| 20313 | BB Imc. |      Tom | 2015-04-01 01:00:07 |\n| 32132 | CC Inc. | Fernando | 2015-04-01 10:33:41 |\n| 40133 | DD Inc. |    Cesar | 2015-04-02 05:12:32 |\n| 93133 | EE Inc. |     Jake | 2015-04-02 14:11:13 |\n+-------+---------+----------+---------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["guess"]},"コマンドは、ソースデータファイルに3行以上と2列以上が必要です。これは、ソースデータのサンプル行を使用してカラム定義を推測するためです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムがカラム名またはカラム型を予期せず検出した場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]},"を直接変更して、プレビューを再度実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Connectorは、「boolean」、「long」、「double」、「string」、および「timestamp」型の解析をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["preview"]},"コマンドは、指定されたバケットから1つのファイルをダウンロードし、そのファイルの結果を表示します。これにより、プレビューコマンドとissueコマンドの結果に違いが生じる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":20},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:issueを使用してジョブを実行します。以下が必要です:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールの名前"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cron形式のスケジュール"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データが保存されるデータベースとテーブル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Connector設定ファイル"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at \\\n    daily_onedrive_import ...\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データベースまたはテーブルがTDに存在しない場合、td connector:issueは失敗します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間によってパーティション化されているため、--time-columnオプションを指定することをお勧めします(",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"を参照)。--time-columnオプションが使用できない場合、データコネクタは最初のlongまたはtimestampカラムをパーティショニング時刻として選択します。--time-columnで指定するカラムの型は、longまたはtimestamp型のいずれかである必要があります(使用可能なカラム名と型を確認するには、プレビュー結果を使用してください)。timeカラムは出力の最後に使用できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table \\\n  --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データにtimeカラムがない場合は、add_timeフィルタを使用して追加できます。以下のように設定ファイルにadd_timeフィルタを追加することで、「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time"]},"」カラムを追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: onedrive\n  ...\nfilters:\n- type: add_time\n  from_value:\n    mode: upload_time\n  to_column:\n    name: time\nout:\n  type: td\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_timeフィルタプラグイン"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このインテグレーションはサーバー側でレコードをソートしません。時間ベースのパーティショニングを効果的に使用するには、インポートジョブを実行する前にファイル内のレコードをソートしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["timeというフィールドがある場合、--time-columnオプションを指定する必要はありません。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールされた実行","__idx":21},"children":["スケジュールされた実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なOneDriveインポートのために、定期的なデータコネクタの実行をスケジュールできます。高可用性を確保するために、スケジューラを慎重に設定しています。この機能を使用することで、ローカルデータセンターにcronデーモンを配置する必要がなくなります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スケジュールされたインポートでは、OneDrive用データコネクタは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["name_match_pattern"]},"パラメータに一致するすべてのオブジェクトをインポートします。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental"]},"および",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["last_modified_time"]},"パラメータは、最後のインポート以降に",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["folder_path"]},"に更新または追加されたファイルをインポートするために使用されます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/onedrive-import-integration"},"children":["増分ロードの仕組み"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は、出力に「append」モードを組み合わせた増分モードを使用したseedファイルの例です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: one_drive\n  refresh_token: 'xxxxxxxxxxxxxxxx'\n  client_id: 'xxxxxxxxxx'\n  client_secret: 'xxxxxx'\n  account_type: personal\n  folder_path: /xxx\n  incremental: true\n  decoders:\n  - {type: gzip}\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: ','\n    quote: '\"'\n    escape: ''\n    skip_header_lines: 1\n    columns:\n    - name: id\n      type: long\n    - name: company\n      type: string\n    - name: customer\n      type: string\n    - name: created_at\n      type: timestamp\n      format: '%Y-%m-%d %H:%M:%S'\nout: {mode: append}\nexec: {}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの作成","__idx":22},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:createコマンドを使用して新しいスケジュールを作成できます。以下が必要です:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールの名前"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cron形式のスケジュール"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データが保存されるデータベースとテーブル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Connector設定ファイル"]}]},{"$$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のストレージは通常時間によってパーティション化されているため、--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":"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"]},"の3つの特別なオプションも受け入れます。"]},{"$$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":"Heading","attributes":{"level":2,"id":"onedriveからのインポートに関するfaq","__idx":23},"children":["OneDriveからのインポートに関するFAQ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Q: 誰かが私と共有したフォルダをインポートするにはどうすればよいですか?"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Business Account Plan:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ドメイン名"]},"、サーバーの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["相対パス"]},"、および",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["フォルダパス"]},"が必要です。ブラウザでShared With Meタブに移動します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid9.1617ba2a0b3addd9f71aec355788d10b94bcb194e0423213103a4d319226c629.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["共有フォルダを選択し、ドメイン名と相対パスで説明されているように、ドメイン名、相対パス、およびフォルダパスをメモします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Personal Account Plan"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["This is a shared folder"]}," (",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["is_shared_folder"]},")フィールドを",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["true"]},"に設定し、画像に示すように共有フォルダにドリルダウンする必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid11.ddec2a852a6f64067e1f603ddb333f42126b25971922e344c8cae3e645c0bc8f.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["共有フォルダ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["f1"]},"を選択し、インポートする",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["f2"]},"ターゲットフォルダに移動します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid23.7ae69eeb9d77aab553ed08ef0cfd11a75888f2cc19ba8b4edea38283517f1a39.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["図のようにフォルダパスパラメータを入力します: folder_path: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["/f1/f2"]}," (注意: フォルダ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["f0"]},"は共有されていません)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/blobid22.8b2fedb56b7fcb2f12070334fc821fabf195565a21ae6b39fe7b7e3c34c336a1.f5e2eeff.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Q: SharePointコレクションからファイルをインポートするにはどうすればよいですか?"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SharePointコレクションからファイルをインポートするには、",{"$$mdtype":"Tag","name":"strong","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":["Q: 「Attribute type is required but not set」というエラーが発生したのはなぜですか?"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートフォルダに空のファイルが含まれているか、ファイルに改行文字がありません。空のファイルを削除し、インポートファイルに少なくとも2行のデータがあることを確認してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Q: アプリにアクセスするためにOneDrive管理者ユーザーから承認を得る必要があります。管理者から承認を得た後、OAuth接続が接続リストに表示されません"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これは、コネクタがそのようなOAuthフロー(OAuthで承認を要求する)をサポートしていないためです。したがって、OneDrive管理者ユーザーに代わって認証を作成するよう依頼してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"付録","__idx":24},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"outプラグインのモード","__idx":25},"children":["Outプラグインのモード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルのoutセクションでファイルインポートモードを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["outセクションは、データがTreasure Dataテーブルにインポートされる方法を制御します。"," ","例えば、データを追加するか、Treasure Dataの既存のテーブルのデータを置き換えるかを選択できます。"]},{"$$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"]}," (デフォルト): レコードはターゲットテーブルに追加されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace"]}," (td 0.11.10以降で利用可能): ターゲットテーブルのデータを置き換えます。ターゲットテーブルに対して行われた手動のスキーマ変更はそのまま残ります。"]}]},{"$$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":[]}]},"headings":[{"value":"OneDrive Import Integration","id":"onedrive-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"OneDriveの増分ロード","id":"onedriveの増分ロード","depth":2},{"value":"ドメイン名と相対パス","id":"ドメイン名と相対パス","depth":2},{"value":"ファイル名Regexマッチング","id":"ファイル名regexマッチング","depth":2},{"value":"要求される権限","id":"要求される権限","depth":2},{"value":"Treasure コンソールを使用した接続の作成","id":"treasure-コンソールを使用した接続の作成","depth":2},{"value":"新しい接続の作成","id":"新しい接続の作成","depth":3},{"value":"OneDriveデータをTreasure Dataに転送","id":"onedriveデータをtreasure-dataに転送","depth":3},{"value":"プレビュー","id":"プレビュー","depth":3},{"value":"高度な設定","id":"高度な設定","depth":3},{"value":"ターゲットデータベースとテーブルの選択","id":"ターゲットデータベースとテーブルの選択","depth":3},{"value":"スケジューリング","id":"スケジューリング","depth":3},{"value":"コマンドラインを使用したOneDrive接続の作成","id":"コマンドラインを使用したonedrive接続の作成","depth":2},{"value":"独自のRefresh_Tokenの取得","id":"独自のrefresh_tokenの取得","depth":3},{"value":"Treasure Data Toolbeltのインストール","id":"treasure-data-toolbeltのインストール","depth":2},{"value":"設定ファイルの作成 (seed.yml)","id":"設定ファイルの作成-seedyml","depth":3},{"value":"認証","id":"認証","depth":3},{"value":"Guess Fieldsコマンドの実行 (load.ymlファイルの生成)","id":"guess-fieldsコマンドの実行-loadymlファイルの生成","depth":3},{"value":"オプション: インポートするデータのプレビュー","id":"オプション-インポートするデータのプレビュー","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュールされた実行","id":"スケジュールされた実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":3},{"value":"OneDriveからのインポートに関するFAQ","id":"onedriveからのインポートに関するfaq","depth":2},{"value":"付録","id":"付録","depth":2},{"value":"Outプラグインのモード","id":"outプラグインのモード","depth":3}],"frontmatter":{"seo":{"title":"OneDrive Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/onedrive-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}