Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="classroom_v1.html">Google Classroom API</a> . <a href="classroom_v1.courses.html">courses</a> . <a href="classroom_v1.courses.students.html">students</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 78 | <code><a href="#create">create(courseId, body, enrollmentCode=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 79 | <p class="firstline">Adds a user as a student of a course.</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 81 | <code><a href="#delete">delete(courseId, userId, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 82 | <p class="firstline">Deletes a student of a course.</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 84 | <code><a href="#get">get(courseId, userId, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 85 | <p class="firstline">Returns a student of a course.</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 87 | <code><a href="#list">list(courseId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 88 | <p class="firstline">Returns a list of students of this course that the requester</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 94 | <code class="details" id="create">create(courseId, body, enrollmentCode=None, x__xgafv=None)</code> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 95 | <pre>Adds a user as a student of a course. |
| 96 | |
| 97 | This method returns the following error codes: |
| 98 | |
| 99 | * `PERMISSION_DENIED` if the requesting user is not permitted to create |
| 100 | students in this course or for access errors. |
| 101 | * `NOT_FOUND` if the requested course ID does not exist. |
| 102 | * `FAILED_PRECONDITION` if the requested user's account is disabled, |
| 103 | for the following request errors: |
| 104 | * CourseMemberLimitReached |
| 105 | * CourseNotModifiable |
| 106 | * UserGroupsMembershipLimitReached |
| 107 | * `ALREADY_EXISTS` if the user is already a student or teacher in the |
| 108 | course. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 109 | |
| 110 | Args: |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 111 | courseId: string, Identifier of the course to create the student in. |
| 112 | This identifier can be either the Classroom-assigned identifier or an |
| 113 | alias. (required) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 114 | body: object, The request body. (required) |
| 115 | The object takes the form of: |
| 116 | |
| 117 | { # Student in a course. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 118 | "profile": { # Global information for a user. # Global user information for the student. |
| 119 | # |
| 120 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 121 | "name": { # Details of the user's name. # Name of the user. |
| 122 | # |
| 123 | # Read-only. |
| 124 | "fullName": "A String", # The user's full name formed by concatenating the first and last name |
| 125 | # values. |
| 126 | # |
| 127 | # Read-only. |
| 128 | "givenName": "A String", # The user's first name. |
| 129 | # |
| 130 | # Read-only. |
| 131 | "familyName": "A String", # The user's last name. |
| 132 | # |
| 133 | # Read-only. |
| 134 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 135 | "photoUrl": "A String", # URL of user's profile photo. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 136 | # |
| 137 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 138 | "emailAddress": "A String", # Email address of the user. |
| 139 | # |
| 140 | # Read-only. |
| 141 | "verifiedTeacher": True or False, # Represents whether a G Suite for Education user's domain administrator has |
| 142 | # explicitly verified them as being a teacher. If the user is not a member of |
| 143 | # a G Suite for Education domain, than this field will always be false. |
| 144 | # |
| 145 | # Read-only |
| 146 | "id": "A String", # Identifier of the user. |
| 147 | # |
| 148 | # Read-only. |
| 149 | "permissions": [ # Global permissions of the user. |
| 150 | # |
| 151 | # Read-only. |
| 152 | { # Global user permission description. |
| 153 | "permission": "A String", # Permission value. |
| 154 | }, |
| 155 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 156 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 157 | "courseId": "A String", # Identifier of the course. |
| 158 | # |
| 159 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 160 | "studentWorkFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder for this student's work in this course. |
| 161 | # Only visible to the student and domain administrators. |
| 162 | # |
| 163 | # Read-only. |
| 164 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 165 | # |
| 166 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 167 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 168 | "title": "A String", # Title of the Drive folder. |
| 169 | # |
| 170 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 171 | }, |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 172 | "userId": "A String", # Identifier of the user. |
| 173 | # |
| 174 | # When specified as a parameter of a request, this identifier can be one of |
| 175 | # the following: |
| 176 | # |
| 177 | # * the numeric identifier for the user |
| 178 | # * the email address of the user |
| 179 | # * the string literal `"me"`, indicating the requesting user |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 180 | } |
| 181 | |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 182 | enrollmentCode: string, Enrollment code of the course to create the student in. |
| 183 | This code is required if userId |
| 184 | corresponds to the requesting user; it may be omitted if the requesting |
| 185 | user has administrative permissions to create students for any user. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 186 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 187 | Allowed values |
| 188 | 1 - v1 error format |
| 189 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 190 | |
| 191 | Returns: |
| 192 | An object of the form: |
| 193 | |
| 194 | { # Student in a course. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 195 | "profile": { # Global information for a user. # Global user information for the student. |
| 196 | # |
| 197 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 198 | "name": { # Details of the user's name. # Name of the user. |
| 199 | # |
| 200 | # Read-only. |
| 201 | "fullName": "A String", # The user's full name formed by concatenating the first and last name |
| 202 | # values. |
| 203 | # |
| 204 | # Read-only. |
| 205 | "givenName": "A String", # The user's first name. |
| 206 | # |
| 207 | # Read-only. |
| 208 | "familyName": "A String", # The user's last name. |
| 209 | # |
| 210 | # Read-only. |
| 211 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 212 | "photoUrl": "A String", # URL of user's profile photo. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 213 | # |
| 214 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 215 | "emailAddress": "A String", # Email address of the user. |
| 216 | # |
| 217 | # Read-only. |
| 218 | "verifiedTeacher": True or False, # Represents whether a G Suite for Education user's domain administrator has |
| 219 | # explicitly verified them as being a teacher. If the user is not a member of |
| 220 | # a G Suite for Education domain, than this field will always be false. |
| 221 | # |
| 222 | # Read-only |
| 223 | "id": "A String", # Identifier of the user. |
| 224 | # |
| 225 | # Read-only. |
| 226 | "permissions": [ # Global permissions of the user. |
| 227 | # |
| 228 | # Read-only. |
| 229 | { # Global user permission description. |
| 230 | "permission": "A String", # Permission value. |
| 231 | }, |
| 232 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 233 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 234 | "courseId": "A String", # Identifier of the course. |
| 235 | # |
| 236 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 237 | "studentWorkFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder for this student's work in this course. |
| 238 | # Only visible to the student and domain administrators. |
| 239 | # |
| 240 | # Read-only. |
| 241 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 242 | # |
| 243 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 244 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 245 | "title": "A String", # Title of the Drive folder. |
| 246 | # |
| 247 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 248 | }, |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 249 | "userId": "A String", # Identifier of the user. |
| 250 | # |
| 251 | # When specified as a parameter of a request, this identifier can be one of |
| 252 | # the following: |
| 253 | # |
| 254 | # * the numeric identifier for the user |
| 255 | # * the email address of the user |
| 256 | # * the string literal `"me"`, indicating the requesting user |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 257 | }</pre> |
| 258 | </div> |
| 259 | |
| 260 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 261 | <code class="details" id="delete">delete(courseId, userId, x__xgafv=None)</code> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 262 | <pre>Deletes a student of a course. |
| 263 | |
| 264 | This method returns the following error codes: |
| 265 | |
| 266 | * `PERMISSION_DENIED` if the requesting user is not permitted to delete |
| 267 | students of this course or for access errors. |
| 268 | * `NOT_FOUND` if no student of this course has the requested ID or if the |
| 269 | course does not exist. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 270 | |
| 271 | Args: |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 272 | courseId: string, Identifier of the course. |
| 273 | This identifier can be either the Classroom-assigned identifier or an |
| 274 | alias. (required) |
| 275 | userId: string, Identifier of the student to delete. The identifier can be one of the |
| 276 | following: |
| 277 | |
| 278 | * the numeric identifier for the user |
| 279 | * the email address of the user |
| 280 | * the string literal `"me"`, indicating the requesting user (required) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 281 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 282 | Allowed values |
| 283 | 1 - v1 error format |
| 284 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 285 | |
| 286 | Returns: |
| 287 | An object of the form: |
| 288 | |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 289 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 290 | # empty messages in your APIs. A typical example is to use it as the request |
| 291 | # or the response type of an API method. For instance: |
| 292 | # |
| 293 | # service Foo { |
| 294 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 295 | # } |
| 296 | # |
| 297 | # The JSON representation for `Empty` is empty JSON object `{}`. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 298 | }</pre> |
| 299 | </div> |
| 300 | |
| 301 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 302 | <code class="details" id="get">get(courseId, userId, x__xgafv=None)</code> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 303 | <pre>Returns a student of a course. |
| 304 | |
| 305 | This method returns the following error codes: |
| 306 | |
| 307 | * `PERMISSION_DENIED` if the requesting user is not permitted to view |
| 308 | students of this course or for access errors. |
| 309 | * `NOT_FOUND` if no student of this course has the requested ID or if the |
| 310 | course does not exist. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 311 | |
| 312 | Args: |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 313 | courseId: string, Identifier of the course. |
| 314 | This identifier can be either the Classroom-assigned identifier or an |
| 315 | alias. (required) |
| 316 | userId: string, Identifier of the student to return. The identifier can be one of the |
| 317 | following: |
| 318 | |
| 319 | * the numeric identifier for the user |
| 320 | * the email address of the user |
| 321 | * the string literal `"me"`, indicating the requesting user (required) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 322 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 323 | Allowed values |
| 324 | 1 - v1 error format |
| 325 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 326 | |
| 327 | Returns: |
| 328 | An object of the form: |
| 329 | |
| 330 | { # Student in a course. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 331 | "profile": { # Global information for a user. # Global user information for the student. |
| 332 | # |
| 333 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 334 | "name": { # Details of the user's name. # Name of the user. |
| 335 | # |
| 336 | # Read-only. |
| 337 | "fullName": "A String", # The user's full name formed by concatenating the first and last name |
| 338 | # values. |
| 339 | # |
| 340 | # Read-only. |
| 341 | "givenName": "A String", # The user's first name. |
| 342 | # |
| 343 | # Read-only. |
| 344 | "familyName": "A String", # The user's last name. |
| 345 | # |
| 346 | # Read-only. |
| 347 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 348 | "photoUrl": "A String", # URL of user's profile photo. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 349 | # |
| 350 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 351 | "emailAddress": "A String", # Email address of the user. |
| 352 | # |
| 353 | # Read-only. |
| 354 | "verifiedTeacher": True or False, # Represents whether a G Suite for Education user's domain administrator has |
| 355 | # explicitly verified them as being a teacher. If the user is not a member of |
| 356 | # a G Suite for Education domain, than this field will always be false. |
| 357 | # |
| 358 | # Read-only |
| 359 | "id": "A String", # Identifier of the user. |
| 360 | # |
| 361 | # Read-only. |
| 362 | "permissions": [ # Global permissions of the user. |
| 363 | # |
| 364 | # Read-only. |
| 365 | { # Global user permission description. |
| 366 | "permission": "A String", # Permission value. |
| 367 | }, |
| 368 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 369 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 370 | "courseId": "A String", # Identifier of the course. |
| 371 | # |
| 372 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 373 | "studentWorkFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder for this student's work in this course. |
| 374 | # Only visible to the student and domain administrators. |
| 375 | # |
| 376 | # Read-only. |
| 377 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 378 | # |
| 379 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 380 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 381 | "title": "A String", # Title of the Drive folder. |
| 382 | # |
| 383 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 384 | }, |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 385 | "userId": "A String", # Identifier of the user. |
| 386 | # |
| 387 | # When specified as a parameter of a request, this identifier can be one of |
| 388 | # the following: |
| 389 | # |
| 390 | # * the numeric identifier for the user |
| 391 | # * the email address of the user |
| 392 | # * the string literal `"me"`, indicating the requesting user |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 393 | }</pre> |
| 394 | </div> |
| 395 | |
| 396 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 397 | <code class="details" id="list">list(courseId, pageSize=None, pageToken=None, x__xgafv=None)</code> |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 398 | <pre>Returns a list of students of this course that the requester |
| 399 | is permitted to view. |
| 400 | |
| 401 | This method returns the following error codes: |
| 402 | |
| 403 | * `NOT_FOUND` if the course does not exist. |
| 404 | * `PERMISSION_DENIED` for access errors. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 405 | |
| 406 | Args: |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 407 | courseId: string, Identifier of the course. |
| 408 | This identifier can be either the Classroom-assigned identifier or an |
| 409 | alias. (required) |
| 410 | pageSize: integer, Maximum number of items to return. Zero means no maximum. |
| 411 | |
| 412 | The server may return fewer than the specified number of results. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 413 | pageToken: string, nextPageToken |
| 414 | value returned from a previous |
| 415 | list call, indicating that |
| 416 | the subsequent page of results should be returned. |
| 417 | |
| 418 | The list request must be |
| 419 | otherwise identical to the one that resulted in this token. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 420 | x__xgafv: string, V1 error format. |
| 421 | Allowed values |
| 422 | 1 - v1 error format |
| 423 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 424 | |
| 425 | Returns: |
| 426 | An object of the form: |
| 427 | |
| 428 | { # Response when listing students. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 429 | "students": [ # Students who match the list request. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 430 | { # Student in a course. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 431 | "profile": { # Global information for a user. # Global user information for the student. |
| 432 | # |
| 433 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 434 | "name": { # Details of the user's name. # Name of the user. |
| 435 | # |
| 436 | # Read-only. |
| 437 | "fullName": "A String", # The user's full name formed by concatenating the first and last name |
| 438 | # values. |
| 439 | # |
| 440 | # Read-only. |
| 441 | "givenName": "A String", # The user's first name. |
| 442 | # |
| 443 | # Read-only. |
| 444 | "familyName": "A String", # The user's last name. |
| 445 | # |
| 446 | # Read-only. |
| 447 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 448 | "photoUrl": "A String", # URL of user's profile photo. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 449 | # |
| 450 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 451 | "emailAddress": "A String", # Email address of the user. |
| 452 | # |
| 453 | # Read-only. |
| 454 | "verifiedTeacher": True or False, # Represents whether a G Suite for Education user's domain administrator has |
| 455 | # explicitly verified them as being a teacher. If the user is not a member of |
| 456 | # a G Suite for Education domain, than this field will always be false. |
| 457 | # |
| 458 | # Read-only |
| 459 | "id": "A String", # Identifier of the user. |
| 460 | # |
| 461 | # Read-only. |
| 462 | "permissions": [ # Global permissions of the user. |
| 463 | # |
| 464 | # Read-only. |
| 465 | { # Global user permission description. |
| 466 | "permission": "A String", # Permission value. |
| 467 | }, |
| 468 | ], |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 469 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 470 | "courseId": "A String", # Identifier of the course. |
| 471 | # |
| 472 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 473 | "studentWorkFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder for this student's work in this course. |
| 474 | # Only visible to the student and domain administrators. |
| 475 | # |
| 476 | # Read-only. |
| 477 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 478 | # |
| 479 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 480 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 481 | "title": "A String", # Title of the Drive folder. |
| 482 | # |
| 483 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 484 | }, |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 485 | "userId": "A String", # Identifier of the user. |
| 486 | # |
| 487 | # When specified as a parameter of a request, this identifier can be one of |
| 488 | # the following: |
| 489 | # |
| 490 | # * the numeric identifier for the user |
| 491 | # * the email address of the user |
| 492 | # * the string literal `"me"`, indicating the requesting user |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 493 | }, |
| 494 | ], |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 495 | "nextPageToken": "A String", # Token identifying the next page of results to return. If empty, no further |
| 496 | # results are available. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 497 | }</pre> |
| 498 | </div> |
| 499 | |
| 500 | <div class="method"> |
| 501 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 502 | <pre>Retrieves the next page of results. |
| 503 | |
| 504 | Args: |
| 505 | previous_request: The request for the previous page. (required) |
| 506 | previous_response: The response from the request for the previous page. (required) |
| 507 | |
| 508 | Returns: |
| 509 | A request object that you can call 'execute()' on to request the next |
| 510 | page. Returns None if there are no more items in the collection. |
| 511 | </pre> |
| 512 | </div> |
| 513 | |
| 514 | </body></html> |