Material

課程作業附加的教材。

建立附件時,不支援設定 form 欄位。

JSON 表示法
{

  // Union field material can be only one of the following:
  "driveFile": {
    object (SharedDriveFile)
  },
  "youtubeVideo": {
    object (YouTubeVideo)
  },
  "link": {
    object (Link)
  },
  "form": {
    object (Form)
  }
  // End of list of possible types for union field material.
}
欄位
聯集欄位 material。教材內容。material 只能是下列其中一項:
driveFile

object (SharedDriveFile)

Google 雲端硬碟檔案素材。

youtubeVideo

object (YouTubeVideo)

YouTube 影片資料。

form

object (Form)

Google 表單教材。

SharedDriveFile

做為課程作業教材的雲端硬碟檔案。

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

object (DriveFile)

雲端硬碟檔案詳細資料。

shareMode

enum (ShareMode)

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

ShareMode

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

列舉
UNKNOWN_SHARE_MODE 未指定共用模式。不應傳回這個符號。
VIEW 學生可以查看分享的檔案。
EDIT 學生可以編輯共用檔案。
STUDENT_COPY 學生會取得共用檔案的個人副本。