blob: 51a867420b3969616ef96a1cdce1bb3b1ca1c6ba [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="classroom_v1.html">Google Classroom API</a> . <a href="classroom_v1.courses.html">courses</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="classroom_v1.courses.aliases.html">aliases()</a></code>
79</p>
80<p class="firstline">Returns the aliases Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083 <code><a href="classroom_v1.courses.announcements.html">announcements()</a></code>
84</p>
85<p class="firstline">Returns the announcements Resource.</p>
86
87<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088 <code><a href="classroom_v1.courses.courseWork.html">courseWork()</a></code>
89</p>
90<p class="firstline">Returns the courseWork Resource.</p>
91
92<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070093 <code><a href="classroom_v1.courses.students.html">students()</a></code>
94</p>
95<p class="firstline">Returns the students Resource.</p>
96
97<p class="toc_element">
98 <code><a href="classroom_v1.courses.teachers.html">teachers()</a></code>
99</p>
100<p class="firstline">Returns the teachers Resource.</p>
101
102<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 <code><a href="classroom_v1.courses.topics.html">topics()</a></code>
104</p>
105<p class="firstline">Returns the topics Resource.</p>
106
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700109<p class="firstline">Creates a course.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700110<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -0700111 <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700112<p class="firstline">Deletes a course.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700113<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -0700114 <code><a href="#get">get(id, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700115<p class="firstline">Returns a course.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700116<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 <code><a href="#list">list(studentId=None, pageToken=None, courseStates=None, pageSize=None, teacherId=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700118<p class="firstline">Returns a list of courses that the requesting user is permitted to view,</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700119<p class="toc_element">
120 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
121<p class="firstline">Retrieves the next page of results.</p>
122<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 <code><a href="#patch">patch(id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700124<p class="firstline">Updates one or more fields in a course.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#update">update(id, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700127<p class="firstline">Updates a course.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700128<h3>Method Details</h3>
129<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700131 <pre>Creates a course.
132
133The user specified in `ownerId` is the owner of the created course
134and added as a teacher.
135
136This method returns the following error codes:
137
138* `PERMISSION_DENIED` if the requesting user is not permitted to create
139courses or for access errors.
140* `NOT_FOUND` if the primary teacher is not a valid user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141* `FAILED_PRECONDITION` if the course owner&#x27;s account is disabled or for
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700142the following request errors:
143 * UserGroupsMembershipLimitReached
144* `ALREADY_EXISTS` if an alias was specified in the `id` and
145already exists.
Takashi Matsuo06694102015-09-11 13:55:40 -0700146
147Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700149 The object takes the form of:
150
151{ # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 &quot;description&quot;: &quot;A String&quot;, # Optional description.
153 # For example, &quot;We&#x27;ll be learning about the structure of living
154 # creatures from a combination of textbooks, guest lectures, and lab work.
155 # Expect to be excited!&quot;
156 # If set, this field must be a valid UTF-8 string and no longer than 30,000
157 # characters.
158 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
159 # Specifying this field in a course update mask results in an error.
160 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700161 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700162 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
163 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700164 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700165 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
166 # course.
167 #
168 # This field will only be set for teachers of the course and domain
169 # administrators.
170 #
171 # Read-only.
172 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
173 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
174 #
175 # Read-only.
176 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
177 #
178 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700180 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
181 #
182 # When
183 # creating a course,
184 # you may optionally set this identifier to an
185 # alias string in the
186 # request to create a corresponding alias. The `id` is still assigned by
187 # Classroom and cannot be updated after the course is created.
188 #
189 # Specifying this field in a course update mask results in an error.
190 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
191 # Classroom adds events for course work and announcements in the course.
192 #
193 # Read-only.
194 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
195 #
196 # When specified as a parameter of a
197 # create course request, this
198 # field is required.
199 # The identifier can be one of the following:
200 #
201 # * the numeric identifier for the user
202 # * the email address of the user
203 # * the string literal `&quot;me&quot;`, indicating the requesting user
204 #
205 # This must be set in a create request. Admins can also specify this field
206 # in a patch course request to
207 # transfer ownership. In other contexts, it is read-only.
208 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
209 #
210 # Read-only.
211 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
212 #
213 # Read-only.
214 { # A set of materials that appears on the &quot;About&quot; page of the course.
215 # These materials might include a syllabus, schedule, or other background
216 # information relating to the course as a whole.
217 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
218 &quot;materials&quot;: [ # Materials attached to this set.
219 { # A material attached to a course as part of a material set.
220 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
221 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
222 #
223 # Read-only.
224 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
225 #
226 # Read-only.
227 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
228 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
229 #
230 # Read-only.
231 },
232 &quot;link&quot;: { # URL item. # Link atatchment.
233 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
234 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
235 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
236 #
237 # Read-only.
238 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
239 #
240 # Read-only.
241 },
242 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
243 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
244 #
245 # Read-only.
246 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
247 #
248 # Read-only.
249 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
250 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
251 #
252 # Read-only.
253 },
254 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
255 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
256 #
257 # Read-only.
258 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
259 # Only set if respsonses have been recorded and only when the
260 # requesting user is an editor of the form.
261 #
262 # Read-only.
263 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
264 #
265 # Read-only.
266 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
267 },
268 },
269 ],
270 },
271 ],
272 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
273 # This group does not accept email and can only be used for permissions.
274 #
275 # Read-only.
276 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
277 # For example, &quot;10th Grade Biology&quot;.
278 # The name is required. It must be between 1 and 750 characters and a valid
279 # UTF-8 string.
280 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
281 # For example, &quot;Welcome to 10th Grade Biology.&quot;
282 # If set, this field must be a valid UTF-8 string and no longer than 3600
283 # characters.
284 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
285 # For example, &quot;Period 2&quot;.
286 # If set, this field must be a valid UTF-8 string and no longer than 2800
287 # characters.
288 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
289 # This group does not accept email and can only be used for permissions.
290 #
291 # Read-only.
292 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
293 # For example, &quot;301&quot;.
294 # If set, this field must be a valid UTF-8 string and no longer than 650
295 # characters.
296 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
297 # If unspecified, the default state is `PROVISIONED`.
298 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
299 # Specifying this field in a course update mask results in an error.
300 #
301 # Read-only.
302 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
303 # Specifying this field in a course update mask results in an error.
304 #
305 # Read-only.
306 }
Takashi Matsuo06694102015-09-11 13:55:40 -0700307
308 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700312
313Returns:
314 An object of the form:
315
316 { # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700317 &quot;description&quot;: &quot;A String&quot;, # Optional description.
318 # For example, &quot;We&#x27;ll be learning about the structure of living
319 # creatures from a combination of textbooks, guest lectures, and lab work.
320 # Expect to be excited!&quot;
321 # If set, this field must be a valid UTF-8 string and no longer than 30,000
322 # characters.
323 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
324 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700325 #
326 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700327 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700328 #
329 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700330 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
331 # course.
332 #
333 # This field will only be set for teachers of the course and domain
334 # administrators.
335 #
336 # Read-only.
337 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
338 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
339 #
340 # Read-only.
341 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
342 #
343 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700345 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
346 #
347 # When
348 # creating a course,
349 # you may optionally set this identifier to an
350 # alias string in the
351 # request to create a corresponding alias. The `id` is still assigned by
352 # Classroom and cannot be updated after the course is created.
353 #
354 # Specifying this field in a course update mask results in an error.
355 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
356 # Classroom adds events for course work and announcements in the course.
357 #
358 # Read-only.
359 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
360 #
361 # When specified as a parameter of a
362 # create course request, this
363 # field is required.
364 # The identifier can be one of the following:
365 #
366 # * the numeric identifier for the user
367 # * the email address of the user
368 # * the string literal `&quot;me&quot;`, indicating the requesting user
369 #
370 # This must be set in a create request. Admins can also specify this field
371 # in a patch course request to
372 # transfer ownership. In other contexts, it is read-only.
373 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
374 #
375 # Read-only.
376 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
377 #
378 # Read-only.
379 { # A set of materials that appears on the &quot;About&quot; page of the course.
380 # These materials might include a syllabus, schedule, or other background
381 # information relating to the course as a whole.
382 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
383 &quot;materials&quot;: [ # Materials attached to this set.
384 { # A material attached to a course as part of a material set.
385 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
386 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
387 #
388 # Read-only.
389 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
390 #
391 # Read-only.
392 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
393 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
394 #
395 # Read-only.
396 },
397 &quot;link&quot;: { # URL item. # Link atatchment.
398 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
399 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
400 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
401 #
402 # Read-only.
403 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
404 #
405 # Read-only.
406 },
407 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
408 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
409 #
410 # Read-only.
411 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
412 #
413 # Read-only.
414 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
415 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
416 #
417 # Read-only.
418 },
419 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
420 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
421 #
422 # Read-only.
423 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
424 # Only set if respsonses have been recorded and only when the
425 # requesting user is an editor of the form.
426 #
427 # Read-only.
428 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
429 #
430 # Read-only.
431 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
432 },
433 },
434 ],
435 },
436 ],
437 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
438 # This group does not accept email and can only be used for permissions.
439 #
440 # Read-only.
441 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
442 # For example, &quot;10th Grade Biology&quot;.
443 # The name is required. It must be between 1 and 750 characters and a valid
444 # UTF-8 string.
445 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
446 # For example, &quot;Welcome to 10th Grade Biology.&quot;
447 # If set, this field must be a valid UTF-8 string and no longer than 3600
448 # characters.
449 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
450 # For example, &quot;Period 2&quot;.
451 # If set, this field must be a valid UTF-8 string and no longer than 2800
452 # characters.
453 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
454 # This group does not accept email and can only be used for permissions.
455 #
456 # Read-only.
457 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
458 # For example, &quot;301&quot;.
459 # If set, this field must be a valid UTF-8 string and no longer than 650
460 # characters.
461 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
462 # If unspecified, the default state is `PROVISIONED`.
463 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
464 # Specifying this field in a course update mask results in an error.
465 #
466 # Read-only.
467 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
468 # Specifying this field in a course update mask results in an error.
469 #
470 # Read-only.
471 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700472</div>
473
474<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700475 <code class="details" id="delete">delete(id, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700476 <pre>Deletes a course.
477
478This method returns the following error codes:
479
480* `PERMISSION_DENIED` if the requesting user is not permitted to delete the
481requested course or for access errors.
482* `NOT_FOUND` if no course exists with the requested ID.
Takashi Matsuo06694102015-09-11 13:55:40 -0700483
484Args:
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700485 id: string, Identifier of the course to delete.
486This identifier can be either the Classroom-assigned identifier or an
487alias. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700488 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700489 Allowed values
490 1 - v1 error format
491 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700492
493Returns:
494 An object of the form:
495
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700496 { # A generic empty message that you can re-use to avoid defining duplicated
497 # empty messages in your APIs. A typical example is to use it as the request
498 # or the response type of an API method. For instance:
499 #
500 # service Foo {
501 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
502 # }
503 #
504 # The JSON representation for `Empty` is empty JSON object `{}`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700505 }</pre>
506</div>
507
508<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700509 <code class="details" id="get">get(id, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700510 <pre>Returns a course.
511
512This method returns the following error codes:
513
514* `PERMISSION_DENIED` if the requesting user is not permitted to access the
515requested course or for access errors.
516* `NOT_FOUND` if no course exists with the requested ID.
Takashi Matsuo06694102015-09-11 13:55:40 -0700517
518Args:
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700519 id: string, Identifier of the course to return.
520This identifier can be either the Classroom-assigned identifier or an
521alias. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700522 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700523 Allowed values
524 1 - v1 error format
525 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700526
527Returns:
528 An object of the form:
529
530 { # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 &quot;description&quot;: &quot;A String&quot;, # Optional description.
532 # For example, &quot;We&#x27;ll be learning about the structure of living
533 # creatures from a combination of textbooks, guest lectures, and lab work.
534 # Expect to be excited!&quot;
535 # If set, this field must be a valid UTF-8 string and no longer than 30,000
536 # characters.
537 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
538 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700539 #
540 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700541 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700542 #
543 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700544 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
545 # course.
546 #
547 # This field will only be set for teachers of the course and domain
548 # administrators.
549 #
550 # Read-only.
551 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
552 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
553 #
554 # Read-only.
555 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
556 #
557 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700559 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
560 #
561 # When
562 # creating a course,
563 # you may optionally set this identifier to an
564 # alias string in the
565 # request to create a corresponding alias. The `id` is still assigned by
566 # Classroom and cannot be updated after the course is created.
567 #
568 # Specifying this field in a course update mask results in an error.
569 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
570 # Classroom adds events for course work and announcements in the course.
571 #
572 # Read-only.
573 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
574 #
575 # When specified as a parameter of a
576 # create course request, this
577 # field is required.
578 # The identifier can be one of the following:
579 #
580 # * the numeric identifier for the user
581 # * the email address of the user
582 # * the string literal `&quot;me&quot;`, indicating the requesting user
583 #
584 # This must be set in a create request. Admins can also specify this field
585 # in a patch course request to
586 # transfer ownership. In other contexts, it is read-only.
587 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
588 #
589 # Read-only.
590 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
591 #
592 # Read-only.
593 { # A set of materials that appears on the &quot;About&quot; page of the course.
594 # These materials might include a syllabus, schedule, or other background
595 # information relating to the course as a whole.
596 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
597 &quot;materials&quot;: [ # Materials attached to this set.
598 { # A material attached to a course as part of a material set.
599 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
600 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
601 #
602 # Read-only.
603 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
604 #
605 # Read-only.
606 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
607 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
608 #
609 # Read-only.
610 },
611 &quot;link&quot;: { # URL item. # Link atatchment.
612 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
613 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
614 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
615 #
616 # Read-only.
617 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
618 #
619 # Read-only.
620 },
621 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
622 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
623 #
624 # Read-only.
625 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
626 #
627 # Read-only.
628 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
629 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
630 #
631 # Read-only.
632 },
633 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
634 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
635 #
636 # Read-only.
637 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
638 # Only set if respsonses have been recorded and only when the
639 # requesting user is an editor of the form.
640 #
641 # Read-only.
642 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
643 #
644 # Read-only.
645 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
646 },
647 },
648 ],
649 },
650 ],
651 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
652 # This group does not accept email and can only be used for permissions.
653 #
654 # Read-only.
655 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
656 # For example, &quot;10th Grade Biology&quot;.
657 # The name is required. It must be between 1 and 750 characters and a valid
658 # UTF-8 string.
659 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
660 # For example, &quot;Welcome to 10th Grade Biology.&quot;
661 # If set, this field must be a valid UTF-8 string and no longer than 3600
662 # characters.
663 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
664 # For example, &quot;Period 2&quot;.
665 # If set, this field must be a valid UTF-8 string and no longer than 2800
666 # characters.
667 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
668 # This group does not accept email and can only be used for permissions.
669 #
670 # Read-only.
671 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
672 # For example, &quot;301&quot;.
673 # If set, this field must be a valid UTF-8 string and no longer than 650
674 # characters.
675 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
676 # If unspecified, the default state is `PROVISIONED`.
677 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
678 # Specifying this field in a course update mask results in an error.
679 #
680 # Read-only.
681 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
682 # Specifying this field in a course update mask results in an error.
683 #
684 # Read-only.
685 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700686</div>
687
688<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700689 <code class="details" id="list">list(studentId=None, pageToken=None, courseStates=None, pageSize=None, teacherId=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700690 <pre>Returns a list of courses that the requesting user is permitted to view,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691restricted to those that match the request. Returned courses are ordered by
692creation time, with the most recently created coming first.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700693
694This method returns the following error codes:
695
696* `PERMISSION_DENIED` for access errors.
697* `INVALID_ARGUMENT` if the query argument is malformed.
698* `NOT_FOUND` if any users specified in the query arguments do not exist.
Takashi Matsuo06694102015-09-11 13:55:40 -0700699
700Args:
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700701 studentId: string, Restricts returned courses to those having a student with the specified
702identifier. The identifier can be one of the following:
703
704* the numeric identifier for the user
705* the email address of the user
Bu Sun Kim65020912020-05-20 12:08:20 -0700706* the string literal `&quot;me&quot;`, indicating the requesting user
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700707 pageToken: string, nextPageToken
708value returned from a previous
709list call,
710indicating that the subsequent page of results should be returned.
711
712The list request must be
713otherwise identical to the one that resulted in this token.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700714 courseStates: string, Restricts returned courses to those in one of the specified states
715The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. (repeated)
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the
717server may assign a maximum.
718
719The server may return fewer than the specified number of results.
720 teacherId: string, Restricts returned courses to those having a teacher with the specified
721identifier. The identifier can be one of the following:
722
723* the numeric identifier for the user
724* the email address of the user
725* the string literal `&quot;me&quot;`, indicating the requesting user
Takashi Matsuo06694102015-09-11 13:55:40 -0700726 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700727 Allowed values
728 1 - v1 error format
729 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700730
731Returns:
732 An object of the form:
733
734 { # Response when listing courses.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700735 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further
736 # results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 &quot;courses&quot;: [ # Courses that match the list request.
Takashi Matsuo06694102015-09-11 13:55:40 -0700738 { # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700739 &quot;description&quot;: &quot;A String&quot;, # Optional description.
740 # For example, &quot;We&#x27;ll be learning about the structure of living
741 # creatures from a combination of textbooks, guest lectures, and lab work.
742 # Expect to be excited!&quot;
743 # If set, this field must be a valid UTF-8 string and no longer than 30,000
744 # characters.
745 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
746 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700747 #
748 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700749 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
750 #
751 # Read-only.
752 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
753 # course.
754 #
755 # This field will only be set for teachers of the course and domain
756 # administrators.
757 #
758 # Read-only.
759 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
760 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
761 #
762 # Read-only.
763 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
764 #
765 # Read-only.
766 },
767 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
768 #
769 # When
770 # creating a course,
771 # you may optionally set this identifier to an
772 # alias string in the
773 # request to create a corresponding alias. The `id` is still assigned by
774 # Classroom and cannot be updated after the course is created.
775 #
776 # Specifying this field in a course update mask results in an error.
777 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
778 # Classroom adds events for course work and announcements in the course.
779 #
780 # Read-only.
781 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
782 #
783 # When specified as a parameter of a
784 # create course request, this
785 # field is required.
786 # The identifier can be one of the following:
787 #
788 # * the numeric identifier for the user
789 # * the email address of the user
790 # * the string literal `&quot;me&quot;`, indicating the requesting user
791 #
792 # This must be set in a create request. Admins can also specify this field
793 # in a patch course request to
794 # transfer ownership. In other contexts, it is read-only.
795 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
796 #
797 # Read-only.
798 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
799 #
800 # Read-only.
801 { # A set of materials that appears on the &quot;About&quot; page of the course.
802 # These materials might include a syllabus, schedule, or other background
803 # information relating to the course as a whole.
804 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
805 &quot;materials&quot;: [ # Materials attached to this set.
806 { # A material attached to a course as part of a material set.
807 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
808 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
809 #
810 # Read-only.
811 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
812 #
813 # Read-only.
814 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
815 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
816 #
817 # Read-only.
818 },
819 &quot;link&quot;: { # URL item. # Link atatchment.
820 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
821 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
822 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
823 #
824 # Read-only.
825 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
826 #
827 # Read-only.
828 },
829 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
830 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
831 #
832 # Read-only.
833 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
834 #
835 # Read-only.
836 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
837 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
838 #
839 # Read-only.
840 },
841 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
842 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
843 #
844 # Read-only.
845 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
846 # Only set if respsonses have been recorded and only when the
847 # requesting user is an editor of the form.
848 #
849 # Read-only.
850 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
851 #
852 # Read-only.
853 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
854 },
855 },
856 ],
857 },
858 ],
859 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
860 # This group does not accept email and can only be used for permissions.
861 #
862 # Read-only.
863 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
864 # For example, &quot;10th Grade Biology&quot;.
865 # The name is required. It must be between 1 and 750 characters and a valid
866 # UTF-8 string.
867 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
868 # For example, &quot;Welcome to 10th Grade Biology.&quot;
869 # If set, this field must be a valid UTF-8 string and no longer than 3600
870 # characters.
871 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
872 # For example, &quot;Period 2&quot;.
873 # If set, this field must be a valid UTF-8 string and no longer than 2800
874 # characters.
875 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
876 # This group does not accept email and can only be used for permissions.
877 #
878 # Read-only.
879 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
880 # For example, &quot;301&quot;.
881 # If set, this field must be a valid UTF-8 string and no longer than 650
882 # characters.
883 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
884 # If unspecified, the default state is `PROVISIONED`.
885 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
886 # Specifying this field in a course update mask results in an error.
887 #
888 # Read-only.
889 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
890 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700891 #
892 # Read-only.
893 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700894 ],
895 }</pre>
896</div>
897
898<div class="method">
899 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
900 <pre>Retrieves the next page of results.
901
902Args:
903 previous_request: The request for the previous page. (required)
904 previous_response: The response from the request for the previous page. (required)
905
906Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 A request object that you can call &#x27;execute()&#x27; on to request the next
Takashi Matsuo06694102015-09-11 13:55:40 -0700908 page. Returns None if there are no more items in the collection.
909 </pre>
910</div>
911
912<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700913 <code class="details" id="patch">patch(id, body=None, updateMask=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700914 <pre>Updates one or more fields in a course.
915
916This method returns the following error codes:
917
918* `PERMISSION_DENIED` if the requesting user is not permitted to modify the
919requested course or for access errors.
920* `NOT_FOUND` if no course exists with the requested ID.
921* `INVALID_ARGUMENT` if invalid fields are specified in the update mask or
922if no update mask is supplied.
923* `FAILED_PRECONDITION` for the following request errors:
924 * CourseNotModifiable
Takashi Matsuo06694102015-09-11 13:55:40 -0700925
926Args:
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700927 id: string, Identifier of the course to update.
928This identifier can be either the Classroom-assigned identifier or an
929alias. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700930 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700931 The object takes the form of:
932
933{ # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700934 &quot;description&quot;: &quot;A String&quot;, # Optional description.
935 # For example, &quot;We&#x27;ll be learning about the structure of living
936 # creatures from a combination of textbooks, guest lectures, and lab work.
937 # Expect to be excited!&quot;
938 # If set, this field must be a valid UTF-8 string and no longer than 30,000
939 # characters.
940 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
941 # Specifying this field in a course update mask results in an error.
942 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700943 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700944 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
945 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700946 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700947 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
948 # course.
949 #
950 # This field will only be set for teachers of the course and domain
951 # administrators.
952 #
953 # Read-only.
954 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
955 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
956 #
957 # Read-only.
958 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
959 #
960 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700962 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
963 #
964 # When
965 # creating a course,
966 # you may optionally set this identifier to an
967 # alias string in the
968 # request to create a corresponding alias. The `id` is still assigned by
969 # Classroom and cannot be updated after the course is created.
970 #
971 # Specifying this field in a course update mask results in an error.
972 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
973 # Classroom adds events for course work and announcements in the course.
974 #
975 # Read-only.
976 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
977 #
978 # When specified as a parameter of a
979 # create course request, this
980 # field is required.
981 # The identifier can be one of the following:
982 #
983 # * the numeric identifier for the user
984 # * the email address of the user
985 # * the string literal `&quot;me&quot;`, indicating the requesting user
986 #
987 # This must be set in a create request. Admins can also specify this field
988 # in a patch course request to
989 # transfer ownership. In other contexts, it is read-only.
990 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
991 #
992 # Read-only.
993 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
994 #
995 # Read-only.
996 { # A set of materials that appears on the &quot;About&quot; page of the course.
997 # These materials might include a syllabus, schedule, or other background
998 # information relating to the course as a whole.
999 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1000 &quot;materials&quot;: [ # Materials attached to this set.
1001 { # A material attached to a course as part of a material set.
1002 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
1003 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1004 #
1005 # Read-only.
1006 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1007 #
1008 # Read-only.
1009 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
1010 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1011 #
1012 # Read-only.
1013 },
1014 &quot;link&quot;: { # URL item. # Link atatchment.
1015 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1016 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1017 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1018 #
1019 # Read-only.
1020 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1021 #
1022 # Read-only.
1023 },
1024 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
1025 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1026 #
1027 # Read-only.
1028 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1029 #
1030 # Read-only.
1031 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1032 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1033 #
1034 # Read-only.
1035 },
1036 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
1037 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1038 #
1039 # Read-only.
1040 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1041 # Only set if respsonses have been recorded and only when the
1042 # requesting user is an editor of the form.
1043 #
1044 # Read-only.
1045 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1046 #
1047 # Read-only.
1048 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
1049 },
1050 },
1051 ],
1052 },
1053 ],
1054 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1055 # This group does not accept email and can only be used for permissions.
1056 #
1057 # Read-only.
1058 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1059 # For example, &quot;10th Grade Biology&quot;.
1060 # The name is required. It must be between 1 and 750 characters and a valid
1061 # UTF-8 string.
1062 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1063 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1064 # If set, this field must be a valid UTF-8 string and no longer than 3600
1065 # characters.
1066 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1067 # For example, &quot;Period 2&quot;.
1068 # If set, this field must be a valid UTF-8 string and no longer than 2800
1069 # characters.
1070 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1071 # This group does not accept email and can only be used for permissions.
1072 #
1073 # Read-only.
1074 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1075 # For example, &quot;301&quot;.
1076 # If set, this field must be a valid UTF-8 string and no longer than 650
1077 # characters.
1078 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1079 # If unspecified, the default state is `PROVISIONED`.
1080 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1081 # Specifying this field in a course update mask results in an error.
1082 #
1083 # Read-only.
1084 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
1085 # Specifying this field in a course update mask results in an error.
1086 #
1087 # Read-only.
1088 }
Takashi Matsuo06694102015-09-11 13:55:40 -07001089
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001090 updateMask: string, Mask that identifies which fields on the course to update.
1091This field is required to do an update. The update will fail if invalid
1092fields are specified. The following fields are valid:
1093
1094* `name`
1095* `section`
1096* `descriptionHeading`
1097* `description`
1098* `room`
1099* `courseState`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001100* `ownerId`
1101
1102Note: patches to ownerId are treated as being effective immediately, but in
1103practice it may take some time for the ownership transfer of all affected
1104resources to complete.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001105
1106When set in a query parameter, this field should be specified as
1107
Dan O'Mearadd494642020-05-01 07:42:23 -07001108`updateMask=&lt;field1&gt;,&lt;field2&gt;,...`
Takashi Matsuo06694102015-09-11 13:55:40 -07001109 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001110 Allowed values
1111 1 - v1 error format
1112 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001113
1114Returns:
1115 An object of the form:
1116
1117 { # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001118 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1119 # For example, &quot;We&#x27;ll be learning about the structure of living
1120 # creatures from a combination of textbooks, guest lectures, and lab work.
1121 # Expect to be excited!&quot;
1122 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1123 # characters.
1124 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1125 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001126 #
1127 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001128 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001129 #
1130 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001131 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1132 # course.
1133 #
1134 # This field will only be set for teachers of the course and domain
1135 # administrators.
1136 #
1137 # Read-only.
1138 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1139 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1140 #
1141 # Read-only.
1142 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1143 #
1144 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001146 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
1147 #
1148 # When
1149 # creating a course,
1150 # you may optionally set this identifier to an
1151 # alias string in the
1152 # request to create a corresponding alias. The `id` is still assigned by
1153 # Classroom and cannot be updated after the course is created.
1154 #
1155 # Specifying this field in a course update mask results in an error.
1156 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1157 # Classroom adds events for course work and announcements in the course.
1158 #
1159 # Read-only.
1160 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1161 #
1162 # When specified as a parameter of a
1163 # create course request, this
1164 # field is required.
1165 # The identifier can be one of the following:
1166 #
1167 # * the numeric identifier for the user
1168 # * the email address of the user
1169 # * the string literal `&quot;me&quot;`, indicating the requesting user
1170 #
1171 # This must be set in a create request. Admins can also specify this field
1172 # in a patch course request to
1173 # transfer ownership. In other contexts, it is read-only.
1174 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1175 #
1176 # Read-only.
1177 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1178 #
1179 # Read-only.
1180 { # A set of materials that appears on the &quot;About&quot; page of the course.
1181 # These materials might include a syllabus, schedule, or other background
1182 # information relating to the course as a whole.
1183 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1184 &quot;materials&quot;: [ # Materials attached to this set.
1185 { # A material attached to a course as part of a material set.
1186 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
1187 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1188 #
1189 # Read-only.
1190 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1191 #
1192 # Read-only.
1193 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
1194 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1195 #
1196 # Read-only.
1197 },
1198 &quot;link&quot;: { # URL item. # Link atatchment.
1199 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1200 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1201 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1202 #
1203 # Read-only.
1204 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1205 #
1206 # Read-only.
1207 },
1208 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
1209 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1210 #
1211 # Read-only.
1212 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1213 #
1214 # Read-only.
1215 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1216 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1217 #
1218 # Read-only.
1219 },
1220 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
1221 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1222 #
1223 # Read-only.
1224 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1225 # Only set if respsonses have been recorded and only when the
1226 # requesting user is an editor of the form.
1227 #
1228 # Read-only.
1229 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1230 #
1231 # Read-only.
1232 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
1233 },
1234 },
1235 ],
1236 },
1237 ],
1238 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1239 # This group does not accept email and can only be used for permissions.
1240 #
1241 # Read-only.
1242 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1243 # For example, &quot;10th Grade Biology&quot;.
1244 # The name is required. It must be between 1 and 750 characters and a valid
1245 # UTF-8 string.
1246 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1247 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1248 # If set, this field must be a valid UTF-8 string and no longer than 3600
1249 # characters.
1250 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1251 # For example, &quot;Period 2&quot;.
1252 # If set, this field must be a valid UTF-8 string and no longer than 2800
1253 # characters.
1254 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1255 # This group does not accept email and can only be used for permissions.
1256 #
1257 # Read-only.
1258 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1259 # For example, &quot;301&quot;.
1260 # If set, this field must be a valid UTF-8 string and no longer than 650
1261 # characters.
1262 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1263 # If unspecified, the default state is `PROVISIONED`.
1264 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1265 # Specifying this field in a course update mask results in an error.
1266 #
1267 # Read-only.
1268 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
1269 # Specifying this field in a course update mask results in an error.
1270 #
1271 # Read-only.
1272 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -07001273</div>
1274
1275<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001276 <code class="details" id="update">update(id, body=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001277 <pre>Updates a course.
1278
1279This method returns the following error codes:
1280
1281* `PERMISSION_DENIED` if the requesting user is not permitted to modify the
1282requested course or for access errors.
1283* `NOT_FOUND` if no course exists with the requested ID.
1284* `FAILED_PRECONDITION` for the following request errors:
1285 * CourseNotModifiable
Takashi Matsuo06694102015-09-11 13:55:40 -07001286
1287Args:
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001288 id: string, Identifier of the course to update.
1289This identifier can be either the Classroom-assigned identifier or an
1290alias. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001291 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07001292 The object takes the form of:
1293
1294{ # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001295 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1296 # For example, &quot;We&#x27;ll be learning about the structure of living
1297 # creatures from a combination of textbooks, guest lectures, and lab work.
1298 # Expect to be excited!&quot;
1299 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1300 # characters.
1301 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1302 # Specifying this field in a course update mask results in an error.
1303 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001304 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001305 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
1306 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001307 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001308 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1309 # course.
1310 #
1311 # This field will only be set for teachers of the course and domain
1312 # administrators.
1313 #
1314 # Read-only.
1315 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1316 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1317 #
1318 # Read-only.
1319 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1320 #
1321 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001323 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
1324 #
1325 # When
1326 # creating a course,
1327 # you may optionally set this identifier to an
1328 # alias string in the
1329 # request to create a corresponding alias. The `id` is still assigned by
1330 # Classroom and cannot be updated after the course is created.
1331 #
1332 # Specifying this field in a course update mask results in an error.
1333 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1334 # Classroom adds events for course work and announcements in the course.
1335 #
1336 # Read-only.
1337 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1338 #
1339 # When specified as a parameter of a
1340 # create course request, this
1341 # field is required.
1342 # The identifier can be one of the following:
1343 #
1344 # * the numeric identifier for the user
1345 # * the email address of the user
1346 # * the string literal `&quot;me&quot;`, indicating the requesting user
1347 #
1348 # This must be set in a create request. Admins can also specify this field
1349 # in a patch course request to
1350 # transfer ownership. In other contexts, it is read-only.
1351 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1352 #
1353 # Read-only.
1354 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1355 #
1356 # Read-only.
1357 { # A set of materials that appears on the &quot;About&quot; page of the course.
1358 # These materials might include a syllabus, schedule, or other background
1359 # information relating to the course as a whole.
1360 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1361 &quot;materials&quot;: [ # Materials attached to this set.
1362 { # A material attached to a course as part of a material set.
1363 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
1364 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1365 #
1366 # Read-only.
1367 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1368 #
1369 # Read-only.
1370 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
1371 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1372 #
1373 # Read-only.
1374 },
1375 &quot;link&quot;: { # URL item. # Link atatchment.
1376 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1377 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1378 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1379 #
1380 # Read-only.
1381 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1382 #
1383 # Read-only.
1384 },
1385 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
1386 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1387 #
1388 # Read-only.
1389 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1390 #
1391 # Read-only.
1392 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1393 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1394 #
1395 # Read-only.
1396 },
1397 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
1398 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1399 #
1400 # Read-only.
1401 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1402 # Only set if respsonses have been recorded and only when the
1403 # requesting user is an editor of the form.
1404 #
1405 # Read-only.
1406 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1407 #
1408 # Read-only.
1409 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
1410 },
1411 },
1412 ],
1413 },
1414 ],
1415 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1416 # This group does not accept email and can only be used for permissions.
1417 #
1418 # Read-only.
1419 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1420 # For example, &quot;10th Grade Biology&quot;.
1421 # The name is required. It must be between 1 and 750 characters and a valid
1422 # UTF-8 string.
1423 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1424 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1425 # If set, this field must be a valid UTF-8 string and no longer than 3600
1426 # characters.
1427 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1428 # For example, &quot;Period 2&quot;.
1429 # If set, this field must be a valid UTF-8 string and no longer than 2800
1430 # characters.
1431 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1432 # This group does not accept email and can only be used for permissions.
1433 #
1434 # Read-only.
1435 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1436 # For example, &quot;301&quot;.
1437 # If set, this field must be a valid UTF-8 string and no longer than 650
1438 # characters.
1439 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1440 # If unspecified, the default state is `PROVISIONED`.
1441 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1442 # Specifying this field in a course update mask results in an error.
1443 #
1444 # Read-only.
1445 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
1446 # Specifying this field in a course update mask results in an error.
1447 #
1448 # Read-only.
1449 }
Takashi Matsuo06694102015-09-11 13:55:40 -07001450
1451 x__xgafv: string, V1 error format.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001452 Allowed values
1453 1 - v1 error format
1454 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001455
1456Returns:
1457 An object of the form:
1458
1459 { # A Course in Classroom.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001460 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1461 # For example, &quot;We&#x27;ll be learning about the structure of living
1462 # creatures from a combination of textbooks, guest lectures, and lab work.
1463 # Expect to be excited!&quot;
1464 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1465 # characters.
1466 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1467 # Specifying this field in a course update mask results in an error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001468 #
1469 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001470 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001471 #
1472 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001473 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1474 # course.
1475 #
1476 # This field will only be set for teachers of the course and domain
1477 # administrators.
1478 #
1479 # Read-only.
1480 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1481 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1482 #
1483 # Read-only.
1484 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1485 #
1486 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001487 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001488 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
1489 #
1490 # When
1491 # creating a course,
1492 # you may optionally set this identifier to an
1493 # alias string in the
1494 # request to create a corresponding alias. The `id` is still assigned by
1495 # Classroom and cannot be updated after the course is created.
1496 #
1497 # Specifying this field in a course update mask results in an error.
1498 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1499 # Classroom adds events for course work and announcements in the course.
1500 #
1501 # Read-only.
1502 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1503 #
1504 # When specified as a parameter of a
1505 # create course request, this
1506 # field is required.
1507 # The identifier can be one of the following:
1508 #
1509 # * the numeric identifier for the user
1510 # * the email address of the user
1511 # * the string literal `&quot;me&quot;`, indicating the requesting user
1512 #
1513 # This must be set in a create request. Admins can also specify this field
1514 # in a patch course request to
1515 # transfer ownership. In other contexts, it is read-only.
1516 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1517 #
1518 # Read-only.
1519 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1520 #
1521 # Read-only.
1522 { # A set of materials that appears on the &quot;About&quot; page of the course.
1523 # These materials might include a syllabus, schedule, or other background
1524 # information relating to the course as a whole.
1525 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1526 &quot;materials&quot;: [ # Materials attached to this set.
1527 { # A material attached to a course as part of a material set.
1528 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
1529 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1530 #
1531 # Read-only.
1532 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1533 #
1534 # Read-only.
1535 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
1536 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1537 #
1538 # Read-only.
1539 },
1540 &quot;link&quot;: { # URL item. # Link atatchment.
1541 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1542 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1543 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1544 #
1545 # Read-only.
1546 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1547 #
1548 # Read-only.
1549 },
1550 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
1551 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1552 #
1553 # Read-only.
1554 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1555 #
1556 # Read-only.
1557 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1558 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1559 #
1560 # Read-only.
1561 },
1562 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
1563 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1564 #
1565 # Read-only.
1566 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1567 # Only set if respsonses have been recorded and only when the
1568 # requesting user is an editor of the form.
1569 #
1570 # Read-only.
1571 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1572 #
1573 # Read-only.
1574 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
1575 },
1576 },
1577 ],
1578 },
1579 ],
1580 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1581 # This group does not accept email and can only be used for permissions.
1582 #
1583 # Read-only.
1584 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1585 # For example, &quot;10th Grade Biology&quot;.
1586 # The name is required. It must be between 1 and 750 characters and a valid
1587 # UTF-8 string.
1588 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1589 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1590 # If set, this field must be a valid UTF-8 string and no longer than 3600
1591 # characters.
1592 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1593 # For example, &quot;Period 2&quot;.
1594 # If set, this field must be a valid UTF-8 string and no longer than 2800
1595 # characters.
1596 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1597 # This group does not accept email and can only be used for permissions.
1598 #
1599 # Read-only.
1600 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1601 # For example, &quot;301&quot;.
1602 # If set, this field must be a valid UTF-8 string and no longer than 650
1603 # characters.
1604 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1605 # If unspecified, the default state is `PROVISIONED`.
1606 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1607 # Specifying this field in a course update mask results in an error.
1608 #
1609 # Read-only.
1610 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
1611 # Specifying this field in a course update mask results in an error.
1612 #
1613 # Read-only.
1614 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -07001615</div>
1616
1617</body></html>