Los complementos de Google Classroom ya están en fase de disponibilidad general para desarrolladores. Consulta la
documentación sobre complementos para obtener más información.
Material
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Material adjunto al trabajo del curso.
Cuando crees archivos adjuntos, no se admite configurar los campos form
, gem
o notebook
.
Representación 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 .
} |
Campos |
Campo de unión material . Contenido de material Las direcciones (material ) solo pueden ser una de las siguientes opciones: |
driveFile |
object (SharedDriveFile )
Material de archivo de Google Drive.
|
youtubeVideo |
object (YouTubeVideo )
Material de video de YouTube
|
link |
object (Link )
Material de vinculación Durante la creación, se actualiza a un tipo más adecuado si es posible, y esto se refleja en la respuesta.
|
form |
object (Form )
Material de Formularios de Google Solo lectura.
|
gem |
object (GeminiGem )
Material de la Gem de Gemini. Solo lectura.
|
notebook |
object (NotebookLmNotebook )
Material del cuaderno de NotebookLM Solo lectura.
|
SharedDriveFile
Es el archivo de Drive que se usa como material para el trabajo del curso.
Representación JSON |
{
"driveFile": {
object (DriveFile )
},
"shareMode": enum (ShareMode )
} |
Campos |
driveFile |
object (DriveFile )
Detalles del archivo de Drive
|
shareMode |
enum (ShareMode )
Mecanismo por el cual los estudiantes acceden al elemento de Drive.
|
ShareMode
Son las posibles opciones para compartir. Si no se especifica, el valor predeterminado es VIEW, y otros valores solo se pueden especificar dentro de un objeto de trabajo del curso de tipo ASSIGNMENT.
Enumeraciones |
UNKNOWN_SHARE_MODE |
No se especificó ningún modo de uso compartido. Nunca debería devolverse. |
VIEW |
Los estudiantes pueden ver el archivo compartido. |
EDIT |
Los estudiantes pueden editar el archivo compartido. |
STUDENT_COPY |
Los estudiantes tienen una copia personal del archivo compartido. |
GeminiGem
Vínculo a la Gem de Gemini.
Representación JSON |
{
"id": string,
"title": string,
"url": string
} |
Campos |
id |
string
Es el ID de recurso de la Gem.
|
title |
string
Es el título de la Gem. Solo lectura.
|
url |
string
Es la URL que se puede usar para acceder a la Gem. Solo lectura.
|
NotebookLmNotebook
Vínculo al cuaderno de NotebookLM
Representación JSON |
{
"id": string,
"title": string,
"url": string
} |
Campos |
id |
string
Es el ID del recurso del notebook.
|
title |
string
Es el título del notebook. Solo lectura.
|
url |
string
Es la URL que se puede usar para acceder al notebook. Solo lectura.
|
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-08-08 (UTC)
[null,null,["Última actualización: 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. |"]]