附加到课程作业的资料。
创建附件时,不支持设置 form、gem 或 notebook 字段。
| JSON 表示法 | 
|---|
| { // Union field | 
| 字段 | |
|---|---|
| 联合字段 material。素材内容。material只能是下列其中一项: | |
| driveFile | 
 Google 云端硬盘文件素材资源。 | 
| youtubeVideo | 
 YouTube 视频素材。 | 
| link | 
 链接素材资源。创建时,如果可能,此值会升级为更合适的类型,并在响应中反映出来。 | 
| form | 
 Google 表单素材资源。只读。 | 
| gem | 
 Gemini Gem 素材。只读。 | 
| notebook | 
 NotebookLM 笔记本材料。只读。 | 
GeminiGem
Gemini Gem 链接。
| JSON 表示法 | 
|---|
| { "id": string, "title": string, "url": string } | 
| 字段 | |
|---|---|
| id | 
 Gem 资源 ID。 | 
| title | 
 Gem 的标题。 只读。 | 
| url | 
 可用于访问 Gem 的网址。 只读。 | 
NotebookLmNotebook
NotebookLM 笔记本链接。
| JSON 表示法 | 
|---|
| { "id": string, "title": string, "url": string } | 
| 字段 | |
|---|---|
| id | 
 笔记本资源 ID。 | 
| title | 
 笔记本的标题。 只读。 | 
| url | 
 可用于访问笔记本的网址。 只读。 |