blob: 80ecfadd8a7aa7d6008095c594347ffcf4f89d4b [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 Kim65020912020-05-20 12:08:20 -0700117 <code><a href="#list">list(studentId=None, pageToken=None, pageSize=None, teacherId=None, courseStates=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 Kim4ed7d3f2020-05-27 12:20:54 -0700152 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
153 # For example, &quot;10th Grade Biology&quot;.
154 # The name is required. It must be between 1 and 750 characters and a valid
155 # UTF-8 string.
156 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
157 # course.
158 #
159 # This field will only be set for teachers of the course and domain
160 # administrators.
161 #
162 # Read-only.
163 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
164 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
165 #
166 # Read-only.
167 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
168 #
169 # Read-only.
170 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
172 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700173 # If set, this field must be a valid UTF-8 string and no longer than 2800
174 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700176 #
177 # When
178 # creating a course,
179 # you may optionally set this identifier to an
180 # alias string in the
181 # request to create a corresponding alias. The `id` is still assigned by
182 # Classroom and cannot be updated after the course is created.
183 #
184 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
186 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700188 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
190 # This group does not accept email and can only be used for permissions.
191 #
192 # Read-only.
193 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
194 #
195 # Read-only.
196 { # A set of materials that appears on the &quot;About&quot; page of the course.
197 # These materials might include a syllabus, schedule, or other background
198 # information relating to the course as a whole.
199 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
200 &quot;materials&quot;: [ # Materials attached to this set.
201 { # A material attached to a course as part of a material set.
202 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
204 #
205 # Read-only.
206 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
207 #
208 # Read-only.
209 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700210 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
211 #
212 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 },
214 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
216 #
217 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
219 #
220 # Read-only.
221 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
222 #
223 # Read-only.
224 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 },
226 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700227 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
229 #
230 # Read-only.
231 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
232 #
233 # Read-only.
234 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
235 # Only set if respsonses have been recorded and only when the
236 # requesting user is an editor of the form.
237 #
238 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 },
240 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
242 #
243 # Read-only.
244 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
245 #
246 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700247 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
248 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 },
250 },
251 ],
252 },
253 ],
254 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
255 # Specifying this field in a course update mask results in an error.
256 #
257 # Read-only.
258 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
259 # For example, &quot;Welcome to 10th Grade Biology.&quot;
260 # If set, this field must be a valid UTF-8 string and no longer than 3600
261 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
263 # Specifying this field in a course update mask results in an error.
264 #
265 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700266 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
267 # Classroom adds events for course work and announcements in the course.
268 #
269 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
271 #
272 # Read-only.
273 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
274 #
275 # Read-only.
276 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
277 # If unspecified, the default state is `PROVISIONED`.
278 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
279 #
280 # When specified as a parameter of a
281 # create course request, this
282 # field is required.
283 # The identifier can be one of the following:
284 #
285 # * the numeric identifier for the user
286 # * the email address of the user
287 # * the string literal `&quot;me&quot;`, indicating the requesting user
288 #
289 # This must be set in a create request. Admins can also specify this field
290 # in a patch course request to
291 # transfer ownership. In other contexts, it is read-only.
292 &quot;description&quot;: &quot;A String&quot;, # Optional description.
293 # For example, &quot;We&#x27;ll be learning about the structure of living
294 # creatures from a combination of textbooks, guest lectures, and lab work.
295 # Expect to be excited!&quot;
296 # If set, this field must be a valid UTF-8 string and no longer than 30,000
297 # characters.
298 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
299 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700306}
307
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 Kim4ed7d3f2020-05-27 12:20:54 -0700317 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
318 # For example, &quot;10th Grade Biology&quot;.
319 # The name is required. It must be between 1 and 750 characters and a valid
320 # UTF-8 string.
321 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
322 # course.
323 #
324 # This field will only be set for teachers of the course and domain
325 # administrators.
326 #
327 # Read-only.
328 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
329 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
330 #
331 # Read-only.
332 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
333 #
334 # Read-only.
335 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
337 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700338 # If set, this field must be a valid UTF-8 string and no longer than 2800
339 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700341 #
342 # When
343 # creating a course,
344 # you may optionally set this identifier to an
345 # alias string in the
346 # request to create a corresponding alias. The `id` is still assigned by
347 # Classroom and cannot be updated after the course is created.
348 #
349 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
351 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700353 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
355 # This group does not accept email and can only be used for permissions.
356 #
357 # Read-only.
358 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
359 #
360 # Read-only.
361 { # A set of materials that appears on the &quot;About&quot; page of the course.
362 # These materials might include a syllabus, schedule, or other background
363 # information relating to the course as a whole.
364 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
365 &quot;materials&quot;: [ # Materials attached to this set.
366 { # A material attached to a course as part of a material set.
367 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
369 #
370 # Read-only.
371 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
372 #
373 # Read-only.
374 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700375 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
376 #
377 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 },
379 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700380 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
381 #
382 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
384 #
385 # Read-only.
386 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
387 #
388 # Read-only.
389 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 },
391 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700392 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
394 #
395 # Read-only.
396 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
397 #
398 # Read-only.
399 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
400 # Only set if respsonses have been recorded and only when the
401 # requesting user is an editor of the form.
402 #
403 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 },
405 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
407 #
408 # Read-only.
409 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
410 #
411 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700412 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
413 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 },
415 },
416 ],
417 },
418 ],
419 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
420 # Specifying this field in a course update mask results in an error.
421 #
422 # Read-only.
423 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
424 # For example, &quot;Welcome to 10th Grade Biology.&quot;
425 # If set, this field must be a valid UTF-8 string and no longer than 3600
426 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
428 # Specifying this field in a course update mask results in an error.
429 #
430 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700431 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
432 # Classroom adds events for course work and announcements in the course.
433 #
434 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
436 #
437 # Read-only.
438 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
439 #
440 # Read-only.
441 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
442 # If unspecified, the default state is `PROVISIONED`.
443 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
444 #
445 # When specified as a parameter of a
446 # create course request, this
447 # field is required.
448 # The identifier can be one of the following:
449 #
450 # * the numeric identifier for the user
451 # * the email address of the user
452 # * the string literal `&quot;me&quot;`, indicating the requesting user
453 #
454 # This must be set in a create request. Admins can also specify this field
455 # in a patch course request to
456 # transfer ownership. In other contexts, it is read-only.
457 &quot;description&quot;: &quot;A String&quot;, # Optional description.
458 # For example, &quot;We&#x27;ll be learning about the structure of living
459 # creatures from a combination of textbooks, guest lectures, and lab work.
460 # Expect to be excited!&quot;
461 # If set, this field must be a valid UTF-8 string and no longer than 30,000
462 # characters.
463 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
464 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700471 }</pre>
472</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 Kim4ed7d3f2020-05-27 12:20:54 -0700531 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
532 # For example, &quot;10th Grade Biology&quot;.
533 # The name is required. It must be between 1 and 750 characters and a valid
534 # UTF-8 string.
535 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
536 # course.
537 #
538 # This field will only be set for teachers of the course and domain
539 # administrators.
540 #
541 # Read-only.
542 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
543 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
544 #
545 # Read-only.
546 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
547 #
548 # Read-only.
549 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
551 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700552 # If set, this field must be a valid UTF-8 string and no longer than 2800
553 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700555 #
556 # When
557 # creating a course,
558 # you may optionally set this identifier to an
559 # alias string in the
560 # request to create a corresponding alias. The `id` is still assigned by
561 # Classroom and cannot be updated after the course is created.
562 #
563 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
565 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700567 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
569 # This group does not accept email and can only be used for permissions.
570 #
571 # Read-only.
572 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
573 #
574 # Read-only.
575 { # A set of materials that appears on the &quot;About&quot; page of the course.
576 # These materials might include a syllabus, schedule, or other background
577 # information relating to the course as a whole.
578 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
579 &quot;materials&quot;: [ # Materials attached to this set.
580 { # A material attached to a course as part of a material set.
581 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
583 #
584 # Read-only.
585 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
586 #
587 # Read-only.
588 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700589 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
590 #
591 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 },
593 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700594 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
595 #
596 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
598 #
599 # Read-only.
600 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
601 #
602 # Read-only.
603 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700604 },
605 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700606 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
608 #
609 # Read-only.
610 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
611 #
612 # Read-only.
613 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
614 # Only set if respsonses have been recorded and only when the
615 # requesting user is an editor of the form.
616 #
617 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 },
619 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
621 #
622 # Read-only.
623 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
624 #
625 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700626 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
627 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 },
629 },
630 ],
631 },
632 ],
633 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
634 # Specifying this field in a course update mask results in an error.
635 #
636 # Read-only.
637 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
638 # For example, &quot;Welcome to 10th Grade Biology.&quot;
639 # If set, this field must be a valid UTF-8 string and no longer than 3600
640 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
642 # Specifying this field in a course update mask results in an error.
643 #
644 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700645 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
646 # Classroom adds events for course work and announcements in the course.
647 #
648 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
650 #
651 # Read-only.
652 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
653 #
654 # Read-only.
655 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
656 # If unspecified, the default state is `PROVISIONED`.
657 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
658 #
659 # When specified as a parameter of a
660 # create course request, this
661 # field is required.
662 # The identifier can be one of the following:
663 #
664 # * the numeric identifier for the user
665 # * the email address of the user
666 # * the string literal `&quot;me&quot;`, indicating the requesting user
667 #
668 # This must be set in a create request. Admins can also specify this field
669 # in a patch course request to
670 # transfer ownership. In other contexts, it is read-only.
671 &quot;description&quot;: &quot;A String&quot;, # Optional description.
672 # For example, &quot;We&#x27;ll be learning about the structure of living
673 # creatures from a combination of textbooks, guest lectures, and lab work.
674 # Expect to be excited!&quot;
675 # If set, this field must be a valid UTF-8 string and no longer than 30,000
676 # characters.
677 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
678 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700685 }</pre>
686</div>
687
688<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 <code class="details" id="list">list(studentId=None, pageToken=None, pageSize=None, teacherId=None, courseStates=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 Kim65020912020-05-20 12:08:20 -0700714 pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the
715server may assign a maximum.
716
717The server may return fewer than the specified number of results.
718 teacherId: string, Restricts returned courses to those having a teacher with the specified
719identifier. The identifier can be one of the following:
720
721* the numeric identifier for the user
722* the email address of the user
723* the string literal `&quot;me&quot;`, indicating the requesting user
724 courseStates: string, Restricts returned courses to those in one of the specified states
725The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. (repeated)
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 Kim65020912020-05-20 12:08:20 -0700735 &quot;courses&quot;: [ # Courses that match the list request.
Takashi Matsuo06694102015-09-11 13:55:40 -0700736 { # A Course in Classroom.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700737 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
738 # For example, &quot;10th Grade Biology&quot;.
739 # The name is required. It must be between 1 and 750 characters and a valid
740 # UTF-8 string.
741 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
742 # course.
743 #
744 # This field will only be set for teachers of the course and domain
745 # administrators.
746 #
747 # Read-only.
748 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
749 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
750 #
751 # Read-only.
752 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
753 #
754 # Read-only.
755 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
757 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700758 # If set, this field must be a valid UTF-8 string and no longer than 2800
759 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700761 #
762 # When
763 # creating a course,
764 # you may optionally set this identifier to an
765 # alias string in the
766 # request to create a corresponding alias. The `id` is still assigned by
767 # Classroom and cannot be updated after the course is created.
768 #
769 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
771 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700773 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
775 # This group does not accept email and can only be used for permissions.
776 #
777 # Read-only.
778 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
779 #
780 # Read-only.
781 { # A set of materials that appears on the &quot;About&quot; page of the course.
782 # These materials might include a syllabus, schedule, or other background
783 # information relating to the course as a whole.
784 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
785 &quot;materials&quot;: [ # Materials attached to this set.
786 { # A material attached to a course as part of a material set.
787 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
789 #
790 # Read-only.
791 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
792 #
793 # Read-only.
794 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700795 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
796 #
797 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 },
799 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700800 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
801 #
802 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
804 #
805 # Read-only.
806 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
807 #
808 # Read-only.
809 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 },
811 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700812 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
814 #
815 # Read-only.
816 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
817 #
818 # Read-only.
819 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
820 # Only set if respsonses have been recorded and only when the
821 # requesting user is an editor of the form.
822 #
823 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 },
825 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
827 #
828 # Read-only.
829 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
830 #
831 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700832 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
833 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 },
835 },
836 ],
837 },
838 ],
839 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
840 # Specifying this field in a course update mask results in an error.
841 #
842 # Read-only.
843 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
844 # For example, &quot;Welcome to 10th Grade Biology.&quot;
845 # If set, this field must be a valid UTF-8 string and no longer than 3600
846 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
848 # Specifying this field in a course update mask results in an error.
849 #
850 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700851 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
852 # Classroom adds events for course work and announcements in the course.
853 #
854 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
856 #
857 # Read-only.
858 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
859 #
860 # Read-only.
861 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
862 # If unspecified, the default state is `PROVISIONED`.
863 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
864 #
865 # When specified as a parameter of a
866 # create course request, this
867 # field is required.
868 # The identifier can be one of the following:
869 #
870 # * the numeric identifier for the user
871 # * the email address of the user
872 # * the string literal `&quot;me&quot;`, indicating the requesting user
873 #
874 # This must be set in a create request. Admins can also specify this field
875 # in a patch course request to
876 # transfer ownership. In other contexts, it is read-only.
877 &quot;description&quot;: &quot;A String&quot;, # Optional description.
878 # For example, &quot;We&#x27;ll be learning about the structure of living
879 # creatures from a combination of textbooks, guest lectures, and lab work.
880 # Expect to be excited!&quot;
881 # If set, this field must be a valid UTF-8 string and no longer than 30,000
882 # characters.
883 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
884 # This group does not accept email and can only be used for permissions.
885 #
886 # Read-only.
887 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course.
888 # Specifying this field in a course update mask results in an error.
889 #
890 # Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700891 },
892 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further
894 # results are available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700895 }</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 Kim4ed7d3f2020-05-27 12:20:54 -0700934 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
935 # For example, &quot;10th Grade Biology&quot;.
936 # The name is required. It must be between 1 and 750 characters and a valid
937 # UTF-8 string.
938 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
939 # course.
940 #
941 # This field will only be set for teachers of the course and domain
942 # administrators.
943 #
944 # Read-only.
945 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
946 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
947 #
948 # Read-only.
949 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
950 #
951 # Read-only.
952 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
954 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700955 # If set, this field must be a valid UTF-8 string and no longer than 2800
956 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700958 #
959 # When
960 # creating a course,
961 # you may optionally set this identifier to an
962 # alias string in the
963 # request to create a corresponding alias. The `id` is still assigned by
964 # Classroom and cannot be updated after the course is created.
965 #
966 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
968 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700970 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
972 # This group does not accept email and can only be used for permissions.
973 #
974 # Read-only.
975 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
976 #
977 # Read-only.
978 { # A set of materials that appears on the &quot;About&quot; page of the course.
979 # These materials might include a syllabus, schedule, or other background
980 # information relating to the course as a whole.
981 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
982 &quot;materials&quot;: [ # Materials attached to this set.
983 { # A material attached to a course as part of a material set.
984 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700985 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
986 #
987 # Read-only.
988 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
989 #
990 # Read-only.
991 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700992 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
993 #
994 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700995 },
996 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700997 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
998 #
999 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1001 #
1002 # Read-only.
1003 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1004 #
1005 # Read-only.
1006 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 },
1008 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001009 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1011 #
1012 # Read-only.
1013 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1014 #
1015 # Read-only.
1016 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1017 # Only set if respsonses have been recorded and only when the
1018 # requesting user is an editor of the form.
1019 #
1020 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 },
1022 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1024 #
1025 # Read-only.
1026 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1027 #
1028 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001029 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1030 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 },
1032 },
1033 ],
1034 },
1035 ],
1036 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1037 # Specifying this field in a course update mask results in an error.
1038 #
1039 # Read-only.
1040 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1041 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1042 # If set, this field must be a valid UTF-8 string and no longer than 3600
1043 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1045 # Specifying this field in a course update mask results in an error.
1046 #
1047 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1049 # Classroom adds events for course work and announcements in the course.
1050 #
1051 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
1053 #
1054 # Read-only.
1055 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1056 #
1057 # Read-only.
1058 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1059 # If unspecified, the default state is `PROVISIONED`.
1060 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1061 #
1062 # When specified as a parameter of a
1063 # create course request, this
1064 # field is required.
1065 # The identifier can be one of the following:
1066 #
1067 # * the numeric identifier for the user
1068 # * the email address of the user
1069 # * the string literal `&quot;me&quot;`, indicating the requesting user
1070 #
1071 # This must be set in a create request. Admins can also specify this field
1072 # in a patch course request to
1073 # transfer ownership. In other contexts, it is read-only.
1074 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1075 # For example, &quot;We&#x27;ll be learning about the structure of living
1076 # creatures from a combination of textbooks, guest lectures, and lab work.
1077 # Expect to be excited!&quot;
1078 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1079 # characters.
1080 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1081 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001088}
1089
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 Kim4ed7d3f2020-05-27 12:20:54 -07001118 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1119 # For example, &quot;10th Grade Biology&quot;.
1120 # The name is required. It must be between 1 and 750 characters and a valid
1121 # UTF-8 string.
1122 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1123 # course.
1124 #
1125 # This field will only be set for teachers of the course and domain
1126 # administrators.
1127 #
1128 # Read-only.
1129 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1130 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1131 #
1132 # Read-only.
1133 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1134 #
1135 # Read-only.
1136 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1138 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001139 # If set, this field must be a valid UTF-8 string and no longer than 2800
1140 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001141 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001142 #
1143 # When
1144 # creating a course,
1145 # you may optionally set this identifier to an
1146 # alias string in the
1147 # request to create a corresponding alias. The `id` is still assigned by
1148 # Classroom and cannot be updated after the course is created.
1149 #
1150 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001151 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1152 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001153 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001154 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001155 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1156 # This group does not accept email and can only be used for permissions.
1157 #
1158 # Read-only.
1159 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1160 #
1161 # Read-only.
1162 { # A set of materials that appears on the &quot;About&quot; page of the course.
1163 # These materials might include a syllabus, schedule, or other background
1164 # information relating to the course as a whole.
1165 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1166 &quot;materials&quot;: [ # Materials attached to this set.
1167 { # A material attached to a course as part of a material set.
1168 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1170 #
1171 # Read-only.
1172 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1173 #
1174 # Read-only.
1175 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001176 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1177 #
1178 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 },
1180 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001181 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1182 #
1183 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1185 #
1186 # Read-only.
1187 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1188 #
1189 # Read-only.
1190 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001191 },
1192 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001193 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1195 #
1196 # Read-only.
1197 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1198 #
1199 # Read-only.
1200 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1201 # Only set if respsonses have been recorded and only when the
1202 # requesting user is an editor of the form.
1203 #
1204 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 },
1206 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1208 #
1209 # Read-only.
1210 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1211 #
1212 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001213 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1214 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001215 },
1216 },
1217 ],
1218 },
1219 ],
1220 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1221 # Specifying this field in a course update mask results in an error.
1222 #
1223 # Read-only.
1224 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1225 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1226 # If set, this field must be a valid UTF-8 string and no longer than 3600
1227 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1229 # Specifying this field in a course update mask results in an error.
1230 #
1231 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001232 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1233 # Classroom adds events for course work and announcements in the course.
1234 #
1235 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001236 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
1237 #
1238 # Read-only.
1239 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1240 #
1241 # Read-only.
1242 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1243 # If unspecified, the default state is `PROVISIONED`.
1244 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1245 #
1246 # When specified as a parameter of a
1247 # create course request, this
1248 # field is required.
1249 # The identifier can be one of the following:
1250 #
1251 # * the numeric identifier for the user
1252 # * the email address of the user
1253 # * the string literal `&quot;me&quot;`, indicating the requesting user
1254 #
1255 # This must be set in a create request. Admins can also specify this field
1256 # in a patch course request to
1257 # transfer ownership. In other contexts, it is read-only.
1258 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1259 # For example, &quot;We&#x27;ll be learning about the structure of living
1260 # creatures from a combination of textbooks, guest lectures, and lab work.
1261 # Expect to be excited!&quot;
1262 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1263 # characters.
1264 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1265 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001272 }</pre>
1273</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 Kim4ed7d3f2020-05-27 12:20:54 -07001295 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1296 # For example, &quot;10th Grade Biology&quot;.
1297 # The name is required. It must be between 1 and 750 characters and a valid
1298 # UTF-8 string.
1299 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1300 # course.
1301 #
1302 # This field will only be set for teachers of the course and domain
1303 # administrators.
1304 #
1305 # Read-only.
1306 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1307 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1308 #
1309 # Read-only.
1310 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1311 #
1312 # Read-only.
1313 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1315 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001316 # If set, this field must be a valid UTF-8 string and no longer than 2800
1317 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001319 #
1320 # When
1321 # creating a course,
1322 # you may optionally set this identifier to an
1323 # alias string in the
1324 # request to create a corresponding alias. The `id` is still assigned by
1325 # Classroom and cannot be updated after the course is created.
1326 #
1327 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1329 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001330 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001331 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1333 # This group does not accept email and can only be used for permissions.
1334 #
1335 # Read-only.
1336 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1337 #
1338 # Read-only.
1339 { # A set of materials that appears on the &quot;About&quot; page of the course.
1340 # These materials might include a syllabus, schedule, or other background
1341 # information relating to the course as a whole.
1342 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1343 &quot;materials&quot;: [ # Materials attached to this set.
1344 { # A material attached to a course as part of a material set.
1345 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1347 #
1348 # Read-only.
1349 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1350 #
1351 # Read-only.
1352 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001353 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1354 #
1355 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 },
1357 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001358 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1359 #
1360 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1362 #
1363 # Read-only.
1364 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1365 #
1366 # Read-only.
1367 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001368 },
1369 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001370 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -07001371 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1372 #
1373 # Read-only.
1374 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1375 #
1376 # Read-only.
1377 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1378 # Only set if respsonses have been recorded and only when the
1379 # requesting user is an editor of the form.
1380 #
1381 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 },
1383 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1385 #
1386 # Read-only.
1387 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1388 #
1389 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001390 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1391 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 },
1393 },
1394 ],
1395 },
1396 ],
1397 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1398 # Specifying this field in a course update mask results in an error.
1399 #
1400 # Read-only.
1401 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1402 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1403 # If set, this field must be a valid UTF-8 string and no longer than 3600
1404 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001405 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1406 # Specifying this field in a course update mask results in an error.
1407 #
1408 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001409 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1410 # Classroom adds events for course work and announcements in the course.
1411 #
1412 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001413 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
1414 #
1415 # Read-only.
1416 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1417 #
1418 # Read-only.
1419 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1420 # If unspecified, the default state is `PROVISIONED`.
1421 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1422 #
1423 # When specified as a parameter of a
1424 # create course request, this
1425 # field is required.
1426 # The identifier can be one of the following:
1427 #
1428 # * the numeric identifier for the user
1429 # * the email address of the user
1430 # * the string literal `&quot;me&quot;`, indicating the requesting user
1431 #
1432 # This must be set in a create request. Admins can also specify this field
1433 # in a patch course request to
1434 # transfer ownership. In other contexts, it is read-only.
1435 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1436 # For example, &quot;We&#x27;ll be learning about the structure of living
1437 # creatures from a combination of textbooks, guest lectures, and lab work.
1438 # Expect to be excited!&quot;
1439 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1440 # characters.
1441 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1442 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001449}
1450
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 Kim4ed7d3f2020-05-27 12:20:54 -07001460 &quot;name&quot;: &quot;A String&quot;, # Name of the course.
1461 # For example, &quot;10th Grade Biology&quot;.
1462 # The name is required. It must be between 1 and 750 characters and a valid
1463 # UTF-8 string.
1464 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the
1465 # course.
1466 #
1467 # This field will only be set for teachers of the course and domain
1468 # administrators.
1469 #
1470 # Read-only.
1471 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1472 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder.
1473 #
1474 # Read-only.
1475 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder.
1476 #
1477 # Read-only.
1478 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001479 &quot;section&quot;: &quot;A String&quot;, # Section of the course.
1480 # For example, &quot;Period 2&quot;.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001481 # If set, this field must be a valid UTF-8 string and no longer than 2800
1482 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001483 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001484 #
1485 # When
1486 # creating a course,
1487 # you may optionally set this identifier to an
1488 # alias string in the
1489 # request to create a corresponding alias. The `id` is still assigned by
1490 # Classroom and cannot be updated after the course is created.
1491 #
1492 # Specifying this field in a course update mask results in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &quot;room&quot;: &quot;A String&quot;, # Optional room location.
1494 # For example, &quot;301&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001495 # If set, this field must be a valid UTF-8 string and no longer than 650
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001496 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course.
1498 # This group does not accept email and can only be used for permissions.
1499 #
1500 # Read-only.
1501 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course.
1502 #
1503 # Read-only.
1504 { # A set of materials that appears on the &quot;About&quot; page of the course.
1505 # These materials might include a syllabus, schedule, or other background
1506 # information relating to the course as a whole.
1507 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
1508 &quot;materials&quot;: [ # Materials attached to this set.
1509 { # A material attached to a course as part of a material set.
1510 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001511 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1512 #
1513 # Read-only.
1514 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1515 #
1516 # Read-only.
1517 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001518 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1519 #
1520 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 },
1522 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001523 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1524 #
1525 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1527 #
1528 # Read-only.
1529 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1530 #
1531 # Read-only.
1532 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001533 },
1534 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001535 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
Bu Sun Kim65020912020-05-20 12:08:20 -07001536 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1537 #
1538 # Read-only.
1539 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1540 #
1541 # Read-only.
1542 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1543 # Only set if respsonses have been recorded and only when the
1544 # requesting user is an editor of the form.
1545 #
1546 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 },
1548 &quot;link&quot;: { # URL item. # Link atatchment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
1550 #
1551 # Read-only.
1552 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
1553 #
1554 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001555 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
1556 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 },
1558 },
1559 ],
1560 },
1561 ],
1562 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course.
1563 # Specifying this field in a course update mask results in an error.
1564 #
1565 # Read-only.
1566 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description.
1567 # For example, &quot;Welcome to 10th Grade Biology.&quot;
1568 # If set, this field must be a valid UTF-8 string and no longer than 3600
1569 # characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course.
1571 # Specifying this field in a course update mask results in an error.
1572 #
1573 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001574 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which
1575 # Classroom adds events for course work and announcements in the course.
1576 #
1577 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001578 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI.
1579 #
1580 # Read-only.
1581 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course.
1582 #
1583 # Read-only.
1584 &quot;courseState&quot;: &quot;A String&quot;, # State of the course.
1585 # If unspecified, the default state is `PROVISIONED`.
1586 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course.
1587 #
1588 # When specified as a parameter of a
1589 # create course request, this
1590 # field is required.
1591 # The identifier can be one of the following:
1592 #
1593 # * the numeric identifier for the user
1594 # * the email address of the user
1595 # * the string literal `&quot;me&quot;`, indicating the requesting user
1596 #
1597 # This must be set in a create request. Admins can also specify this field
1598 # in a patch course request to
1599 # transfer ownership. In other contexts, it is read-only.
1600 &quot;description&quot;: &quot;A String&quot;, # Optional description.
1601 # For example, &quot;We&#x27;ll be learning about the structure of living
1602 # creatures from a combination of textbooks, guest lectures, and lab work.
1603 # Expect to be excited!&quot;
1604 # If set, this field must be a valid UTF-8 string and no longer than 30,000
1605 # characters.
1606 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course.
1607 # This group does not accept email and can only be used for permissions.
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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001614 }</pre>
1615</div>
1616
1617</body></html>