ส่วนเสริมของ 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 .
} |
ช่อง |
ฟิลด์ Union 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 )
เนื้อหา Notebook ของ NotebookLM อ่านอย่างเดียว
|
SharedDriveFile
ไฟล์ในไดรฟ์ที่ใช้เป็นสื่อการสอนสำหรับงานของหลักสูตร
ช่อง |
driveFile |
object (DriveFile )
รายละเอียดไฟล์ในไดรฟ์
|
shareMode |
enum (ShareMode )
กลไกที่นักเรียนใช้เข้าถึงรายการในไดรฟ์
|
ShareMode
ตัวเลือกการแชร์ที่อาจเป็นไปได้ ค่าเริ่มต้นจะเป็น VIEW หากไม่ได้ระบุ และจะระบุค่าอื่นๆ ได้ภายในออบเจ็กต์งานในชั้นเรียนประเภท ASSIGNMENT เท่านั้น
Enum |
UNKNOWN_SHARE_MODE |
ไม่ได้ระบุโหมดการแชร์ ไม่ควรมีการส่งคืน |
VIEW |
นักเรียนจะดูไฟล์ที่แชร์ได้ |
EDIT |
นักเรียน/นักศึกษาสามารถแก้ไขไฟล์ที่แชร์ได้ |
STUDENT_COPY |
นักเรียนจะมีสำเนาส่วนตัวของไฟล์ที่แชร์ |
GeminiGem
การแสดง JSON |
{
"id": string,
"title": string,
"url": string
} |
ช่อง |
id |
string
รหัสทรัพยากรของ Gem
|
title |
string
ชื่อของ Gem อ่านอย่างเดียว
|
url |
string
URL ที่ใช้เข้าถึง Gem ได้ อ่านอย่างเดียว
|
NotebookLmNotebook
ลิงก์ Notebook ของ NotebookLM
การแสดง JSON |
{
"id": string,
"title": string,
"url": string
} |
ช่อง |
id |
string
รหัสทรัพยากรของ Notebook
|
title |
string
ชื่อของ Notebook อ่านอย่างเดียว
|
url |
string
URL ที่ใช้เข้าถึง Notebook ได้ อ่านอย่างเดียว
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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. |"]]