Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Course

import type { Course } from "https://googleapis.deno.dev/v1/classroom:v1.ts";

A Course in Classroom.

interface Course {
alternateLink?: string;
calendarId?: string;
courseGroupEmail?: string;
courseMaterialSets?: CourseMaterialSet[];
courseState?:
| "COURSE_STATE_UNSPECIFIED"
| "ACTIVE"
| "ARCHIVED"
| "PROVISIONED"
| "DECLINED"
| "SUSPENDED";
creationTime?: Date;
description?: string;
descriptionHeading?: string;
enrollmentCode?: string;
gradebookSettings?: GradebookSettings;
guardiansEnabled?: boolean;
id?: string;
name?: string;
ownerId?: string;
room?: string;
section?: string;
teacherFolder?: DriveFolder;
teacherGroupEmail?: string;
updateTime?: Date;
}

§Properties

§
calendarId?: string
[src]

The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to CourseState.ACTIVE for the first time (at creation time or when it is updated to ACTIVE through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.

§
courseGroupEmail?: string
[src]

The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.

§
courseMaterialSets?: CourseMaterialSet[]
[src]

Sets of materials that appear on the "about" page of this course. Read-only.

§
courseState?: "COURSE_STATE_UNSPECIFIED" | "ACTIVE" | "ARCHIVED" | "PROVISIONED" | "DECLINED" | "SUSPENDED"
[src]

State of the course. If unspecified, the default state is PROVISIONED.

§
creationTime?: Date
[src]

Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.

§
description?: string
[src]

Optional description. For example, "We'll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!" If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.

§
descriptionHeading?: string
[src]

Optional heading for the description. For example, "Welcome to 10th Grade Biology." If set, this field must be a valid UTF-8 string and no longer than 3600 characters.

§
enrollmentCode?: string
[src]

Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.

§
gradebookSettings?: GradebookSettings
[src]

The gradebook settings that specify how a student's overall grade for the course will be calculated and who it will be displayed to. Read-only

§
guardiansEnabled?: boolean
[src]

Whether or not guardian notifications are enabled for this course. Read-only.

§
id?: string
[src]

Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The id is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.

§
name?: string
[src]

Name of the course. For example, "10th Grade Biology". The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.

§
ownerId?: string
[src]

The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal "me", indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.

§
room?: string
[src]

Optional room location. For example, "301". If set, this field must be a valid UTF-8 string and no longer than 650 characters.

§
section?: string
[src]

Section of the course. For example, "Period 2". If set, this field must be a valid UTF-8 string and no longer than 2800 characters.

§
teacherFolder?: DriveFolder
[src]

Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.

§
teacherGroupEmail?: string
[src]

The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.

§
updateTime?: Date
[src]

Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.