Resource: CourseWorkMaterial
Course work material created by a teacher for students of the course
JSON representation |
---|
{ "courseId": string, "id": string, "title": string, "description": string, "materials": [ { object ( |
Fields | |
---|---|
courseId |
Identifier of the course. Read-only. |
id |
Classroom-assigned identifier of this course work material, unique per course. Read-only. |
title |
Title of this course work material. The title must be a valid UTF-8 string containing between 1 and 3000 characters. |
description |
Optional description of this course work material. The text must be a valid UTF-8 string containing no more than 30,000 characters. |
materials[] |
Additional materials. A course work material must have no more than 20 material items. |
state |
Status of this course work material. If unspecified, the default state is |
alternateLink |
Absolute link to this course work material in the Classroom web UI. This is only populated if Read-only. |
creationTime |
Timestamp when this course work material was created. Read-only. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Timestamp of the most recent change to this course work material. Read-only. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
scheduledTime |
Optional timestamp when this course work material is scheduled to be published. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
assigneeMode |
Assignee mode of the course work material. If unspecified, the default value is |
individualStudentsOptions |
Identifiers of students with access to the course work material. This field is set only if |
creatorUserId |
Identifier for the user that created the course work material. Read-only. |
topicId |
Identifier for the topic that this course work material is associated with. Must match an existing topic in the course. |
CourseWorkMaterialState
Possible states of course work material
Enums | |
---|---|
COURSEWORK_MATERIAL_STATE_UNSPECIFIED |
No state specified. This is never returned. |
PUBLISHED |
Status for course work material that has been published. This is the default state. |
DRAFT |
Status for a course work material that is not yet published. Course work material in this state is visible only to course teachers and domain administrators. |
DELETED |
Status for course work material that was published but is now deleted. Course work material in this state is visible only to course teachers and domain administrators. Course work material in this state is deleted after some time. |
Methods |
|
---|---|
|
Creates a course work material. |
|
Deletes a course work material. |
|
Returns a course work material. |
|
Gets metadata for Classroom add-ons in the context of a specific post. |
|
Returns a list of course work material that the requester is permitted to view. |
|
Updates one or more fields of a course work material. |