عند إنشاء مرفقات، لا يمكن ضبط الحقل 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 إحدى القيم التالية فقط:
خيارات المشاركة المحتملة تكون القيمة التلقائية هي VIEW إذا لم يتم تحديدها، ولا يمكن تحديد قيم أخرى إلا ضمن عنصر عمل في الدورة التدريبية من النوع ASSIGNMENT.
عمليات التعداد
UNKNOWN_SHARE_MODE
لم يتم تحديد وضع مشاركة. ولا يُفترَض أن يتم عرض هذا الخطأ أبدًا.
VIEW
يمكن للطلاب عرض الملف المشترَك.
EDIT
يمكن للطلاب تعديل الملف المشترَك.
STUDENT_COPY
يحصل الطلاب على نسخة شخصية من الملف المشترَك.
GeminiGem
رابط Gemini Gem
تمثيل JSON
{"id": string,"title": string,"url": string}
الحقول
id
string
معرّف مورد الأحجار الكريمة
title
string
تمثّل هذه السمة عنوان Gem.
للقراءة فقط.
url
string
عنوان URL يمكن استخدامه للوصول إلى Gem
للقراءة فقط.
NotebookLmNotebook
رابط دفتر ملاحظات NotebookLM
تمثيل JSON
{"id": string,"title": string,"url": string}
الحقول
id
string
معرّف مورد دفتر الملاحظات
title
string
تمثّل هذه السمة عنوان دفتر الملاحظات.
للقراءة فقط.
url
string
عنوان URL يمكن استخدامه للوصول إلى دفتر الملاحظات.
تاريخ التعديل الأخير: 2025-08-08 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-08-08 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SharedDriveFile](#SharedDriveFile)\n - [JSON representation](#SharedDriveFile.SCHEMA_REPRESENTATION)\n- [ShareMode](#ShareMode)\n\nMaterial attached to course work.\n\nWhen creating attachments, setting the `form` 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) } // 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\nSharedDriveFile Drive 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 Possible 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. |"]]