REST Resource: children
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: ChildReference
フォルダの子への参照。
一部のリソース メソッド(children.get
など)では childId
が必要です。children.list
メソッドを使用して、子の ID を取得します。
JSON 表現 |
{
"id": string,
"selfLink": string,
"kind": string,
"childLink": string
} |
フィールド |
id |
string
子アイテムの ID。
|
selfLink |
string
出力専用。この参照に戻るリンク。
|
kind |
string
出力専用。これは常に drive#childReference です。
|
childLink |
string
出力専用。子要素へのリンク。
|
メソッド |
|
フォルダから子フォルダを削除します。 |
|
特定の子リファレンスを取得します。 |
|
フォルダにファイルを挿入します。 |
|
フォルダの子フォルダを一覧表示します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# REST Resource: children\n\n- [Resource: ChildReference](#ChildReference)\n - [JSON representation](#ChildReference.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ChildReference\n------------------------\n\nA reference to a folder's child.\n\nSome resource methods (such as `children.get`) require a `childId`. Use the `children.list` method to retrieve the ID of the child.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"selfLink\": string, \"kind\": string, \"childLink\": string } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------|\n| `id` | `string` The ID of the child. |\n| `selfLink` | `string` Output only. A link back to this reference. |\n| `kind` | `string` Output only. This is always `drive#childReference`. |\n| `childLink` | `string` Output only. A link to the child. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------|----------------------------------|\n| ### [delete](/workspace/drive/api/reference/rest/v2/children/delete) | Removes a child from a folder. |\n| ### [get](/workspace/drive/api/reference/rest/v2/children/get) | Gets a specific child reference. |\n| ### [insert](/workspace/drive/api/reference/rest/v2/children/insert) | Inserts a file into a folder. |\n| ### [list](/workspace/drive/api/reference/rest/v2/children/list) | Lists a folder's children. |"]]