Google Classroom アドオンの一般提供が開始されました。詳しくは、
アドオンのドキュメントをご覧ください。
Material
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コースの課題に添付された資料。
添付ファイルを作成するときに、form
、gem
、notebook
フィールドを設定することはできません。
JSON 表現 |
{
// Union field material can be only one of the following:
"driveFile": {
object (SharedDriveFile )
},
"youtubeVideo": {
object (YouTubeVideo )
},
"link": {
object (Link )
},
"form": {
object (Form )
},
"gem": {
object (GeminiGem )
},
"notebook": {
object (NotebookLmNotebook )
}
// End of list of possible types for union field material .
} |
フィールド |
共用体フィールド material 。マテリアル コンテンツ。material は次のいずれかになります。 |
driveFile |
object (SharedDriveFile )
Google ドライブ ファイルのマテリアル。
|
youtubeVideo |
object (YouTubeVideo )
YouTube 動画素材。
|
link |
object (Link )
資料をリンクします。作成時に、可能であればより適切なタイプにアップグレードされ、その結果がレスポンスに反映されます。
|
form |
object (Form )
Google フォームの資料。読み取り専用です。
|
gem |
object (GeminiGem )
Gemini Gem の素材。読み取り専用です。
|
notebook |
object (NotebookLmNotebook )
NotebookLM ノートブックの教材。読み取り専用です。
|
SharedDriveFile
コースワークの教材として使用されるドライブ ファイル。
フィールド |
driveFile |
object (DriveFile )
ドライブ ファイルの詳細。
|
shareMode |
enum (ShareMode )
生徒がドライブ アイテムにアクセスするメカニズム。
|
ShareMode
共有オプション。指定しない場合、デフォルトは VIEW です。他の値を指定できるのは、ASSIGNMENT タイプのコースワーク オブジェクト内のみです。
列挙型 |
UNKNOWN_SHARE_MODE |
共有モードが指定されていません。この値が返されることはありません。 |
VIEW |
生徒は共有ファイルを表示できます。 |
EDIT |
生徒は共有ファイルを編集できます。 |
STUDENT_COPY |
生徒は共有ファイルの個人用コピーを持っています。 |
GeminiGem
JSON 表現 |
{
"id": string,
"title": string,
"url": string
} |
フィールド |
id |
string
Gem のリソース ID。
|
title |
string
Gem のタイトル。 読み取り専用です。
|
url |
string
Gem へのアクセスに使用できる URL。 読み取り専用です。
|
NotebookLmNotebook
JSON 表現 |
{
"id": string,
"title": string,
"url": string
} |
フィールド |
id |
string
ノートブックのリソース ID。
|
title |
string
ノートブックのタイトル。 読み取り専用です。
|
url |
string
ノートブックへのアクセスに使用できる URL。 読み取り専用です。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-08 UTC。
[null,null,["最終更新日 2025-08-08 UTC。"],[],[],null,["# Material\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SharedDriveFile](#SharedDriveFile)\n - [JSON representation](#SharedDriveFile.SCHEMA_REPRESENTATION)\n- [ShareMode](#ShareMode)\n- [GeminiGem](#GeminiGem)\n - [JSON representation](#GeminiGem.SCHEMA_REPRESENTATION)\n- [NotebookLmNotebook](#NotebookLmNotebook)\n - [JSON representation](#NotebookLmNotebook.SCHEMA_REPRESENTATION)\n\nMaterial attached to course work.\n\nWhen creating attachments, setting the `form`, `gem`, or `notebook` field is not supported.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `material` can be only one of the following: \"driveFile\": { object (/workspace/classroom/reference/rest/v1/Material#SharedDriveFile) }, \"youtubeVideo\": { object (/workspace/classroom/reference/rest/v1/YouTubeVideo) }, \"link\": { object (/workspace/classroom/reference/rest/v1/Link) }, \"form\": { object (/workspace/classroom/reference/rest/v1/Form) }, \"gem\": { object (/workspace/classroom/reference/rest/v1/Material#GeminiGem) }, \"notebook\": { object (/workspace/classroom/reference/rest/v1/Material#NotebookLmNotebook) } // End of list of possible types for union field `material`. } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `material`. Material content. `material` can be only one of the following: ||\n| `driveFile` | `object (`[SharedDriveFile](/workspace/classroom/reference/rest/v1/Material#SharedDriveFile)`)` Google Drive file material. |\n| `youtubeVideo` | `object (`[YouTubeVideo](/workspace/classroom/reference/rest/v1/YouTubeVideo)`)` YouTube video material. |\n| `link` | `object (`[Link](/workspace/classroom/reference/rest/v1/Link)`)` Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response. |\n| `form` | `object (`[Form](/workspace/classroom/reference/rest/v1/Form)`)` Google Forms material. Read-only. |\n| `gem` | `object (`[GeminiGem](/workspace/classroom/reference/rest/v1/Material#GeminiGem)`)` Gemini Gem material. Read-only. |\n| `notebook` | `object (`[NotebookLmNotebook](/workspace/classroom/reference/rest/v1/Material#NotebookLmNotebook)`)` NotebookLM Notebook material. Read-only. |\n\nSharedDriveFile\n---------------\n\nDrive file that is used as material for course work.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"driveFile\": { object (/workspace/classroom/reference/rest/v1/DriveFile) }, \"shareMode\": enum (/workspace/classroom/reference/rest/v1/Material#ShareMode) } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `driveFile` | `object (`[DriveFile](/workspace/classroom/reference/rest/v1/DriveFile)`)` Drive file details. |\n| `shareMode` | `enum (`[ShareMode](/workspace/classroom/reference/rest/v1/Material#ShareMode)`)` Mechanism by which students access the Drive item. |\n\nShareMode\n---------\n\nPossible sharing options. Defaults to VIEW if left unspecified, and other values may only be specified within a course work object of type ASSIGNMENT.\n\n| Enums ||\n|----------------------|-----------------------------------------------------------|\n| `UNKNOWN_SHARE_MODE` | No sharing mode specified. This should never be returned. |\n| `VIEW` | Students can view the shared file. |\n| `EDIT` | Students can edit the shared file. |\n| `STUDENT_COPY` | Students have a personal copy of the shared file. |\n\nGeminiGem\n---------\n\nGemini Gem link.\n\n| JSON representation |\n|----------------------------------------------------------|\n| ``` { \"id\": string, \"title\": string, \"url\": string } ``` |\n\n| Fields ||\n|---------|-------------------------------------------------------------|\n| `id` | `string` Gems resource id. |\n| `title` | `string` Title of the Gem. Read-only. |\n| `url` | `string` URL that can be used to access the Gem. Read-only. |\n\nNotebookLmNotebook\n------------------\n\nNotebookLM Notebook link.\n\n| JSON representation |\n|----------------------------------------------------------|\n| ``` { \"id\": string, \"title\": string, \"url\": string } ``` |\n\n| Fields ||\n|---------|------------------------------------------------------------------|\n| `id` | `string` Notebook resource id. |\n| `title` | `string` Title of the Notebook. Read-only. |\n| `url` | `string` URL that can be used to access the Notebook. Read-only. |"]]