Material

課程作業附加的教材。

建立附件時,不支援設定 form、gem 或 notebook 欄位。

JSON 表示法
{

  "driveFile": {
    object (SharedDriveFile)
  },
  "youtubeVideo": {
    object (YouTubeVideo)
  },
  "link": {
    object (Link)
  },
  "form": {
    object (Form)
  },
  "gem": {
    object (GeminiGem)
  },
  "notebook": {
    object (NotebookLmNotebook)
  }
}
欄位
重要內容。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
driveFile

object (SharedDriveFile)

Google 雲端硬碟檔案教材。

youtubeVideo

object (YouTubeVideo)

YouTube 影片素材。

form

object (Form)

Google 表單教材。唯讀。

gem

object (GeminiGem)

Gemini Gem 教材。唯讀。

notebook

object (NotebookLmNotebook)

NotebookLM 筆記本教材。唯讀。

互斥欄位結束。

SharedDriveFile

用於課程作業教材的雲端硬碟檔案。

JSON 表示法
{
  "driveFile": {
    object (DriveFile)
  },
  "shareMode": enum (ShareMode)
}
欄位
driveFile

object (DriveFile)

雲端硬碟檔案詳細資料。

shareMode

enum (ShareMode)

學生存取雲端硬碟項目的機制。

ShareMode

可能的共用選項。如未指定,則預設為 VIEW,其他值只能在 ASSIGNMENT 類型的課程作業物件中指定。

列舉
UNKNOWN_SHARE_MODE 未指定共用模式。這個值不應傳回。
VIEW 學生可以查看共用檔案。
EDIT 學生可以編輯共用檔案。
STUDENT_COPY 學生會收到共用檔案的個人副本。

GeminiGem

Gemini Gem 連結。

JSON 表示法
{
  "id": string,
  "title": string,
  "url": string
}
欄位
id

string

Gem 資源 ID。

title

string

Gem 的名稱。

url

string

可用來存取 Gem 的網址。

NotebookLmNotebook

NotebookLM 筆記本連結。

JSON 表示法
{
  "id": string,
  "title": string,
  "url": string
}
欄位
id

string

筆記本資源 ID。

title

string

Notebook 的標題。

url

string

可用來存取筆記本的網址。