Material

Material attached to course work.

When creating attachments, setting the form 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)
  }
  // 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.

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.

发送以下问题的反馈:

此网页
Classroom API
Classroom API
需要帮助?请访问我们的支持页面