Google Classroom add-ons are now generally available to developers! Please see the
add-ons documentation for more information.
Material
Material attached to course work.
When creating attachments, setting the form
field is not supported.
JSON representation |
{
// Union field material can be only one of the following:
"driveFile": {
object (SharedDriveFile )
},
"youtubeVideo": {
object (YouTubeVideo )
},
"link": {
object (Link )
},
"form": {
object (Form )
}
// End of list of possible types for union field material .
} |
Fields |
Union field material . Material content. material can be only one of the following: |
driveFile |
object (SharedDriveFile )
Google Drive file material.
|
youtubeVideo |
object (YouTubeVideo )
YouTube video material.
|
link |
object (Link )
Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
|
form |
object (Form )
Google Forms material.
|
SharedDriveFile
Drive file that is used as material for course work.
JSON representation |
{
"driveFile": {
object (DriveFile )
},
"shareMode": enum (ShareMode )
} |
Fields |
driveFile |
object (DriveFile )
Drive file details.
|
shareMode |
enum (ShareMode )
Mechanism by which students access the Drive item.
|
ShareMode
Possible sharing options. Defaults to VIEW if left unspecified, and other values may only be specified within a course work object of type ASSIGNMENT.
Enums |
UNKNOWN_SHARE_MODE |
No sharing mode specified. This should never be returned. |
VIEW |
Students can view the shared file. |
EDIT |
Students can edit the shared file. |
STUDENT_COPY |
Students have a personal copy of the shared file. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["Course work materials can include Google Drive files, YouTube videos, and links, and these are automatically categorized when possible."],["When attaching materials to coursework, the \"form\" field is not supported."],["Shared Google Drive files for coursework offer varying access levels for students: view, edit, or individual copies."],["`ShareMode` defaults to \"view\" unless specified within assignments, allowing control over student interaction with materials."]]],[]]