Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: generated/googleapis/lib/classroom/v1.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 * restricted to those that match the request. 247 * restricted to those that match the request.
248 * 248 *
249 * This method returns the following error codes: 249 * This method returns the following error codes:
250 * 250 *
251 * * `PERMISSION_DENIED` for access errors. 251 * * `PERMISSION_DENIED` for access errors.
252 * * `INVALID_ARGUMENT` if the query argument is malformed. 252 * * `INVALID_ARGUMENT` if the query argument is malformed.
253 * * `NOT_FOUND` if any users specified in the query arguments do not exist. 253 * * `NOT_FOUND` if any users specified in the query arguments do not exist.
254 * 254 *
255 * Request parameters: 255 * Request parameters:
256 * 256 *
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
264 * specified states
265 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED.
266 *
267 * [teacherId] - Restricts returned courses to those having a teacher with the
268 * specified
269 * identifier. The identifier can be one of the following:
270 *
271 * * the numeric identifier for the user
272 * * the email address of the user
273 * * the string literal `"me"`, indicating the requesting user
274 *
257 * [studentId] - Restricts returned courses to those having a student with the 275 * [studentId] - Restricts returned courses to those having a student with the
258 * specified 276 * specified
259 * identifier. The identifier can be one of the following: 277 * identifier. The identifier can be one of the following:
260 * 278 *
261 * * the numeric identifier for the user 279 * * the numeric identifier for the user
262 * * the email address of the user 280 * * the email address of the user
263 * * the string literal `"me"`, indicating the requesting user 281 * * the string literal `"me"`, indicating the requesting user
264 * 282 *
265 * [pageToken] - nextPageToken 283 * [pageToken] - nextPageToken
266 * value returned from a previous 284 * value returned from a previous
267 * list call, 285 * list call,
268 * indicating that the subsequent page of results should be returned. 286 * indicating that the subsequent page of results should be returned.
269 * 287 *
270 * The list request must be 288 * The list request must be
271 * otherwise identical to the one that resulted in this token. 289 * otherwise identical to the one that resulted in this token.
272 * 290 *
273 * [pageSize] - Maximum number of items to return. Zero or unspecified
274 * indicates that the
275 * server may assign a maximum.
276 *
277 * The server may return fewer than the specified number of results.
278 *
279 * [teacherId] - Restricts returned courses to those having a teacher with the
280 * specified
281 * identifier. The identifier can be one of the following:
282 *
283 * * the numeric identifier for the user
284 * * the email address of the user
285 * * the string literal `"me"`, indicating the requesting user
286 *
287 * [courseStates] - Restricts returned courses to those in one of the
288 * specified states
289 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED.
290 *
291 * Completes with a [ListCoursesResponse]. 291 * Completes with a [ListCoursesResponse].
292 * 292 *
293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
294 * error. 294 * error.
295 * 295 *
296 * If the used [http.Client] completes with an error when making a REST call, 296 * If the used [http.Client] completes with an error when making a REST call,
297 * this method will complete with the same error. 297 * this method will complete with the same error.
298 */ 298 */
299 async.Future<ListCoursesResponse> list({core.String studentId, core.String pag eToken, core.int pageSize, core.String teacherId, core.List<core.String> courseS tates}) { 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 var _url = null; 300 var _url = null;
301 var _queryParams = new core.Map(); 301 var _queryParams = new core.Map();
302 var _uploadMedia = null; 302 var _uploadMedia = null;
303 var _uploadOptions = null; 303 var _uploadOptions = null;
304 var _downloadOptions = commons.DownloadOptions.Metadata; 304 var _downloadOptions = commons.DownloadOptions.Metadata;
305 var _body = null; 305 var _body = null;
306 306
307 if (pageSize != null) {
308 _queryParams["pageSize"] = ["${pageSize}"];
309 }
310 if (courseStates != null) {
311 _queryParams["courseStates"] = courseStates;
312 }
313 if (teacherId != null) {
314 _queryParams["teacherId"] = [teacherId];
315 }
307 if (studentId != null) { 316 if (studentId != null) {
308 _queryParams["studentId"] = [studentId]; 317 _queryParams["studentId"] = [studentId];
309 } 318 }
310 if (pageToken != null) { 319 if (pageToken != null) {
311 _queryParams["pageToken"] = [pageToken]; 320 _queryParams["pageToken"] = [pageToken];
312 } 321 }
313 if (pageSize != null) {
314 _queryParams["pageSize"] = ["${pageSize}"];
315 }
316 if (teacherId != null) {
317 _queryParams["teacherId"] = [teacherId];
318 }
319 if (courseStates != null) {
320 _queryParams["courseStates"] = courseStates;
321 }
322 322
323 _url = 'v1/courses'; 323 _url = 'v1/courses';
324 324
325 var _response = _requester.request(_url, 325 var _response = _requester.request(_url,
326 "GET", 326 "GET",
327 body: _body, 327 body: _body,
328 queryParams: _queryParams, 328 queryParams: _queryParams,
329 uploadOptions: _uploadOptions, 329 uploadOptions: _uploadOptions,
330 uploadMedia: _uploadMedia, 330 uploadMedia: _uploadMedia,
331 downloadOptions: _downloadOptions); 331 downloadOptions: _downloadOptions);
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 * the requested course or for access errors. 847 * the requested course or for access errors.
848 * * `INVALID_ARGUMENT` if the request is malformed. 848 * * `INVALID_ARGUMENT` if the request is malformed.
849 * * `NOT_FOUND` if the requested course does not exist. 849 * * `NOT_FOUND` if the requested course does not exist.
850 * 850 *
851 * Request parameters: 851 * Request parameters:
852 * 852 *
853 * [courseId] - Identifier of the course. 853 * [courseId] - Identifier of the course.
854 * This identifier can be either the Classroom-assigned identifier or an 854 * This identifier can be either the Classroom-assigned identifier or an
855 * alias. 855 * alias.
856 * 856 *
857 * [pageSize] - Maximum number of items to return. Zero or unspecified 857 * [pageToken] - nextPageToken
858 * indicates that the 858 * value returned from a previous
859 * server may assign a maximum. 859 * list call,
860 * indicating that the subsequent page of results should be returned.
860 * 861 *
861 * The server may return fewer than the specified number of results. 862 * The list request
862 * 863 * must be otherwise identical to the one that resulted in this token.
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 * 864 *
868 * [orderBy] - Optional sort ordering for results. A comma-separated list of 865 * [orderBy] - Optional sort ordering for results. A comma-separated list of
869 * fields with 866 * fields with
870 * an optional sort direction keyword. Supported fields are `updateTime` 867 * an optional sort direction keyword. Supported fields are `updateTime`
871 * and `dueDate`. Supported direction keywords are `asc` and `desc`. 868 * and `dueDate`. Supported direction keywords are `asc` and `desc`.
872 * If not specified, `updateTime desc` is the default behavior. 869 * If not specified, `updateTime desc` is the default behavior.
873 * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` 870 * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`
874 * 871 *
875 * [pageToken] - nextPageToken 872 * [pageSize] - Maximum number of items to return. Zero or unspecified
876 * value returned from a previous 873 * indicates that the
877 * list call, 874 * server may assign a maximum.
878 * indicating that the subsequent page of results should be returned.
879 * 875 *
880 * The list request 876 * The server may return fewer than the specified number of results.
881 * must be otherwise identical to the one that resulted in this token. 877 *
878 * [courseWorkStates] - Restriction on the work status to return. Only
879 * courseWork that matches
880 * is returned. If unspecified, items with a work status of `PUBLISHED`
881 * is returned.
882 * 882 *
883 * Completes with a [ListCourseWorkResponse]. 883 * Completes with a [ListCourseWorkResponse].
884 * 884 *
885 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 885 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
886 * error. 886 * error.
887 * 887 *
888 * If the used [http.Client] completes with an error when making a REST call, 888 * If the used [http.Client] completes with an error when making a REST call,
889 * this method will complete with the same error. 889 * this method will complete with the same error.
890 */ 890 */
891 async.Future<ListCourseWorkResponse> list(core.String courseId, {core.int page Size, core.List<core.String> courseWorkStates, core.String orderBy, core.String pageToken}) { 891 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; 892 var _url = null;
893 var _queryParams = new core.Map(); 893 var _queryParams = new core.Map();
894 var _uploadMedia = null; 894 var _uploadMedia = null;
895 var _uploadOptions = null; 895 var _uploadOptions = null;
896 var _downloadOptions = commons.DownloadOptions.Metadata; 896 var _downloadOptions = commons.DownloadOptions.Metadata;
897 var _body = null; 897 var _body = null;
898 898
899 if (courseId == null) { 899 if (courseId == null) {
900 throw new core.ArgumentError("Parameter courseId is required."); 900 throw new core.ArgumentError("Parameter courseId is required.");
901 } 901 }
902 if (pageToken != null) {
903 _queryParams["pageToken"] = [pageToken];
904 }
905 if (orderBy != null) {
906 _queryParams["orderBy"] = [orderBy];
907 }
902 if (pageSize != null) { 908 if (pageSize != null) {
903 _queryParams["pageSize"] = ["${pageSize}"]; 909 _queryParams["pageSize"] = ["${pageSize}"];
904 } 910 }
905 if (courseWorkStates != null) { 911 if (courseWorkStates != null) {
906 _queryParams["courseWorkStates"] = courseWorkStates; 912 _queryParams["courseWorkStates"] = courseWorkStates;
907 } 913 }
908 if (orderBy != null) {
909 _queryParams["orderBy"] = [orderBy];
910 }
911 if (pageToken != null) {
912 _queryParams["pageToken"] = [pageToken];
913 }
914 914
915 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course Work'; 915 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course Work';
916 916
917 var _response = _requester.request(_url, 917 var _response = _requester.request(_url,
918 "GET", 918 "GET",
919 body: _body, 919 body: _body,
920 queryParams: _queryParams, 920 queryParams: _queryParams,
921 uploadOptions: _uploadOptions, 921 uploadOptions: _uploadOptions,
922 uploadMedia: _uploadMedia, 922 uploadMedia: _uploadMedia,
923 downloadOptions: _downloadOptions); 923 downloadOptions: _downloadOptions);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 * not set in the CourseWork object, an `INVALID_ARGUMENT` error will be 965 * not set in the CourseWork object, an `INVALID_ARGUMENT` error will be
966 * returned. 966 * returned.
967 * 967 *
968 * The following fields may be specified by teachers: 968 * The following fields may be specified by teachers:
969 * * `title` 969 * * `title`
970 * * `description` 970 * * `description`
971 * * `state` 971 * * `state`
972 * * `due_date` 972 * * `due_date`
973 * * `due_time` 973 * * `due_time`
974 * * `max_points` 974 * * `max_points`
975 * * `scheduled_time`
975 * * `submission_modification_mode` 976 * * `submission_modification_mode`
976 * 977 *
977 * Completes with a [CourseWork]. 978 * Completes with a [CourseWork].
978 * 979 *
979 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 980 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
980 * error. 981 * error.
981 * 982 *
982 * If the used [http.Client] completes with an error when making a REST call, 983 * If the used [http.Client] completes with an error when making a REST call,
983 * this method will complete with the same error. 984 * this method will complete with the same error.
984 */ 985 */
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 * Request parameters: 1102 * Request parameters:
1102 * 1103 *
1103 * [courseId] - Identifier of the course. 1104 * [courseId] - Identifier of the course.
1104 * This identifier can be either the Classroom-assigned identifier or an 1105 * This identifier can be either the Classroom-assigned identifier or an
1105 * alias. 1106 * alias.
1106 * 1107 *
1107 * [courseWorkId] - Identifer of the student work to request. 1108 * [courseWorkId] - Identifer of the student work to request.
1108 * This may be set to the string literal `"-"` to request student work for 1109 * This may be set to the string literal `"-"` to request student work for
1109 * all course work in the specified course. 1110 * all course work in the specified course.
1110 * 1111 *
1111 * [late] - Requested lateness value. If specified, returned student
1112 * submissions are
1113 * restricted by the requested value.
1114 * If unspecified, submissions are returned regardless of `late` value.
1115 * Possible string values are:
1116 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED.
1117 * - "LATE_ONLY" : A LATE_ONLY.
1118 * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY.
1119 *
1120 * [pageToken] - nextPageToken 1112 * [pageToken] - nextPageToken
1121 * value returned from a previous 1113 * value returned from a previous
1122 * list call, 1114 * list call,
1123 * indicating that the subsequent page of results should be returned. 1115 * indicating that the subsequent page of results should be returned.
1124 * 1116 *
1125 * The list request 1117 * The list request
1126 * must be otherwise identical to the one that resulted in this token. 1118 * must be otherwise identical to the one that resulted in this token.
1127 * 1119 *
1128 * [pageSize] - Maximum number of items to return. Zero or unspecified 1120 * [pageSize] - Maximum number of items to return. Zero or unspecified
1129 * indicates that the 1121 * indicates that the
1130 * server may assign a maximum. 1122 * server may assign a maximum.
1131 * 1123 *
1132 * The server may return fewer than the specified number of results. 1124 * The server may return fewer than the specified number of results.
1133 * 1125 *
1134 * [states] - Requested submission states. If specified, returned student 1126 * [states] - Requested submission states. If specified, returned student
1135 * submissions 1127 * submissions
1136 * match one of the specified submission states. 1128 * match one of the specified submission states.
1137 * 1129 *
1138 * [userId] - Optional argument to restrict returned student work to those 1130 * [userId] - Optional argument to restrict returned student work to those
1139 * owned by the 1131 * owned by the
1140 * student with the specified identifier. The identifier can be one of the 1132 * student with the specified identifier. The identifier can be one of the
1141 * following: 1133 * following:
1142 * 1134 *
1143 * * the numeric identifier for the user 1135 * * the numeric identifier for the user
1144 * * the email address of the user 1136 * * the email address of the user
1145 * * the string literal `"me"`, indicating the requesting user 1137 * * the string literal `"me"`, indicating the requesting user
1146 * 1138 *
1139 * [late] - Requested lateness value. If specified, returned student
1140 * submissions are
1141 * restricted by the requested value.
1142 * If unspecified, submissions are returned regardless of `late` value.
1143 * Possible string values are:
1144 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED.
1145 * - "LATE_ONLY" : A LATE_ONLY.
1146 * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY.
1147 *
1147 * Completes with a [ListStudentSubmissionsResponse]. 1148 * Completes with a [ListStudentSubmissionsResponse].
1148 * 1149 *
1149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1150 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1150 * error. 1151 * error.
1151 * 1152 *
1152 * If the used [http.Client] completes with an error when making a REST call, 1153 * If the used [http.Client] completes with an error when making a REST call,
1153 * this method will complete with the same error. 1154 * this method will complete with the same error.
1154 */ 1155 */
1155 async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.S tring courseWorkId, {core.String late, core.String pageToken, core.int pageSize, core.List<core.String> states, core.String userId}) { 1156 async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.S tring courseWorkId, {core.String pageToken, core.int pageSize, core.List<core.St ring> states, core.String userId, core.String late}) {
1156 var _url = null; 1157 var _url = null;
1157 var _queryParams = new core.Map(); 1158 var _queryParams = new core.Map();
1158 var _uploadMedia = null; 1159 var _uploadMedia = null;
1159 var _uploadOptions = null; 1160 var _uploadOptions = null;
1160 var _downloadOptions = commons.DownloadOptions.Metadata; 1161 var _downloadOptions = commons.DownloadOptions.Metadata;
1161 var _body = null; 1162 var _body = null;
1162 1163
1163 if (courseId == null) { 1164 if (courseId == null) {
1164 throw new core.ArgumentError("Parameter courseId is required."); 1165 throw new core.ArgumentError("Parameter courseId is required.");
1165 } 1166 }
1166 if (courseWorkId == null) { 1167 if (courseWorkId == null) {
1167 throw new core.ArgumentError("Parameter courseWorkId is required."); 1168 throw new core.ArgumentError("Parameter courseWorkId is required.");
1168 } 1169 }
1169 if (late != null) {
1170 _queryParams["late"] = [late];
1171 }
1172 if (pageToken != null) { 1170 if (pageToken != null) {
1173 _queryParams["pageToken"] = [pageToken]; 1171 _queryParams["pageToken"] = [pageToken];
1174 } 1172 }
1175 if (pageSize != null) { 1173 if (pageSize != null) {
1176 _queryParams["pageSize"] = ["${pageSize}"]; 1174 _queryParams["pageSize"] = ["${pageSize}"];
1177 } 1175 }
1178 if (states != null) { 1176 if (states != null) {
1179 _queryParams["states"] = states; 1177 _queryParams["states"] = states;
1180 } 1178 }
1181 if (userId != null) { 1179 if (userId != null) {
1182 _queryParams["userId"] = [userId]; 1180 _queryParams["userId"] = [userId];
1183 } 1181 }
1182 if (late != null) {
1183 _queryParams["late"] = [late];
1184 }
1184 1185
1185 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course Work/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions'; 1186 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course Work/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions';
1186 1187
1187 var _response = _requester.request(_url, 1188 var _response = _requester.request(_url,
1188 "GET", 1189 "GET",
1189 body: _body, 1190 body: _body,
1190 queryParams: _queryParams, 1191 queryParams: _queryParams,
1191 uploadOptions: _uploadOptions, 1192 uploadOptions: _uploadOptions,
1192 uploadMedia: _uploadMedia, 1193 uploadMedia: _uploadMedia,
1193 downloadOptions: _downloadOptions); 1194 downloadOptions: _downloadOptions);
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 * 1783 *
1783 * * `NOT_FOUND` if the course does not exist. 1784 * * `NOT_FOUND` if the course does not exist.
1784 * * `PERMISSION_DENIED` for access errors. 1785 * * `PERMISSION_DENIED` for access errors.
1785 * 1786 *
1786 * Request parameters: 1787 * Request parameters:
1787 * 1788 *
1788 * [courseId] - Identifier of the course. 1789 * [courseId] - Identifier of the course.
1789 * This identifier can be either the Classroom-assigned identifier or an 1790 * This identifier can be either the Classroom-assigned identifier or an
1790 * alias. 1791 * alias.
1791 * 1792 *
1792 * [pageSize] - Maximum number of items to return. Zero means no maximum.
1793 *
1794 * The server may return fewer than the specified number of results.
1795 *
1796 * [pageToken] - nextPageToken 1793 * [pageToken] - nextPageToken
1797 * value returned from a previous 1794 * value returned from a previous
1798 * list call, indicating that 1795 * list call, indicating that
1799 * the subsequent page of results should be returned. 1796 * the subsequent page of results should be returned.
1800 * 1797 *
1801 * The list request must be 1798 * The list request must be
1802 * otherwise identical to the one that resulted in this token. 1799 * otherwise identical to the one that resulted in this token.
1803 * 1800 *
1801 * [pageSize] - Maximum number of items to return. Zero means no maximum.
1802 *
1803 * The server may return fewer than the specified number of results.
1804 *
1804 * Completes with a [ListStudentsResponse]. 1805 * Completes with a [ListStudentsResponse].
1805 * 1806 *
1806 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1807 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1807 * error. 1808 * error.
1808 * 1809 *
1809 * If the used [http.Client] completes with an error when making a REST call, 1810 * If the used [http.Client] completes with an error when making a REST call,
1810 * this method will complete with the same error. 1811 * this method will complete with the same error.
1811 */ 1812 */
1812 async.Future<ListStudentsResponse> list(core.String courseId, {core.int pageSi ze, core.String pageToken}) { 1813 async.Future<ListStudentsResponse> list(core.String courseId, {core.String pag eToken, core.int pageSize}) {
1813 var _url = null; 1814 var _url = null;
1814 var _queryParams = new core.Map(); 1815 var _queryParams = new core.Map();
1815 var _uploadMedia = null; 1816 var _uploadMedia = null;
1816 var _uploadOptions = null; 1817 var _uploadOptions = null;
1817 var _downloadOptions = commons.DownloadOptions.Metadata; 1818 var _downloadOptions = commons.DownloadOptions.Metadata;
1818 var _body = null; 1819 var _body = null;
1819 1820
1820 if (courseId == null) { 1821 if (courseId == null) {
1821 throw new core.ArgumentError("Parameter courseId is required."); 1822 throw new core.ArgumentError("Parameter courseId is required.");
1822 } 1823 }
1824 if (pageToken != null) {
1825 _queryParams["pageToken"] = [pageToken];
1826 }
1823 if (pageSize != null) { 1827 if (pageSize != null) {
1824 _queryParams["pageSize"] = ["${pageSize}"]; 1828 _queryParams["pageSize"] = ["${pageSize}"];
1825 } 1829 }
1826 if (pageToken != null) {
1827 _queryParams["pageToken"] = [pageToken];
1828 }
1829 1830
1830 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/studen ts'; 1831 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/studen ts';
1831 1832
1832 var _response = _requester.request(_url, 1833 var _response = _requester.request(_url,
1833 "GET", 1834 "GET",
1834 body: _body, 1835 body: _body,
1835 queryParams: _queryParams, 1836 queryParams: _queryParams,
1836 uploadOptions: _uploadOptions, 1837 uploadOptions: _uploadOptions,
1837 uploadMedia: _uploadMedia, 1838 uploadMedia: _uploadMedia,
1838 downloadOptions: _downloadOptions); 1839 downloadOptions: _downloadOptions);
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 * 2301 *
2301 * *Note:* At least one of `user_id` or `course_id` must be supplied. Both 2302 * *Note:* At least one of `user_id` or `course_id` must be supplied. Both
2302 * fields can be supplied. 2303 * fields can be supplied.
2303 * 2304 *
2304 * This method returns the following error codes: 2305 * This method returns the following error codes:
2305 * 2306 *
2306 * * `PERMISSION_DENIED` for access errors. 2307 * * `PERMISSION_DENIED` for access errors.
2307 * 2308 *
2308 * Request parameters: 2309 * Request parameters:
2309 * 2310 *
2310 * [userId] - Restricts returned invitations to those for a specific user. The
2311 * identifier
2312 * can be one of the following:
2313 *
2314 * * the numeric identifier for the user
2315 * * the email address of the user
2316 * * the string literal `"me"`, indicating the requesting user
2317 *
2318 * [pageToken] - nextPageToken 2311 * [pageToken] - nextPageToken
2319 * value returned from a previous 2312 * value returned from a previous
2320 * list call, indicating 2313 * list call, indicating
2321 * that the subsequent page of results should be returned. 2314 * that the subsequent page of results should be returned.
2322 * 2315 *
2323 * The list request must be 2316 * The list request must be
2324 * otherwise identical to the one that resulted in this token. 2317 * otherwise identical to the one that resulted in this token.
2325 * 2318 *
2319 * [userId] - Restricts returned invitations to those for a specific user. The
2320 * identifier
2321 * can be one of the following:
2322 *
2323 * * the numeric identifier for the user
2324 * * the email address of the user
2325 * * the string literal `"me"`, indicating the requesting user
2326 *
2326 * [pageSize] - Maximum number of items to return. Zero means no maximum. 2327 * [pageSize] - Maximum number of items to return. Zero means no maximum.
2327 * 2328 *
2328 * The server may return fewer than the specified number of results. 2329 * The server may return fewer than the specified number of results.
2329 * 2330 *
2330 * [courseId] - Restricts returned invitations to those for a course with the 2331 * [courseId] - Restricts returned invitations to those for a course with the
2331 * specified 2332 * specified
2332 * identifier. 2333 * identifier.
2333 * 2334 *
2334 * Completes with a [ListInvitationsResponse]. 2335 * Completes with a [ListInvitationsResponse].
2335 * 2336 *
2336 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2337 * error. 2338 * error.
2338 * 2339 *
2339 * If the used [http.Client] completes with an error when making a REST call, 2340 * If the used [http.Client] completes with an error when making a REST call,
2340 * this method will complete with the same error. 2341 * this method will complete with the same error.
2341 */ 2342 */
2342 async.Future<ListInvitationsResponse> list({core.String userId, core.String pa geToken, core.int pageSize, core.String courseId}) { 2343 async.Future<ListInvitationsResponse> list({core.String pageToken, core.String userId, core.int pageSize, core.String courseId}) {
2343 var _url = null; 2344 var _url = null;
2344 var _queryParams = new core.Map(); 2345 var _queryParams = new core.Map();
2345 var _uploadMedia = null; 2346 var _uploadMedia = null;
2346 var _uploadOptions = null; 2347 var _uploadOptions = null;
2347 var _downloadOptions = commons.DownloadOptions.Metadata; 2348 var _downloadOptions = commons.DownloadOptions.Metadata;
2348 var _body = null; 2349 var _body = null;
2349 2350
2351 if (pageToken != null) {
2352 _queryParams["pageToken"] = [pageToken];
2353 }
2350 if (userId != null) { 2354 if (userId != null) {
2351 _queryParams["userId"] = [userId]; 2355 _queryParams["userId"] = [userId];
2352 } 2356 }
2353 if (pageToken != null) {
2354 _queryParams["pageToken"] = [pageToken];
2355 }
2356 if (pageSize != null) { 2357 if (pageSize != null) {
2357 _queryParams["pageSize"] = ["${pageSize}"]; 2358 _queryParams["pageSize"] = ["${pageSize}"];
2358 } 2359 }
2359 if (courseId != null) { 2360 if (courseId != null) {
2360 _queryParams["courseId"] = [courseId]; 2361 _queryParams["courseId"] = [courseId];
2361 } 2362 }
2362 2363
2363 _url = 'v1/invitations'; 2364 _url = 'v1/invitations';
2364 2365
2365 var _response = _requester.request(_url, 2366 var _response = _requester.request(_url,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 * invitations. 2609 * invitations.
2609 * 2610 *
2610 * [pageToken] - nextPageToken 2611 * [pageToken] - nextPageToken
2611 * value returned from a previous 2612 * value returned from a previous
2612 * list call, 2613 * list call,
2613 * indicating that the subsequent page of results should be returned. 2614 * indicating that the subsequent page of results should be returned.
2614 * 2615 *
2615 * The list request 2616 * The list request
2616 * must be otherwise identical to the one that resulted in this token. 2617 * must be otherwise identical to the one that resulted in this token.
2617 * 2618 *
2618 * [invitedEmailAddress] - If specified, only results with the specified
2619 * `invited_email_address`
2620 * will be returned.
2621 *
2622 * [states] - If specified, only results with the specified `state` values
2623 * will be
2624 * returned. Otherwise, results with a `state` of `PENDING` will be returned.
2625 *
2626 * [pageSize] - Maximum number of items to return. Zero or unspecified 2619 * [pageSize] - Maximum number of items to return. Zero or unspecified
2627 * indicates that the 2620 * indicates that the
2628 * server may assign a maximum. 2621 * server may assign a maximum.
2629 * 2622 *
2630 * The server may return fewer than the specified number of results. 2623 * The server may return fewer than the specified number of results.
2631 * 2624 *
2625 * [states] - If specified, only results with the specified `state` values
2626 * will be
2627 * returned. Otherwise, results with a `state` of `PENDING` will be returned.
2628 *
2629 * [invitedEmailAddress] - If specified, only results with the specified
2630 * `invited_email_address`
2631 * will be returned.
2632 *
2632 * Completes with a [ListGuardianInvitationsResponse]. 2633 * Completes with a [ListGuardianInvitationsResponse].
2633 * 2634 *
2634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2635 * error. 2636 * error.
2636 * 2637 *
2637 * If the used [http.Client] completes with an error when making a REST call, 2638 * If the used [http.Client] completes with an error when making a REST call,
2638 * this method will complete with the same error. 2639 * this method will complete with the same error.
2639 */ 2640 */
2640 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor e.String pageToken, core.String invitedEmailAddress, core.List<core.String> stat es, core.int pageSize}) { 2641 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor e.String pageToken, core.int pageSize, core.List<core.String> states, core.Strin g invitedEmailAddress}) {
2641 var _url = null; 2642 var _url = null;
2642 var _queryParams = new core.Map(); 2643 var _queryParams = new core.Map();
2643 var _uploadMedia = null; 2644 var _uploadMedia = null;
2644 var _uploadOptions = null; 2645 var _uploadOptions = null;
2645 var _downloadOptions = commons.DownloadOptions.Metadata; 2646 var _downloadOptions = commons.DownloadOptions.Metadata;
2646 var _body = null; 2647 var _body = null;
2647 2648
2648 if (studentId == null) { 2649 if (studentId == null) {
2649 throw new core.ArgumentError("Parameter studentId is required."); 2650 throw new core.ArgumentError("Parameter studentId is required.");
2650 } 2651 }
2651 if (pageToken != null) { 2652 if (pageToken != null) {
2652 _queryParams["pageToken"] = [pageToken]; 2653 _queryParams["pageToken"] = [pageToken];
2653 } 2654 }
2655 if (pageSize != null) {
2656 _queryParams["pageSize"] = ["${pageSize}"];
2657 }
2658 if (states != null) {
2659 _queryParams["states"] = states;
2660 }
2654 if (invitedEmailAddress != null) { 2661 if (invitedEmailAddress != null) {
2655 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; 2662 _queryParams["invitedEmailAddress"] = [invitedEmailAddress];
2656 } 2663 }
2657 if (states != null) {
2658 _queryParams["states"] = states;
2659 }
2660 if (pageSize != null) {
2661 _queryParams["pageSize"] = ["${pageSize}"];
2662 }
2663 2664
2664 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/ guardianInvitations'; 2665 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/ guardianInvitations';
2665 2666
2666 var _response = _requester.request(_url, 2667 var _response = _requester.request(_url,
2667 "GET", 2668 "GET",
2668 body: _body, 2669 body: _body,
2669 queryParams: _queryParams, 2670 queryParams: _queryParams,
2670 uploadOptions: _uploadOptions, 2671 uploadOptions: _uploadOptions,
2671 uploadMedia: _uploadMedia, 2672 uploadMedia: _uploadMedia,
2672 downloadOptions: _downloadOptions); 2673 downloadOptions: _downloadOptions);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 * all students that the requesting user has access to view. 2926 * all students that the requesting user has access to view.
2926 * 2927 *
2927 * [pageToken] - nextPageToken 2928 * [pageToken] - nextPageToken
2928 * value returned from a previous 2929 * value returned from a previous
2929 * list call, 2930 * list call,
2930 * indicating that the subsequent page of results should be returned. 2931 * indicating that the subsequent page of results should be returned.
2931 * 2932 *
2932 * The list request 2933 * The list request
2933 * must be otherwise identical to the one that resulted in this token. 2934 * must be otherwise identical to the one that resulted in this token.
2934 * 2935 *
2935 * [invitedEmailAddress] - Filter results by the email address that the
2936 * original invitation was sent
2937 * to, resulting in this guardian link.
2938 * This filter can only be used by domain administrators.
2939 *
2940 * [pageSize] - Maximum number of items to return. Zero or unspecified 2936 * [pageSize] - Maximum number of items to return. Zero or unspecified
2941 * indicates that the 2937 * indicates that the
2942 * server may assign a maximum. 2938 * server may assign a maximum.
2943 * 2939 *
2944 * The server may return fewer than the specified number of results. 2940 * The server may return fewer than the specified number of results.
2945 * 2941 *
2942 * [invitedEmailAddress] - Filter results by the email address that the
2943 * original invitation was sent
2944 * to, resulting in this guardian link.
2945 * This filter can only be used by domain administrators.
2946 *
2946 * Completes with a [ListGuardiansResponse]. 2947 * Completes with a [ListGuardiansResponse].
2947 * 2948 *
2948 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2949 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2949 * error. 2950 * error.
2950 * 2951 *
2951 * If the used [http.Client] completes with an error when making a REST call, 2952 * If the used [http.Client] completes with an error when making a REST call,
2952 * this method will complete with the same error. 2953 * this method will complete with the same error.
2953 */ 2954 */
2954 async.Future<ListGuardiansResponse> list(core.String studentId, {core.String p ageToken, core.String invitedEmailAddress, core.int pageSize}) { 2955 async.Future<ListGuardiansResponse> list(core.String studentId, {core.String p ageToken, core.int pageSize, core.String invitedEmailAddress}) {
2955 var _url = null; 2956 var _url = null;
2956 var _queryParams = new core.Map(); 2957 var _queryParams = new core.Map();
2957 var _uploadMedia = null; 2958 var _uploadMedia = null;
2958 var _uploadOptions = null; 2959 var _uploadOptions = null;
2959 var _downloadOptions = commons.DownloadOptions.Metadata; 2960 var _downloadOptions = commons.DownloadOptions.Metadata;
2960 var _body = null; 2961 var _body = null;
2961 2962
2962 if (studentId == null) { 2963 if (studentId == null) {
2963 throw new core.ArgumentError("Parameter studentId is required."); 2964 throw new core.ArgumentError("Parameter studentId is required.");
2964 } 2965 }
2965 if (pageToken != null) { 2966 if (pageToken != null) {
2966 _queryParams["pageToken"] = [pageToken]; 2967 _queryParams["pageToken"] = [pageToken];
2967 } 2968 }
2969 if (pageSize != null) {
2970 _queryParams["pageSize"] = ["${pageSize}"];
2971 }
2968 if (invitedEmailAddress != null) { 2972 if (invitedEmailAddress != null) {
2969 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; 2973 _queryParams["invitedEmailAddress"] = [invitedEmailAddress];
2970 } 2974 }
2971 if (pageSize != null) {
2972 _queryParams["pageSize"] = ["${pageSize}"];
2973 }
2974 2975
2975 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/ guardians'; 2976 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/ guardians';
2976 2977
2977 var _response = _requester.request(_url, 2978 var _response = _requester.request(_url,
2978 "GET", 2979 "GET",
2979 body: _body, 2980 body: _body,
2980 queryParams: _queryParams, 2981 queryParams: _queryParams,
2981 uploadOptions: _uploadOptions, 2982 uploadOptions: _uploadOptions,
2982 uploadMedia: _uploadMedia, 2983 uploadMedia: _uploadMedia,
2983 downloadOptions: _downloadOptions); 2984 downloadOptions: _downloadOptions);
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
5285 * Read-only. 5286 * Read-only.
5286 */ 5287 */
5287 core.List<GlobalPermission> permissions; 5288 core.List<GlobalPermission> permissions;
5288 /** 5289 /**
5289 * URL of user's profile photo. 5290 * URL of user's profile photo.
5290 * 5291 *
5291 * Read-only. 5292 * Read-only.
5292 */ 5293 */
5293 core.String photoUrl; 5294 core.String photoUrl;
5294 /** 5295 /**
5295 * Whether or not the user is a verified teacher 5296 * Represents whether a G Suite for Education user's domain administrator has
5297 * explicitly verified them as being a teacher. If the user is not a member of
5298 * a G Suite for Education domain, than this field will always be false.
5296 * 5299 *
5297 * Read-only 5300 * Read-only
5298 */ 5301 */
5299 core.bool verifiedTeacher; 5302 core.bool verifiedTeacher;
5300 5303
5301 UserProfile(); 5304 UserProfile();
5302 5305
5303 UserProfile.fromJson(core.Map _json) { 5306 UserProfile.fromJson(core.Map _json) {
5304 if (_json.containsKey("emailAddress")) { 5307 if (_json.containsKey("emailAddress")) {
5305 emailAddress = _json["emailAddress"]; 5308 emailAddress = _json["emailAddress"];
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
5395 } 5398 }
5396 if (thumbnailUrl != null) { 5399 if (thumbnailUrl != null) {
5397 _json["thumbnailUrl"] = thumbnailUrl; 5400 _json["thumbnailUrl"] = thumbnailUrl;
5398 } 5401 }
5399 if (title != null) { 5402 if (title != null) {
5400 _json["title"] = title; 5403 _json["title"] = title;
5401 } 5404 }
5402 return _json; 5405 return _json;
5403 } 5406 }
5404 } 5407 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/bigquerydatatransfer/v1.dart ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698