OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.classroom.v1; | 3 library googleapis.classroom.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 body: _body, | 237 body: _body, |
238 queryParams: _queryParams, | 238 queryParams: _queryParams, |
239 uploadOptions: _uploadOptions, | 239 uploadOptions: _uploadOptions, |
240 uploadMedia: _uploadMedia, | 240 uploadMedia: _uploadMedia, |
241 downloadOptions: _downloadOptions); | 241 downloadOptions: _downloadOptions); |
242 return _response.then((data) => new Course.fromJson(data)); | 242 return _response.then((data) => new Course.fromJson(data)); |
243 } | 243 } |
244 | 244 |
245 /** | 245 /** |
246 * Returns a list of courses that the requesting user is permitted to view, | 246 * Returns a list of courses that the requesting user is permitted to view, |
247 * restricted to those that match the request. | 247 * restricted to those that match the request. Returned courses are ordered by |
| 248 * creation time, with the most recently created coming first. |
248 * | 249 * |
249 * This method returns the following error codes: | 250 * This method returns the following error codes: |
250 * | 251 * |
251 * * `PERMISSION_DENIED` for access errors. | 252 * * `PERMISSION_DENIED` for access errors. |
252 * * `INVALID_ARGUMENT` if the query argument is malformed. | 253 * * `INVALID_ARGUMENT` if the query argument is malformed. |
253 * * `NOT_FOUND` if any users specified in the query arguments do not exist. | 254 * * `NOT_FOUND` if any users specified in the query arguments do not exist. |
254 * | 255 * |
255 * Request parameters: | 256 * Request parameters: |
256 * | 257 * |
257 * [pageSize] - Maximum number of items to return. Zero or unspecified | |
258 * indicates that the | |
259 * server may assign a maximum. | |
260 * | |
261 * The server may return fewer than the specified number of results. | |
262 * | |
263 * [courseStates] - Restricts returned courses to those in one of the | 258 * [courseStates] - Restricts returned courses to those in one of the |
264 * specified states | 259 * specified states |
265 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. | 260 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. |
266 * | 261 * |
267 * [teacherId] - Restricts returned courses to those having a teacher with the | 262 * [teacherId] - Restricts returned courses to those having a teacher with the |
268 * specified | 263 * specified |
269 * identifier. The identifier can be one of the following: | 264 * identifier. The identifier can be one of the following: |
270 * | 265 * |
271 * * the numeric identifier for the user | 266 * * the numeric identifier for the user |
272 * * the email address of the user | 267 * * the email address of the user |
273 * * the string literal `"me"`, indicating the requesting user | 268 * * the string literal `"me"`, indicating the requesting user |
274 * | 269 * |
275 * [studentId] - Restricts returned courses to those having a student with the | 270 * [studentId] - Restricts returned courses to those having a student with the |
276 * specified | 271 * specified |
277 * identifier. The identifier can be one of the following: | 272 * identifier. The identifier can be one of the following: |
278 * | 273 * |
279 * * the numeric identifier for the user | 274 * * the numeric identifier for the user |
280 * * the email address of the user | 275 * * the email address of the user |
281 * * the string literal `"me"`, indicating the requesting user | 276 * * the string literal `"me"`, indicating the requesting user |
282 * | 277 * |
283 * [pageToken] - nextPageToken | 278 * [pageToken] - nextPageToken |
284 * value returned from a previous | 279 * value returned from a previous |
285 * list call, | 280 * list call, |
286 * indicating that the subsequent page of results should be returned. | 281 * indicating that the subsequent page of results should be returned. |
287 * | 282 * |
288 * The list request must be | 283 * The list request must be |
289 * otherwise identical to the one that resulted in this token. | 284 * otherwise identical to the one that resulted in this token. |
290 * | 285 * |
| 286 * [pageSize] - Maximum number of items to return. Zero or unspecified |
| 287 * indicates that the |
| 288 * server may assign a maximum. |
| 289 * |
| 290 * The server may return fewer than the specified number of results. |
| 291 * |
291 * Completes with a [ListCoursesResponse]. | 292 * Completes with a [ListCoursesResponse]. |
292 * | 293 * |
293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
294 * error. | 295 * error. |
295 * | 296 * |
296 * If the used [http.Client] completes with an error when making a REST call, | 297 * If the used [http.Client] completes with an error when making a REST call, |
297 * this method will complete with the same error. | 298 * this method will complete with the same error. |
298 */ | 299 */ |
299 async.Future<ListCoursesResponse> list({core.int pageSize, core.List<core.Stri
ng> courseStates, core.String teacherId, core.String studentId, core.String page
Token}) { | 300 async.Future<ListCoursesResponse> list({core.List<core.String> courseStates, c
ore.String teacherId, core.String studentId, core.String pageToken, core.int pag
eSize}) { |
300 var _url = null; | 301 var _url = null; |
301 var _queryParams = new core.Map(); | 302 var _queryParams = new core.Map(); |
302 var _uploadMedia = null; | 303 var _uploadMedia = null; |
303 var _uploadOptions = null; | 304 var _uploadOptions = null; |
304 var _downloadOptions = commons.DownloadOptions.Metadata; | 305 var _downloadOptions = commons.DownloadOptions.Metadata; |
305 var _body = null; | 306 var _body = null; |
306 | 307 |
307 if (pageSize != null) { | |
308 _queryParams["pageSize"] = ["${pageSize}"]; | |
309 } | |
310 if (courseStates != null) { | 308 if (courseStates != null) { |
311 _queryParams["courseStates"] = courseStates; | 309 _queryParams["courseStates"] = courseStates; |
312 } | 310 } |
313 if (teacherId != null) { | 311 if (teacherId != null) { |
314 _queryParams["teacherId"] = [teacherId]; | 312 _queryParams["teacherId"] = [teacherId]; |
315 } | 313 } |
316 if (studentId != null) { | 314 if (studentId != null) { |
317 _queryParams["studentId"] = [studentId]; | 315 _queryParams["studentId"] = [studentId]; |
318 } | 316 } |
319 if (pageToken != null) { | 317 if (pageToken != null) { |
320 _queryParams["pageToken"] = [pageToken]; | 318 _queryParams["pageToken"] = [pageToken]; |
321 } | 319 } |
| 320 if (pageSize != null) { |
| 321 _queryParams["pageSize"] = ["${pageSize}"]; |
| 322 } |
322 | 323 |
323 _url = 'v1/courses'; | 324 _url = 'v1/courses'; |
324 | 325 |
325 var _response = _requester.request(_url, | 326 var _response = _requester.request(_url, |
326 "GET", | 327 "GET", |
327 body: _body, | 328 body: _body, |
328 queryParams: _queryParams, | 329 queryParams: _queryParams, |
329 uploadOptions: _uploadOptions, | 330 uploadOptions: _uploadOptions, |
330 uploadMedia: _uploadMedia, | 331 uploadMedia: _uploadMedia, |
331 downloadOptions: _downloadOptions); | 332 downloadOptions: _downloadOptions); |
(...skipping 24 matching lines...) Expand all Loading... |
356 * [updateMask] - Mask that identifies which fields on the course to update. | 357 * [updateMask] - Mask that identifies which fields on the course to update. |
357 * This field is required to do an update. The update will fail if invalid | 358 * This field is required to do an update. The update will fail if invalid |
358 * fields are specified. The following fields are valid: | 359 * fields are specified. The following fields are valid: |
359 * | 360 * |
360 * * `name` | 361 * * `name` |
361 * * `section` | 362 * * `section` |
362 * * `descriptionHeading` | 363 * * `descriptionHeading` |
363 * * `description` | 364 * * `description` |
364 * * `room` | 365 * * `room` |
365 * * `courseState` | 366 * * `courseState` |
| 367 * * `ownerId` |
| 368 * |
| 369 * Note: patches to ownerId are treated as being effective immediately, but in |
| 370 * practice it may take some time for the ownership transfer of all affected |
| 371 * resources to complete. |
366 * | 372 * |
367 * When set in a query parameter, this field should be specified as | 373 * When set in a query parameter, this field should be specified as |
368 * | 374 * |
369 * `updateMask=<field1>,<field2>,...` | 375 * `updateMask=<field1>,<field2>,...` |
370 * | 376 * |
371 * Completes with a [Course]. | 377 * Completes with a [Course]. |
372 * | 378 * |
373 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 379 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
374 * error. | 380 * error. |
375 * | 381 * |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 * the requested course or for access errors. | 853 * the requested course or for access errors. |
848 * * `INVALID_ARGUMENT` if the request is malformed. | 854 * * `INVALID_ARGUMENT` if the request is malformed. |
849 * * `NOT_FOUND` if the requested course does not exist. | 855 * * `NOT_FOUND` if the requested course does not exist. |
850 * | 856 * |
851 * Request parameters: | 857 * Request parameters: |
852 * | 858 * |
853 * [courseId] - Identifier of the course. | 859 * [courseId] - Identifier of the course. |
854 * This identifier can be either the Classroom-assigned identifier or an | 860 * This identifier can be either the Classroom-assigned identifier or an |
855 * alias. | 861 * alias. |
856 * | 862 * |
857 * [pageSize] - Maximum number of items to return. Zero or unspecified | |
858 * indicates that the | |
859 * server may assign a maximum. | |
860 * | |
861 * The server may return fewer than the specified number of results. | |
862 * | |
863 * [courseWorkStates] - Restriction on the work status to return. Only | |
864 * courseWork that matches | |
865 * is returned. If unspecified, items with a work status of `PUBLISHED` | |
866 * is returned. | |
867 * | |
868 * [pageToken] - nextPageToken | 863 * [pageToken] - nextPageToken |
869 * value returned from a previous | 864 * value returned from a previous |
870 * list call, | 865 * list call, |
871 * indicating that the subsequent page of results should be returned. | 866 * indicating that the subsequent page of results should be returned. |
872 * | 867 * |
873 * The list request | 868 * The list request |
874 * must be otherwise identical to the one that resulted in this token. | 869 * must be otherwise identical to the one that resulted in this token. |
875 * | 870 * |
876 * [orderBy] - Optional sort ordering for results. A comma-separated list of | 871 * [orderBy] - Optional sort ordering for results. A comma-separated list of |
877 * fields with | 872 * fields with |
878 * an optional sort direction keyword. Supported fields are `updateTime` | 873 * an optional sort direction keyword. Supported fields are `updateTime` |
879 * and `dueDate`. Supported direction keywords are `asc` and `desc`. | 874 * and `dueDate`. Supported direction keywords are `asc` and `desc`. |
880 * If not specified, `updateTime desc` is the default behavior. | 875 * If not specified, `updateTime desc` is the default behavior. |
881 * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` | 876 * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` |
882 * | 877 * |
| 878 * [pageSize] - Maximum number of items to return. Zero or unspecified |
| 879 * indicates that the |
| 880 * server may assign a maximum. |
| 881 * |
| 882 * The server may return fewer than the specified number of results. |
| 883 * |
| 884 * [courseWorkStates] - Restriction on the work status to return. Only |
| 885 * courseWork that matches |
| 886 * is returned. If unspecified, items with a work status of `PUBLISHED` |
| 887 * is returned. |
| 888 * |
883 * Completes with a [ListCourseWorkResponse]. | 889 * Completes with a [ListCourseWorkResponse]. |
884 * | 890 * |
885 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 891 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
886 * error. | 892 * error. |
887 * | 893 * |
888 * If the used [http.Client] completes with an error when making a REST call, | 894 * If the used [http.Client] completes with an error when making a REST call, |
889 * this method will complete with the same error. | 895 * this method will complete with the same error. |
890 */ | 896 */ |
891 async.Future<ListCourseWorkResponse> list(core.String courseId, {core.int page
Size, core.List<core.String> courseWorkStates, core.String pageToken, core.Strin
g orderBy}) { | 897 async.Future<ListCourseWorkResponse> list(core.String courseId, {core.String p
ageToken, core.String orderBy, core.int pageSize, core.List<core.String> courseW
orkStates}) { |
892 var _url = null; | 898 var _url = null; |
893 var _queryParams = new core.Map(); | 899 var _queryParams = new core.Map(); |
894 var _uploadMedia = null; | 900 var _uploadMedia = null; |
895 var _uploadOptions = null; | 901 var _uploadOptions = null; |
896 var _downloadOptions = commons.DownloadOptions.Metadata; | 902 var _downloadOptions = commons.DownloadOptions.Metadata; |
897 var _body = null; | 903 var _body = null; |
898 | 904 |
899 if (courseId == null) { | 905 if (courseId == null) { |
900 throw new core.ArgumentError("Parameter courseId is required."); | 906 throw new core.ArgumentError("Parameter courseId is required."); |
901 } | 907 } |
| 908 if (pageToken != null) { |
| 909 _queryParams["pageToken"] = [pageToken]; |
| 910 } |
| 911 if (orderBy != null) { |
| 912 _queryParams["orderBy"] = [orderBy]; |
| 913 } |
902 if (pageSize != null) { | 914 if (pageSize != null) { |
903 _queryParams["pageSize"] = ["${pageSize}"]; | 915 _queryParams["pageSize"] = ["${pageSize}"]; |
904 } | 916 } |
905 if (courseWorkStates != null) { | 917 if (courseWorkStates != null) { |
906 _queryParams["courseWorkStates"] = courseWorkStates; | 918 _queryParams["courseWorkStates"] = courseWorkStates; |
907 } | 919 } |
908 if (pageToken != null) { | |
909 _queryParams["pageToken"] = [pageToken]; | |
910 } | |
911 if (orderBy != null) { | |
912 _queryParams["orderBy"] = [orderBy]; | |
913 } | |
914 | 920 |
915 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course
Work'; | 921 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course
Work'; |
916 | 922 |
917 var _response = _requester.request(_url, | 923 var _response = _requester.request(_url, |
918 "GET", | 924 "GET", |
919 body: _body, | 925 body: _body, |
920 queryParams: _queryParams, | 926 queryParams: _queryParams, |
921 uploadOptions: _uploadOptions, | 927 uploadOptions: _uploadOptions, |
922 uploadMedia: _uploadMedia, | 928 uploadMedia: _uploadMedia, |
923 downloadOptions: _downloadOptions); | 929 downloadOptions: _downloadOptions); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 * requested course or course work, or for access errors. | 1104 * requested course or course work, or for access errors. |
1099 * * `INVALID_ARGUMENT` if the request is malformed. | 1105 * * `INVALID_ARGUMENT` if the request is malformed. |
1100 * * `NOT_FOUND` if the requested course does not exist. | 1106 * * `NOT_FOUND` if the requested course does not exist. |
1101 * | 1107 * |
1102 * Request parameters: | 1108 * Request parameters: |
1103 * | 1109 * |
1104 * [courseId] - Identifier of the course. | 1110 * [courseId] - Identifier of the course. |
1105 * This identifier can be either the Classroom-assigned identifier or an | 1111 * This identifier can be either the Classroom-assigned identifier or an |
1106 * alias. | 1112 * alias. |
1107 * | 1113 * |
1108 * [courseWorkId] - Identifer of the student work to request. | 1114 * [courseWorkId] - Identifier of the student work to request. |
1109 * This may be set to the string literal `"-"` to request student work for | 1115 * This may be set to the string literal `"-"` to request student work for |
1110 * all course work in the specified course. | 1116 * all course work in the specified course. |
1111 * | 1117 * |
1112 * [late] - Requested lateness value. If specified, returned student | 1118 * [late] - Requested lateness value. If specified, returned student |
1113 * submissions are | 1119 * submissions are |
1114 * restricted by the requested value. | 1120 * restricted by the requested value. |
1115 * If unspecified, submissions are returned regardless of `late` value. | 1121 * If unspecified, submissions are returned regardless of `late` value. |
1116 * Possible string values are: | 1122 * Possible string values are: |
1117 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. | 1123 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. |
1118 * - "LATE_ONLY" : A LATE_ONLY. | 1124 * - "LATE_ONLY" : A LATE_ONLY. |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 * | 1789 * |
1784 * * `NOT_FOUND` if the course does not exist. | 1790 * * `NOT_FOUND` if the course does not exist. |
1785 * * `PERMISSION_DENIED` for access errors. | 1791 * * `PERMISSION_DENIED` for access errors. |
1786 * | 1792 * |
1787 * Request parameters: | 1793 * Request parameters: |
1788 * | 1794 * |
1789 * [courseId] - Identifier of the course. | 1795 * [courseId] - Identifier of the course. |
1790 * This identifier can be either the Classroom-assigned identifier or an | 1796 * This identifier can be either the Classroom-assigned identifier or an |
1791 * alias. | 1797 * alias. |
1792 * | 1798 * |
1793 * [pageSize] - Maximum number of items to return. Zero means no maximum. | |
1794 * | |
1795 * The server may return fewer than the specified number of results. | |
1796 * | |
1797 * [pageToken] - nextPageToken | 1799 * [pageToken] - nextPageToken |
1798 * value returned from a previous | 1800 * value returned from a previous |
1799 * list call, indicating that | 1801 * list call, indicating that |
1800 * the subsequent page of results should be returned. | 1802 * the subsequent page of results should be returned. |
1801 * | 1803 * |
1802 * The list request must be | 1804 * The list request must be |
1803 * otherwise identical to the one that resulted in this token. | 1805 * otherwise identical to the one that resulted in this token. |
1804 * | 1806 * |
| 1807 * [pageSize] - Maximum number of items to return. Zero means no maximum. |
| 1808 * |
| 1809 * The server may return fewer than the specified number of results. |
| 1810 * |
1805 * Completes with a [ListStudentsResponse]. | 1811 * Completes with a [ListStudentsResponse]. |
1806 * | 1812 * |
1807 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1813 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1808 * error. | 1814 * error. |
1809 * | 1815 * |
1810 * If the used [http.Client] completes with an error when making a REST call, | 1816 * If the used [http.Client] completes with an error when making a REST call, |
1811 * this method will complete with the same error. | 1817 * this method will complete with the same error. |
1812 */ | 1818 */ |
1813 async.Future<ListStudentsResponse> list(core.String courseId, {core.int pageSi
ze, core.String pageToken}) { | 1819 async.Future<ListStudentsResponse> list(core.String courseId, {core.String pag
eToken, core.int pageSize}) { |
1814 var _url = null; | 1820 var _url = null; |
1815 var _queryParams = new core.Map(); | 1821 var _queryParams = new core.Map(); |
1816 var _uploadMedia = null; | 1822 var _uploadMedia = null; |
1817 var _uploadOptions = null; | 1823 var _uploadOptions = null; |
1818 var _downloadOptions = commons.DownloadOptions.Metadata; | 1824 var _downloadOptions = commons.DownloadOptions.Metadata; |
1819 var _body = null; | 1825 var _body = null; |
1820 | 1826 |
1821 if (courseId == null) { | 1827 if (courseId == null) { |
1822 throw new core.ArgumentError("Parameter courseId is required."); | 1828 throw new core.ArgumentError("Parameter courseId is required."); |
1823 } | 1829 } |
| 1830 if (pageToken != null) { |
| 1831 _queryParams["pageToken"] = [pageToken]; |
| 1832 } |
1824 if (pageSize != null) { | 1833 if (pageSize != null) { |
1825 _queryParams["pageSize"] = ["${pageSize}"]; | 1834 _queryParams["pageSize"] = ["${pageSize}"]; |
1826 } | 1835 } |
1827 if (pageToken != null) { | |
1828 _queryParams["pageToken"] = [pageToken]; | |
1829 } | |
1830 | 1836 |
1831 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/studen
ts'; | 1837 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/studen
ts'; |
1832 | 1838 |
1833 var _response = _requester.request(_url, | 1839 var _response = _requester.request(_url, |
1834 "GET", | 1840 "GET", |
1835 body: _body, | 1841 body: _body, |
1836 queryParams: _queryParams, | 1842 queryParams: _queryParams, |
1837 uploadOptions: _uploadOptions, | 1843 uploadOptions: _uploadOptions, |
1838 uploadMedia: _uploadMedia, | 1844 uploadMedia: _uploadMedia, |
1839 downloadOptions: _downloadOptions); | 1845 downloadOptions: _downloadOptions); |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 * returned. | 2607 * returned. |
2602 * The identifier can be one of the following: | 2608 * The identifier can be one of the following: |
2603 * | 2609 * |
2604 * * the numeric identifier for the user | 2610 * * the numeric identifier for the user |
2605 * * the email address of the user | 2611 * * the email address of the user |
2606 * * the string literal `"me"`, indicating the requesting user | 2612 * * the string literal `"me"`, indicating the requesting user |
2607 * * the string literal `"-"`, indicating that results should be returned for | 2613 * * the string literal `"-"`, indicating that results should be returned for |
2608 * all students that the requesting user is permitted to view guardian | 2614 * all students that the requesting user is permitted to view guardian |
2609 * invitations. | 2615 * invitations. |
2610 * | 2616 * |
2611 * [pageToken] - nextPageToken | |
2612 * value returned from a previous | |
2613 * list call, | |
2614 * indicating that the subsequent page of results should be returned. | |
2615 * | |
2616 * The list request | |
2617 * must be otherwise identical to the one that resulted in this token. | |
2618 * | |
2619 * [pageSize] - Maximum number of items to return. Zero or unspecified | 2617 * [pageSize] - Maximum number of items to return. Zero or unspecified |
2620 * indicates that the | 2618 * indicates that the |
2621 * server may assign a maximum. | 2619 * server may assign a maximum. |
2622 * | 2620 * |
2623 * The server may return fewer than the specified number of results. | 2621 * The server may return fewer than the specified number of results. |
2624 * | 2622 * |
2625 * [states] - If specified, only results with the specified `state` values | 2623 * [states] - If specified, only results with the specified `state` values |
2626 * will be | 2624 * will be |
2627 * returned. Otherwise, results with a `state` of `PENDING` will be returned. | 2625 * returned. Otherwise, results with a `state` of `PENDING` will be returned. |
2628 * | 2626 * |
2629 * [invitedEmailAddress] - If specified, only results with the specified | 2627 * [invitedEmailAddress] - If specified, only results with the specified |
2630 * `invited_email_address` | 2628 * `invited_email_address` |
2631 * will be returned. | 2629 * will be returned. |
2632 * | 2630 * |
| 2631 * [pageToken] - nextPageToken |
| 2632 * value returned from a previous |
| 2633 * list call, |
| 2634 * indicating that the subsequent page of results should be returned. |
| 2635 * |
| 2636 * The list request |
| 2637 * must be otherwise identical to the one that resulted in this token. |
| 2638 * |
2633 * Completes with a [ListGuardianInvitationsResponse]. | 2639 * Completes with a [ListGuardianInvitationsResponse]. |
2634 * | 2640 * |
2635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2636 * error. | 2642 * error. |
2637 * | 2643 * |
2638 * If the used [http.Client] completes with an error when making a REST call, | 2644 * If the used [http.Client] completes with an error when making a REST call, |
2639 * this method will complete with the same error. | 2645 * this method will complete with the same error. |
2640 */ | 2646 */ |
2641 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor
e.String pageToken, core.int pageSize, core.List<core.String> states, core.Strin
g invitedEmailAddress}) { | 2647 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor
e.int pageSize, core.List<core.String> states, core.String invitedEmailAddress,
core.String pageToken}) { |
2642 var _url = null; | 2648 var _url = null; |
2643 var _queryParams = new core.Map(); | 2649 var _queryParams = new core.Map(); |
2644 var _uploadMedia = null; | 2650 var _uploadMedia = null; |
2645 var _uploadOptions = null; | 2651 var _uploadOptions = null; |
2646 var _downloadOptions = commons.DownloadOptions.Metadata; | 2652 var _downloadOptions = commons.DownloadOptions.Metadata; |
2647 var _body = null; | 2653 var _body = null; |
2648 | 2654 |
2649 if (studentId == null) { | 2655 if (studentId == null) { |
2650 throw new core.ArgumentError("Parameter studentId is required."); | 2656 throw new core.ArgumentError("Parameter studentId is required."); |
2651 } | 2657 } |
2652 if (pageToken != null) { | |
2653 _queryParams["pageToken"] = [pageToken]; | |
2654 } | |
2655 if (pageSize != null) { | 2658 if (pageSize != null) { |
2656 _queryParams["pageSize"] = ["${pageSize}"]; | 2659 _queryParams["pageSize"] = ["${pageSize}"]; |
2657 } | 2660 } |
2658 if (states != null) { | 2661 if (states != null) { |
2659 _queryParams["states"] = states; | 2662 _queryParams["states"] = states; |
2660 } | 2663 } |
2661 if (invitedEmailAddress != null) { | 2664 if (invitedEmailAddress != null) { |
2662 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; | 2665 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; |
2663 } | 2666 } |
| 2667 if (pageToken != null) { |
| 2668 _queryParams["pageToken"] = [pageToken]; |
| 2669 } |
2664 | 2670 |
2665 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/
guardianInvitations'; | 2671 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/
guardianInvitations'; |
2666 | 2672 |
2667 var _response = _requester.request(_url, | 2673 var _response = _requester.request(_url, |
2668 "GET", | 2674 "GET", |
2669 body: _body, | 2675 body: _body, |
2670 queryParams: _queryParams, | 2676 queryParams: _queryParams, |
2671 uploadOptions: _uploadOptions, | 2677 uploadOptions: _uploadOptions, |
2672 uploadMedia: _uploadMedia, | 2678 uploadMedia: _uploadMedia, |
2673 downloadOptions: _downloadOptions); | 2679 downloadOptions: _downloadOptions); |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3214 * | 3220 * |
3215 * When specified as a parameter of a | 3221 * When specified as a parameter of a |
3216 * create course request, this | 3222 * create course request, this |
3217 * field is required. | 3223 * field is required. |
3218 * The identifier can be one of the following: | 3224 * The identifier can be one of the following: |
3219 * | 3225 * |
3220 * * the numeric identifier for the user | 3226 * * the numeric identifier for the user |
3221 * * the email address of the user | 3227 * * the email address of the user |
3222 * * the string literal `"me"`, indicating the requesting user | 3228 * * the string literal `"me"`, indicating the requesting user |
3223 * | 3229 * |
3224 * This must be set in a create request. Specifying this field in a course | 3230 * This must be set in a create request. Admins can also specify this field |
3225 * update mask results in an `INVALID_ARGUMENT` error. | 3231 * in a patch course request to |
| 3232 * transfer ownership. In other contexts, it is read-only. |
3226 */ | 3233 */ |
3227 core.String ownerId; | 3234 core.String ownerId; |
3228 /** | 3235 /** |
3229 * Optional room location. | 3236 * Optional room location. |
3230 * For example, "301". | 3237 * For example, "301". |
3231 * If set, this field must be a valid UTF-8 string and no longer than 650 | 3238 * If set, this field must be a valid UTF-8 string and no longer than 650 |
3232 * characters. | 3239 * characters. |
3233 */ | 3240 */ |
3234 core.String room; | 3241 core.String room; |
3235 /** | 3242 /** |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 | 4035 |
4029 core.Map<core.String, core.Object> toJson() { | 4036 core.Map<core.String, core.Object> toJson() { |
4030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4037 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4031 if (permission != null) { | 4038 if (permission != null) { |
4032 _json["permission"] = permission; | 4039 _json["permission"] = permission; |
4033 } | 4040 } |
4034 return _json; | 4041 return _json; |
4035 } | 4042 } |
4036 } | 4043 } |
4037 | 4044 |
| 4045 /** The history of each grade on this submission. */ |
| 4046 class GradeHistory { |
| 4047 /** The teacher who made the grade change. */ |
| 4048 core.String actorUserId; |
| 4049 /** |
| 4050 * The type of grade change at this time in the submission grade history. |
| 4051 * Possible string values are: |
| 4052 * - "UNKNOWN_GRADE_CHANGE_TYPE" : No grade change type specified. This should |
| 4053 * never be returned. |
| 4054 * - "DRAFT_GRADE_POINTS_EARNED_CHANGE" : A change in the numerator of the |
| 4055 * draft grade. |
| 4056 * - "ASSIGNED_GRADE_POINTS_EARNED_CHANGE" : A change in the numerator of the |
| 4057 * assigned grade. |
| 4058 * - "MAX_POINTS_CHANGE" : A change in the denominator of the grade. |
| 4059 */ |
| 4060 core.String gradeChangeType; |
| 4061 /** When the grade of the submission was changed. */ |
| 4062 core.String gradeTimestamp; |
| 4063 /** |
| 4064 * The denominator of the grade at this time in the submission grade |
| 4065 * history. |
| 4066 */ |
| 4067 core.double maxPoints; |
| 4068 /** |
| 4069 * The numerator of the grade at this time in the submission grade history. |
| 4070 */ |
| 4071 core.double pointsEarned; |
| 4072 |
| 4073 GradeHistory(); |
| 4074 |
| 4075 GradeHistory.fromJson(core.Map _json) { |
| 4076 if (_json.containsKey("actorUserId")) { |
| 4077 actorUserId = _json["actorUserId"]; |
| 4078 } |
| 4079 if (_json.containsKey("gradeChangeType")) { |
| 4080 gradeChangeType = _json["gradeChangeType"]; |
| 4081 } |
| 4082 if (_json.containsKey("gradeTimestamp")) { |
| 4083 gradeTimestamp = _json["gradeTimestamp"]; |
| 4084 } |
| 4085 if (_json.containsKey("maxPoints")) { |
| 4086 maxPoints = _json["maxPoints"]; |
| 4087 } |
| 4088 if (_json.containsKey("pointsEarned")) { |
| 4089 pointsEarned = _json["pointsEarned"]; |
| 4090 } |
| 4091 } |
| 4092 |
| 4093 core.Map<core.String, core.Object> toJson() { |
| 4094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4095 if (actorUserId != null) { |
| 4096 _json["actorUserId"] = actorUserId; |
| 4097 } |
| 4098 if (gradeChangeType != null) { |
| 4099 _json["gradeChangeType"] = gradeChangeType; |
| 4100 } |
| 4101 if (gradeTimestamp != null) { |
| 4102 _json["gradeTimestamp"] = gradeTimestamp; |
| 4103 } |
| 4104 if (maxPoints != null) { |
| 4105 _json["maxPoints"] = maxPoints; |
| 4106 } |
| 4107 if (pointsEarned != null) { |
| 4108 _json["pointsEarned"] = pointsEarned; |
| 4109 } |
| 4110 return _json; |
| 4111 } |
| 4112 } |
| 4113 |
4038 /** | 4114 /** |
4039 * Association between a student and a guardian of that student. The guardian | 4115 * Association between a student and a guardian of that student. The guardian |
4040 * may receive information about the student's course work. | 4116 * may receive information about the student's course work. |
4041 */ | 4117 */ |
4042 class Guardian { | 4118 class Guardian { |
4043 /** Identifier for the guardian. */ | 4119 /** Identifier for the guardian. */ |
4044 core.String guardianId; | 4120 core.String guardianId; |
4045 /** User profile for the guardian. */ | 4121 /** User profile for the guardian. */ |
4046 UserProfile guardianProfile; | 4122 UserProfile guardianProfile; |
4047 /** | 4123 /** |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4173 * Read-only. | 4249 * Read-only. |
4174 */ | 4250 */ |
4175 core.String id; | 4251 core.String id; |
4176 /** | 4252 /** |
4177 * Role to invite the user to have. | 4253 * Role to invite the user to have. |
4178 * Must not be `COURSE_ROLE_UNSPECIFIED`. | 4254 * Must not be `COURSE_ROLE_UNSPECIFIED`. |
4179 * Possible string values are: | 4255 * Possible string values are: |
4180 * - "COURSE_ROLE_UNSPECIFIED" : No course role. | 4256 * - "COURSE_ROLE_UNSPECIFIED" : No course role. |
4181 * - "STUDENT" : Student in the course. | 4257 * - "STUDENT" : Student in the course. |
4182 * - "TEACHER" : Teacher of the course. | 4258 * - "TEACHER" : Teacher of the course. |
| 4259 * - "OWNER" : Owner of the course. |
4183 */ | 4260 */ |
4184 core.String role; | 4261 core.String role; |
4185 /** | 4262 /** |
4186 * Identifier of the invited user. | 4263 * Identifier of the invited user. |
4187 * | 4264 * |
4188 * When specified as a parameter of a request, this identifier can be set to | 4265 * When specified as a parameter of a request, this identifier can be set to |
4189 * one of the following: | 4266 * one of the following: |
4190 * | 4267 * |
4191 * * the numeric identifier for the user | 4268 * * the numeric identifier for the user |
4192 * * the email address of the user | 4269 * * the email address of the user |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4834 | 4911 |
4835 core.Map<core.String, core.Object> toJson() { | 4912 core.Map<core.String, core.Object> toJson() { |
4836 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4913 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4837 if (answer != null) { | 4914 if (answer != null) { |
4838 _json["answer"] = answer; | 4915 _json["answer"] = answer; |
4839 } | 4916 } |
4840 return _json; | 4917 return _json; |
4841 } | 4918 } |
4842 } | 4919 } |
4843 | 4920 |
| 4921 /** The history of each state this submission has been in. */ |
| 4922 class StateHistory { |
| 4923 /** The teacher or student who made the change */ |
| 4924 core.String actorUserId; |
| 4925 /** |
| 4926 * The workflow pipeline stage. |
| 4927 * Possible string values are: |
| 4928 * - "STATE_UNSPECIFIED" : No state specified. This should never be returned. |
| 4929 * - "CREATED" : The Submission has been created. |
| 4930 * - "TURNED_IN" : The student has turned in an assigned document, which may |
| 4931 * or may not be |
| 4932 * a template. |
| 4933 * - "RETURNED" : The teacher has returned the assigned document to the |
| 4934 * student. |
| 4935 * - "RECLAIMED_BY_STUDENT" : The student turned in the assigned document, and |
| 4936 * then chose to |
| 4937 * "unsubmit" the assignment, giving the student control again as the |
| 4938 * owner. |
| 4939 * - "STUDENT_EDITED_AFTER_TURN_IN" : The student edited their submission |
| 4940 * after turning it in. Currently, |
| 4941 * only used by Questions, when the student edits their answer. |
| 4942 */ |
| 4943 core.String state; |
| 4944 /** When the submission entered this state. */ |
| 4945 core.String stateTimestamp; |
| 4946 |
| 4947 StateHistory(); |
| 4948 |
| 4949 StateHistory.fromJson(core.Map _json) { |
| 4950 if (_json.containsKey("actorUserId")) { |
| 4951 actorUserId = _json["actorUserId"]; |
| 4952 } |
| 4953 if (_json.containsKey("state")) { |
| 4954 state = _json["state"]; |
| 4955 } |
| 4956 if (_json.containsKey("stateTimestamp")) { |
| 4957 stateTimestamp = _json["stateTimestamp"]; |
| 4958 } |
| 4959 } |
| 4960 |
| 4961 core.Map<core.String, core.Object> toJson() { |
| 4962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4963 if (actorUserId != null) { |
| 4964 _json["actorUserId"] = actorUserId; |
| 4965 } |
| 4966 if (state != null) { |
| 4967 _json["state"] = state; |
| 4968 } |
| 4969 if (stateTimestamp != null) { |
| 4970 _json["stateTimestamp"] = stateTimestamp; |
| 4971 } |
| 4972 return _json; |
| 4973 } |
| 4974 } |
| 4975 |
4844 /** Student in a course. */ | 4976 /** Student in a course. */ |
4845 class Student { | 4977 class Student { |
4846 /** | 4978 /** |
4847 * Identifier of the course. | 4979 * Identifier of the course. |
4848 * | 4980 * |
4849 * Read-only. | 4981 * Read-only. |
4850 */ | 4982 */ |
4851 core.String courseId; | 4983 core.String courseId; |
4852 /** | 4984 /** |
4853 * Global user information for the student. | 4985 * Global user information for the student. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4919 */ | 5051 */ |
4920 class StudentSubmission { | 5052 class StudentSubmission { |
4921 /** | 5053 /** |
4922 * Absolute link to the submission in the Classroom web UI. | 5054 * Absolute link to the submission in the Classroom web UI. |
4923 * | 5055 * |
4924 * Read-only. | 5056 * Read-only. |
4925 */ | 5057 */ |
4926 core.String alternateLink; | 5058 core.String alternateLink; |
4927 /** | 5059 /** |
4928 * Optional grade. If unset, no grade was set. | 5060 * Optional grade. If unset, no grade was set. |
4929 * This must be a non-negative integer value. | 5061 * This value must be non-negative. Decimal (i.e. non-integer) values are |
| 5062 * allowed, but will be rounded to two decimal places. |
4930 * | 5063 * |
4931 * This may be modified only by course teachers. | 5064 * This may be modified only by course teachers. |
4932 */ | 5065 */ |
4933 core.double assignedGrade; | 5066 core.double assignedGrade; |
4934 /** Submission content when course_work_type is ASSIGNMENT . */ | 5067 /** Submission content when course_work_type is ASSIGNMENT . */ |
4935 AssignmentSubmission assignmentSubmission; | 5068 AssignmentSubmission assignmentSubmission; |
4936 /** | 5069 /** |
4937 * Whether this student submission is associated with the Developer Console | 5070 * Whether this student submission is associated with the Developer Console |
4938 * project making the request. | 5071 * project making the request. |
4939 * | 5072 * |
(...skipping 29 matching lines...) Expand all Loading... |
4969 core.String courseWorkType; | 5102 core.String courseWorkType; |
4970 /** | 5103 /** |
4971 * Creation time of this submission. | 5104 * Creation time of this submission. |
4972 * This may be unset if the student has not accessed this item. | 5105 * This may be unset if the student has not accessed this item. |
4973 * | 5106 * |
4974 * Read-only. | 5107 * Read-only. |
4975 */ | 5108 */ |
4976 core.String creationTime; | 5109 core.String creationTime; |
4977 /** | 5110 /** |
4978 * Optional pending grade. If unset, no grade was set. | 5111 * Optional pending grade. If unset, no grade was set. |
4979 * This must be a non-negative integer value. | 5112 * This value must be non-negative. Decimal (i.e. non-integer) values are |
| 5113 * allowed, but will be rounded to two decimal places. |
4980 * | 5114 * |
4981 * This is only visible to and modifiable by course teachers. | 5115 * This is only visible to and modifiable by course teachers. |
4982 */ | 5116 */ |
4983 core.double draftGrade; | 5117 core.double draftGrade; |
4984 /** | 5118 /** |
4985 * Classroom-assigned Identifier for the student submission. | 5119 * Classroom-assigned Identifier for the student submission. |
4986 * This is unique among submissions for the relevant course work. | 5120 * This is unique among submissions for the relevant course work. |
4987 * | 5121 * |
4988 * Read-only. | 5122 * Read-only. |
4989 */ | 5123 */ |
(...skipping 18 matching lines...) Expand all Loading... |
5008 * - "NEW" : The student has never accessed this submission. Attachments are | 5142 * - "NEW" : The student has never accessed this submission. Attachments are |
5009 * not | 5143 * not |
5010 * returned and timestamps is not set. | 5144 * returned and timestamps is not set. |
5011 * - "CREATED" : Has been created. | 5145 * - "CREATED" : Has been created. |
5012 * - "TURNED_IN" : Has been turned in to the teacher. | 5146 * - "TURNED_IN" : Has been turned in to the teacher. |
5013 * - "RETURNED" : Has been returned to the student. | 5147 * - "RETURNED" : Has been returned to the student. |
5014 * - "RECLAIMED_BY_STUDENT" : Student chose to "unsubmit" the assignment. | 5148 * - "RECLAIMED_BY_STUDENT" : Student chose to "unsubmit" the assignment. |
5015 */ | 5149 */ |
5016 core.String state; | 5150 core.String state; |
5017 /** | 5151 /** |
| 5152 * The history of the submission (includes state and grade histories). |
| 5153 * |
| 5154 * Read-only. |
| 5155 */ |
| 5156 core.List<SubmissionHistory> submissionHistory; |
| 5157 /** |
5018 * Last update time of this submission. | 5158 * Last update time of this submission. |
5019 * This may be unset if the student has not accessed this item. | 5159 * This may be unset if the student has not accessed this item. |
5020 * | 5160 * |
5021 * Read-only. | 5161 * Read-only. |
5022 */ | 5162 */ |
5023 core.String updateTime; | 5163 core.String updateTime; |
5024 /** | 5164 /** |
5025 * Identifier for the student that owns this submission. | 5165 * Identifier for the student that owns this submission. |
5026 * | 5166 * |
5027 * Read-only. | 5167 * Read-only. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5066 } | 5206 } |
5067 if (_json.containsKey("multipleChoiceSubmission")) { | 5207 if (_json.containsKey("multipleChoiceSubmission")) { |
5068 multipleChoiceSubmission = new MultipleChoiceSubmission.fromJson(_json["mu
ltipleChoiceSubmission"]); | 5208 multipleChoiceSubmission = new MultipleChoiceSubmission.fromJson(_json["mu
ltipleChoiceSubmission"]); |
5069 } | 5209 } |
5070 if (_json.containsKey("shortAnswerSubmission")) { | 5210 if (_json.containsKey("shortAnswerSubmission")) { |
5071 shortAnswerSubmission = new ShortAnswerSubmission.fromJson(_json["shortAns
werSubmission"]); | 5211 shortAnswerSubmission = new ShortAnswerSubmission.fromJson(_json["shortAns
werSubmission"]); |
5072 } | 5212 } |
5073 if (_json.containsKey("state")) { | 5213 if (_json.containsKey("state")) { |
5074 state = _json["state"]; | 5214 state = _json["state"]; |
5075 } | 5215 } |
| 5216 if (_json.containsKey("submissionHistory")) { |
| 5217 submissionHistory = _json["submissionHistory"].map((value) => new Submissi
onHistory.fromJson(value)).toList(); |
| 5218 } |
5076 if (_json.containsKey("updateTime")) { | 5219 if (_json.containsKey("updateTime")) { |
5077 updateTime = _json["updateTime"]; | 5220 updateTime = _json["updateTime"]; |
5078 } | 5221 } |
5079 if (_json.containsKey("userId")) { | 5222 if (_json.containsKey("userId")) { |
5080 userId = _json["userId"]; | 5223 userId = _json["userId"]; |
5081 } | 5224 } |
5082 } | 5225 } |
5083 | 5226 |
5084 core.Map<core.String, core.Object> toJson() { | 5227 core.Map<core.String, core.Object> toJson() { |
5085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5118 } | 5261 } |
5119 if (multipleChoiceSubmission != null) { | 5262 if (multipleChoiceSubmission != null) { |
5120 _json["multipleChoiceSubmission"] = (multipleChoiceSubmission).toJson(); | 5263 _json["multipleChoiceSubmission"] = (multipleChoiceSubmission).toJson(); |
5121 } | 5264 } |
5122 if (shortAnswerSubmission != null) { | 5265 if (shortAnswerSubmission != null) { |
5123 _json["shortAnswerSubmission"] = (shortAnswerSubmission).toJson(); | 5266 _json["shortAnswerSubmission"] = (shortAnswerSubmission).toJson(); |
5124 } | 5267 } |
5125 if (state != null) { | 5268 if (state != null) { |
5126 _json["state"] = state; | 5269 _json["state"] = state; |
5127 } | 5270 } |
| 5271 if (submissionHistory != null) { |
| 5272 _json["submissionHistory"] = submissionHistory.map((value) => (value).toJs
on()).toList(); |
| 5273 } |
5128 if (updateTime != null) { | 5274 if (updateTime != null) { |
5129 _json["updateTime"] = updateTime; | 5275 _json["updateTime"] = updateTime; |
5130 } | 5276 } |
5131 if (userId != null) { | 5277 if (userId != null) { |
5132 _json["userId"] = userId; | 5278 _json["userId"] = userId; |
5133 } | 5279 } |
5134 return _json; | 5280 return _json; |
5135 } | 5281 } |
5136 } | 5282 } |
5137 | 5283 |
| 5284 /** |
| 5285 * The history of the submission. This currently includes state and grade |
| 5286 * histories. |
| 5287 */ |
| 5288 class SubmissionHistory { |
| 5289 /** The grade history information of the submission, if present. */ |
| 5290 GradeHistory gradeHistory; |
| 5291 /** The state history information of the submission, if present. */ |
| 5292 StateHistory stateHistory; |
| 5293 |
| 5294 SubmissionHistory(); |
| 5295 |
| 5296 SubmissionHistory.fromJson(core.Map _json) { |
| 5297 if (_json.containsKey("gradeHistory")) { |
| 5298 gradeHistory = new GradeHistory.fromJson(_json["gradeHistory"]); |
| 5299 } |
| 5300 if (_json.containsKey("stateHistory")) { |
| 5301 stateHistory = new StateHistory.fromJson(_json["stateHistory"]); |
| 5302 } |
| 5303 } |
| 5304 |
| 5305 core.Map<core.String, core.Object> toJson() { |
| 5306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5307 if (gradeHistory != null) { |
| 5308 _json["gradeHistory"] = (gradeHistory).toJson(); |
| 5309 } |
| 5310 if (stateHistory != null) { |
| 5311 _json["stateHistory"] = (stateHistory).toJson(); |
| 5312 } |
| 5313 return _json; |
| 5314 } |
| 5315 } |
| 5316 |
5138 /** Teacher of a course. */ | 5317 /** Teacher of a course. */ |
5139 class Teacher { | 5318 class Teacher { |
5140 /** | 5319 /** |
5141 * Identifier of the course. | 5320 * Identifier of the course. |
5142 * | 5321 * |
5143 * Read-only. | 5322 * Read-only. |
5144 */ | 5323 */ |
5145 core.String courseId; | 5324 core.String courseId; |
5146 /** | 5325 /** |
5147 * Global user information for the teacher. | 5326 * Global user information for the teacher. |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5398 } | 5577 } |
5399 if (thumbnailUrl != null) { | 5578 if (thumbnailUrl != null) { |
5400 _json["thumbnailUrl"] = thumbnailUrl; | 5579 _json["thumbnailUrl"] = thumbnailUrl; |
5401 } | 5580 } |
5402 if (title != null) { | 5581 if (title != null) { |
5403 _json["title"] = title; | 5582 _json["title"] = title; |
5404 } | 5583 } |
5405 return _json; | 5584 return _json; |
5406 } | 5585 } |
5407 } | 5586 } |
OLD | NEW |