Material

附加至課程作業的教材。

建立附件時,系統不支援設定 formgemnotebook 欄位。

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.
}
欄位
聯集欄位 material。Material 內容。material 只能是下列其中一項:
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

筆記本標題。

唯讀。

url

string

可用來存取 Notebook 的網址。

唯讀。