public class Classroom.Courses.Students extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Classroom.Courses.Students.Create |
class |
Classroom.Courses.Students.Delete |
class |
Classroom.Courses.Students.Get |
class |
Classroom.Courses.Students.List |
| Constructor and Description |
|---|
Students() |
| Modifier and Type | Method and Description |
|---|---|
Classroom.Courses.Students.Create |
create(String courseId,
Student content)
Adds a user as a student of a course.
|
Classroom.Courses.Students.Delete |
delete(String courseId,
String userId)
Deletes a student of a course.
|
Classroom.Courses.Students.Get |
get(String courseId,
String userId)
Returns a student of a course.
|
Classroom.Courses.Students.List |
list(String courseId)
Returns a list of students of this course that the requester is permitted to view.
|
public Classroom.Courses.Students.Create create(String courseId, Student content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course to create the student in. This identifier can be either the Classroom-
assigned identifier or an alias.content - the StudentIOExceptionpublic Classroom.Courses.Students.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 student 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.Students.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 student 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.Students.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.