Material

Material attached to course work.

When creating attachments, setting the form, gem, or notebook field is not supported.

JSON representation
{

  "driveFile": {
    object (SharedDriveFile)
  },
  "youtubeVideo": {
    object (YouTubeVideo)
  },
  "link": {
    object (Link)
  },
  "form": {
    object (Form)
  },
  "gem": {
    object (GeminiGem)
  },
  "notebook": {
    object (NotebookLmNotebook)
  }
}
Fields
Material content. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
driveFile

object (SharedDriveFile)

Google Drive file material.

youtubeVideo

object (YouTubeVideo)

YouTube video material.

form

object (Form)

Google Forms material. Read-only.

gem

object (GeminiGem)

Gemini Gem material. Read-only.

notebook

object (NotebookLmNotebook)

NotebookLM Notebook material. Read-only.

End of mutually exclusive fields.

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.

GeminiGem

Gemini Gem link.

JSON representation
{
  "id": string,
  "title": string,
  "url": string
}
Fields
id

string

Gems resource id.

title

string

Title of the Gem.

url

string

URL that can be used to access the Gem.

NotebookLmNotebook

NotebookLM Notebook link.

JSON representation
{
  "id": string,
  "title": string,
  "url": string
}
Fields
id

string

Notebook resource id.

title

string

Title of the Notebook.

url

string

URL that can be used to access the Notebook.