public class Classroom.Courses.Teachers extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Classroom.Courses.Teachers.Create |
class |
Classroom.Courses.Teachers.Delete |
class |
Classroom.Courses.Teachers.Get |
class |
Classroom.Courses.Teachers.List |
| Constructor and Description |
|---|
Teachers() |
| Modifier and Type | Method and Description |
|---|---|
Classroom.Courses.Teachers.Create |
create(String courseId,
Teacher content)
Creates a teacher of a course.
|
Classroom.Courses.Teachers.Delete |
delete(String courseId,
String userId)
Removes the specified teacher from the specified course.
|
Classroom.Courses.Teachers.Get |
get(String courseId,
String userId)
Returns a teacher of a course.
|
Classroom.Courses.Teachers.List |
list(String courseId)
Returns a list of teachers of this course that the requester is permitted to view.
|
public Classroom.Courses.Teachers.Create create(String courseId, Teacher content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.content - the TeacherIOExceptionpublic Classroom.Courses.Teachers.Delete delete(String courseId, String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.userId - Identifier of the teacher to delete. 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 userIOExceptionpublic Classroom.Courses.Teachers.Get get(String courseId, String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.userId - Identifier of the teacher to return. 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 userIOExceptionpublic Classroom.Courses.Teachers.List list(String courseId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.IOExceptionCopyright © 2011–2022 Google. All rights reserved.