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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « generated/googleapis/lib/civicinfo/v2.dart ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 * [studentId] - Restricts returned courses to those having a student with the 234 * [studentId] - Restricts returned courses to those having a student with the
235 * specified identifier. The identifier can be one of the following: * the 235 * specified identifier. The identifier can be one of the following: * the
236 * numeric identifier for the user * the email address of the user * the 236 * numeric identifier for the user * the email address of the user * the
237 * string literal `"me"`, indicating the requesting user 237 * string literal `"me"`, indicating the requesting user
238 * 238 *
239 * [teacherId] - Restricts returned courses to those having a teacher with the 239 * [teacherId] - Restricts returned courses to those having a teacher with the
240 * specified identifier. The identifier can be one of the following: * the 240 * specified identifier. The identifier can be one of the following: * the
241 * numeric identifier for the user * the email address of the user * the 241 * numeric identifier for the user * the email address of the user * the
242 * string literal `"me"`, indicating the requesting user 242 * string literal `"me"`, indicating the requesting user
243 * 243 *
244 * [courseStates] - Restricts returned courses to those in one of the
245 * specified states
246 *
244 * [pageSize] - Maximum number of items to return. Zero or unspecified 247 * [pageSize] - Maximum number of items to return. Zero or unspecified
245 * indicates that the server may assign a maximum. The server may return fewer 248 * indicates that the server may assign a maximum. The server may return fewer
246 * than the specified number of results. 249 * than the specified number of results.
247 * 250 *
248 * [pageToken] - nextPageToken value returned from a previous list call, 251 * [pageToken] - nextPageToken value returned from a previous list call,
249 * indicating that the subsequent page of results should be returned. The list 252 * indicating that the subsequent page of results should be returned. The list
250 * request must be otherwise identical to the one that resulted in this token. 253 * request must be otherwise identical to the one that resulted in this token.
251 * 254 *
252 * Completes with a [ListCoursesResponse]. 255 * Completes with a [ListCoursesResponse].
253 * 256 *
254 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
255 * error. 258 * error.
256 * 259 *
257 * If the used [http.Client] completes with an error when making a REST call, 260 * If the used [http.Client] completes with an error when making a REST call,
258 * this method will complete with the same error. 261 * this method will complete with the same error.
259 */ 262 */
260 async.Future<ListCoursesResponse> list({core.String studentId, core.String tea cherId, core.int pageSize, core.String pageToken}) { 263 async.Future<ListCoursesResponse> list({core.String studentId, core.String tea cherId, core.List<core.String> courseStates, core.int pageSize, core.String page Token}) {
261 var _url = null; 264 var _url = null;
262 var _queryParams = new core.Map(); 265 var _queryParams = new core.Map();
263 var _uploadMedia = null; 266 var _uploadMedia = null;
264 var _uploadOptions = null; 267 var _uploadOptions = null;
265 var _downloadOptions = commons.DownloadOptions.Metadata; 268 var _downloadOptions = commons.DownloadOptions.Metadata;
266 var _body = null; 269 var _body = null;
267 270
268 if (studentId != null) { 271 if (studentId != null) {
269 _queryParams["studentId"] = [studentId]; 272 _queryParams["studentId"] = [studentId];
270 } 273 }
271 if (teacherId != null) { 274 if (teacherId != null) {
272 _queryParams["teacherId"] = [teacherId]; 275 _queryParams["teacherId"] = [teacherId];
273 } 276 }
277 if (courseStates != null) {
278 _queryParams["courseStates"] = courseStates;
279 }
274 if (pageSize != null) { 280 if (pageSize != null) {
275 _queryParams["pageSize"] = ["${pageSize}"]; 281 _queryParams["pageSize"] = ["${pageSize}"];
276 } 282 }
277 if (pageToken != null) { 283 if (pageToken != null) {
278 _queryParams["pageToken"] = [pageToken]; 284 _queryParams["pageToken"] = [pageToken];
279 } 285 }
280 286
281 _url = 'v1/courses'; 287 _url = 'v1/courses';
282 288
283 var _response = _requester.request(_url, 289 var _response = _requester.request(_url,
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2130 uploadMedia: _uploadMedia, 2136 uploadMedia: _uploadMedia,
2131 downloadOptions: _downloadOptions); 2137 downloadOptions: _downloadOptions);
2132 return _response.then((data) => new GuardianInvitation.fromJson(data)); 2138 return _response.then((data) => new GuardianInvitation.fromJson(data));
2133 } 2139 }
2134 2140
2135 /** 2141 /**
2136 * Returns a list of guardian invitations that the requesting user is 2142 * Returns a list of guardian invitations that the requesting user is
2137 * permitted to view, filtered by the parameters provided. This method returns 2143 * permitted to view, filtered by the parameters provided. This method returns
2138 * the following error codes: * `PERMISSION_DENIED` if a `student_id` is 2144 * the following error codes: * `PERMISSION_DENIED` if a `student_id` is
2139 * specified, and the requesting user is not permitted to view guardian 2145 * specified, and the requesting user is not permitted to view guardian
2140 * invitations for that student, if guardians are not enabled for the domain 2146 * invitations for that student, if `"-"` is specified as the `student_id` and
2141 * in question, or for other access errors. * `INVALID_ARGUMENT` if a 2147 * the user is not a domain administrator, if guardians are not enabled for
2142 * `student_id` is specified, but its format cannot be recognized (it is not 2148 * the domain in question, or for other access errors. * `INVALID_ARGUMENT` if
2149 * a `student_id` is specified, but its format cannot be recognized (it is not
2143 * an email address, nor a `student_id` from the API, nor the literal string 2150 * an email address, nor a `student_id` from the API, nor the literal string
2144 * `me`). May also be returned if an invalid `page_token` or `state` is 2151 * `me`). May also be returned if an invalid `page_token` or `state` is
2145 * provided. * `NOT_FOUND` if a `student_id` is specified, and its format can 2152 * provided. * `NOT_FOUND` if a `student_id` is specified, and its format can
2146 * be recognized, but Classroom has no record of that student. 2153 * be recognized, but Classroom has no record of that student.
2147 * 2154 *
2148 * Request parameters: 2155 * Request parameters:
2149 * 2156 *
2150 * [studentId] - The ID of the student whose guardian invitations are to be 2157 * [studentId] - The ID of the student whose guardian invitations are to be
2151 * returned. The identifier can be one of the following: * the numeric 2158 * returned. The identifier can be one of the following: * the numeric
2152 * identifier for the user * the email address of the user * the string 2159 * identifier for the user * the email address of the user * the string
2153 * literal `"me"`, indicating the requesting user 2160 * literal `"me"`, indicating the requesting user * the string literal `"-"`,
2161 * indicating that results should be returned for all students that the
2162 * requesting user is permitted to view guardian invitations.
2154 * 2163 *
2155 * [invitedEmailAddress] - If specified, only results with the specified 2164 * [invitedEmailAddress] - If specified, only results with the specified
2156 * `invited_email_address` will be returned. 2165 * `invited_email_address` will be returned.
2157 * 2166 *
2158 * [states] - If specified, only results with the specified `state` values 2167 * [states] - If specified, only results with the specified `state` values
2159 * will be returned. Otherwise, results with a `state` of `PENDING` will be 2168 * will be returned. Otherwise, results with a `state` of `PENDING` will be
2160 * returned. 2169 * returned.
2161 * 2170 *
2162 * [pageToken] - nextPageToken value returned from a previous list call, 2171 * [pageToken] - nextPageToken value returned from a previous list call,
2163 * indicating that the subsequent page of results should be returned. The list 2172 * indicating that the subsequent page of results should be returned. The list
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 body: _body, 2403 body: _body,
2395 queryParams: _queryParams, 2404 queryParams: _queryParams,
2396 uploadOptions: _uploadOptions, 2405 uploadOptions: _uploadOptions,
2397 uploadMedia: _uploadMedia, 2406 uploadMedia: _uploadMedia,
2398 downloadOptions: _downloadOptions); 2407 downloadOptions: _downloadOptions);
2399 return _response.then((data) => new Guardian.fromJson(data)); 2408 return _response.then((data) => new Guardian.fromJson(data));
2400 } 2409 }
2401 2410
2402 /** 2411 /**
2403 * Returns a list of guardians that the requesting user is permitted to view, 2412 * Returns a list of guardians that the requesting user is permitted to view,
2404 * restricted to those that match the request. This method returns the 2413 * restricted to those that match the request. To list guardians for any
2405 * following error codes: * `PERMISSION_DENIED` if a `student_id` is 2414 * student that the requesting user may view guardians for, use the literal
2406 * specified, and the requesting user is not permitted to view guardian 2415 * character `-` for the student ID. This method returns the following error
2407 * information for that student, if guardians are not enabled for the domain 2416 * codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the
2408 * in question, if the `invited_email_address` filter is set by a user who is 2417 * requesting user is not permitted to view guardian information for that
2409 * not a domain administrator, or for other access errors. * 2418 * student, if `"-"` is specified as the `student_id` and the user is not a
2410 * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be 2419 * domain administrator, if guardians are not enabled for the domain in
2411 * recognized (it is not an email address, nor a `student_id` from the API, 2420 * question, if the `invited_email_address` filter is set by a user who is not
2412 * nor the literal string `me`). May also be returned if an invalid 2421 * a domain administrator, or for other access errors. * `INVALID_ARGUMENT` if
2413 * `page_token` is provided. * `NOT_FOUND` if a `student_id` is specified, and 2422 * a `student_id` is specified, but its format cannot be recognized (it is not
2414 * its format can be recognized, but Classroom has no record of that student. 2423 * an email address, nor a `student_id` from the API, nor the literal string
2424 * `me`). May also be returned if an invalid `page_token` is provided. *
2425 * `NOT_FOUND` if a `student_id` is specified, and its format can be
2426 * recognized, but Classroom has no record of that student.
2415 * 2427 *
2416 * Request parameters: 2428 * Request parameters:
2417 * 2429 *
2418 * [studentId] - Filter results by the student who the guardian is linked to. 2430 * [studentId] - Filter results by the student who the guardian is linked to.
2419 * The identifier can be one of the following: * the numeric identifier for 2431 * The identifier can be one of the following: * the numeric identifier for
2420 * the user * the email address of the user * the string literal `"me"`, 2432 * the user * the email address of the user * the string literal `"me"`,
2421 * indicating the requesting user 2433 * indicating the requesting user * the string literal `"-"`, indicating that
2434 * results should be returned for all students that the requesting user has
2435 * access to view.
2422 * 2436 *
2423 * [invitedEmailAddress] - Filter results by the email address that the 2437 * [invitedEmailAddress] - Filter results by the email address that the
2424 * original invitation was sent to, resulting in this guardian link. This 2438 * original invitation was sent to, resulting in this guardian link. This
2425 * filter can only be used by domain administrators. 2439 * filter can only be used by domain administrators.
2426 * 2440 *
2427 * [pageToken] - nextPageToken value returned from a previous list call, 2441 * [pageToken] - nextPageToken value returned from a previous list call,
2428 * indicating that the subsequent page of results should be returned. The list 2442 * indicating that the subsequent page of results should be returned. The list
2429 * request must be otherwise identical to the one that resulted in this token. 2443 * request must be otherwise identical to the one that resulted in this token.
2430 * 2444 *
2431 * [pageSize] - Maximum number of items to return. Zero or unspecified 2445 * [pageSize] - Maximum number of items to return. Zero or unspecified
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 * Biology." If set, this field must be a valid UTF-8 string and no longer 2636 * Biology." If set, this field must be a valid UTF-8 string and no longer
2623 * than 3600 characters. 2637 * than 3600 characters.
2624 */ 2638 */
2625 core.String descriptionHeading; 2639 core.String descriptionHeading;
2626 /** 2640 /**
2627 * Enrollment code to use when joining this course. Specifying this field in a 2641 * Enrollment code to use when joining this course. Specifying this field in a
2628 * course update mask results in an error. Read-only. 2642 * course update mask results in an error. Read-only.
2629 */ 2643 */
2630 core.String enrollmentCode; 2644 core.String enrollmentCode;
2631 /** 2645 /**
2646 * Whether or not guardian notifications are enabled for this course.
2647 * Read-only.
2648 */
2649 core.bool guardiansEnabled;
2650 /**
2632 * Identifier for this course assigned by Classroom. When creating a course, 2651 * Identifier for this course assigned by Classroom. When creating a course,
2633 * you may optionally set this identifier to an alias string in the request to 2652 * you may optionally set this identifier to an alias string in the request to
2634 * create a corresponding alias. The `id` is still assigned by Classroom and 2653 * create a corresponding alias. The `id` is still assigned by Classroom and
2635 * cannot be updated after the course is created. Specifying this field in a 2654 * cannot be updated after the course is created. Specifying this field in a
2636 * course update mask results in an error. 2655 * course update mask results in an error.
2637 */ 2656 */
2638 core.String id; 2657 core.String id;
2639 /** 2658 /**
2640 * Name of the course. For example, "10th Grade Biology". The name is 2659 * Name of the course. For example, "10th Grade Biology". The name is
2641 * required. It must be between 1 and 750 characters and a valid UTF-8 string. 2660 * required. It must be between 1 and 750 characters and a valid UTF-8 string.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 } 2717 }
2699 if (_json.containsKey("description")) { 2718 if (_json.containsKey("description")) {
2700 description = _json["description"]; 2719 description = _json["description"];
2701 } 2720 }
2702 if (_json.containsKey("descriptionHeading")) { 2721 if (_json.containsKey("descriptionHeading")) {
2703 descriptionHeading = _json["descriptionHeading"]; 2722 descriptionHeading = _json["descriptionHeading"];
2704 } 2723 }
2705 if (_json.containsKey("enrollmentCode")) { 2724 if (_json.containsKey("enrollmentCode")) {
2706 enrollmentCode = _json["enrollmentCode"]; 2725 enrollmentCode = _json["enrollmentCode"];
2707 } 2726 }
2727 if (_json.containsKey("guardiansEnabled")) {
2728 guardiansEnabled = _json["guardiansEnabled"];
2729 }
2708 if (_json.containsKey("id")) { 2730 if (_json.containsKey("id")) {
2709 id = _json["id"]; 2731 id = _json["id"];
2710 } 2732 }
2711 if (_json.containsKey("name")) { 2733 if (_json.containsKey("name")) {
2712 name = _json["name"]; 2734 name = _json["name"];
2713 } 2735 }
2714 if (_json.containsKey("ownerId")) { 2736 if (_json.containsKey("ownerId")) {
2715 ownerId = _json["ownerId"]; 2737 ownerId = _json["ownerId"];
2716 } 2738 }
2717 if (_json.containsKey("room")) { 2739 if (_json.containsKey("room")) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 } 2772 }
2751 if (description != null) { 2773 if (description != null) {
2752 _json["description"] = description; 2774 _json["description"] = description;
2753 } 2775 }
2754 if (descriptionHeading != null) { 2776 if (descriptionHeading != null) {
2755 _json["descriptionHeading"] = descriptionHeading; 2777 _json["descriptionHeading"] = descriptionHeading;
2756 } 2778 }
2757 if (enrollmentCode != null) { 2779 if (enrollmentCode != null) {
2758 _json["enrollmentCode"] = enrollmentCode; 2780 _json["enrollmentCode"] = enrollmentCode;
2759 } 2781 }
2782 if (guardiansEnabled != null) {
2783 _json["guardiansEnabled"] = guardiansEnabled;
2784 }
2760 if (id != null) { 2785 if (id != null) {
2761 _json["id"] = id; 2786 _json["id"] = id;
2762 } 2787 }
2763 if (name != null) { 2788 if (name != null) {
2764 _json["name"] = name; 2789 _json["name"] = name;
2765 } 2790 }
2766 if (ownerId != null) { 2791 if (ownerId != null) {
2767 _json["ownerId"] = ownerId; 2792 _json["ownerId"] = ownerId;
2768 } 2793 }
2769 if (room != null) { 2794 if (room != null) {
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
4549 } 4574 }
4550 if (thumbnailUrl != null) { 4575 if (thumbnailUrl != null) {
4551 _json["thumbnailUrl"] = thumbnailUrl; 4576 _json["thumbnailUrl"] = thumbnailUrl;
4552 } 4577 }
4553 if (title != null) { 4578 if (title != null) {
4554 _json["title"] = title; 4579 _json["title"] = title;
4555 } 4580 }
4556 return _json; 4581 return _json;
4557 } 4582 }
4558 } 4583 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/civicinfo/v2.dart ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698