Material

Material attached to course work.

When creating attachments, setting the form, gem, or notebook 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)
  },
  "gem": {
    object (GeminiGem)
  },
  "notebook": {
    object (NotebookLmNotebook)
  }
  // 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.

form

object (Form)

Google Forms material. Read-only.

gem

object (GeminiGem)

Gemini Gem material. Read-only.

notebook

object (NotebookLmNotebook)

NotebookLM Notebook material. Read-only.

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.

Read-only.

url

string

URL that can be used to access the Gem.

Read-only.

NotebookLmNotebook

NotebookLM Notebook link.

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

string

Notebook resource id.

title

string

Title of the Notebook.

Read-only.

url

string

URL that can be used to access the Notebook.

Read-only.