blob: 79b4f77ebd3f210af822ef6ad0e2f2bf667b9523 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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> . <a href="classroom_v1.courses.announcements.html">announcements</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(courseId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates an announcement.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(courseId, id, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes an announcement.</p>
83<p class="toc_element">
84 <code><a href="#get">get(courseId, id, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns an announcement.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(courseId, orderBy=None, pageSize=None, pageToken=None, announcementStates=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Returns a list of announcements that the requester is permitted to view.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Modifies assignee mode and options of an announcement.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Updates one or more fields of an announcement.</p>
98<h3>Method Details</h3>
99<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 <code class="details" id="create">create(courseId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 <pre>Creates an announcement.
102
103This method returns the following error codes:
104
105* `PERMISSION_DENIED` if the requesting user is not permitted to access the
106requested course, create announcements in the requested course, share a
107Drive attachment, or for access errors.
108* `INVALID_ARGUMENT` if the request is malformed.
109* `NOT_FOUND` if the requested course does not exist.
110* `FAILED_PRECONDITION` for the following request error:
111 * AttachmentNotVisible
112
113Args:
114 courseId: string, Identifier of the course.
115This identifier can be either the Classroom-assigned identifier or an
116alias. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 The object takes the form of:
119
120{ # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
122 #
123 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 # Read-only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700128 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700129 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
132 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 # specified in this field can see the announcement.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 # coursework/announcement.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 ],
139 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
141 #
142 # Read-only.
143 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
144 # If unspecified, the default value is `ALL_STUDENTS`.
145 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
146 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
147 # This is only populated if `state` is `PUBLISHED`.
148 #
149 # Read-only.
150 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
151 #
152 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
154 # The text must be a valid UTF-8 string containing no more
155 # than 30,000 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
157 # If unspecified, the default state is `DRAFT`.
158 &quot;materials&quot;: [ # Additional materials.
159 #
160 # Announcements must have no more than 20 material items.
161 { # Material attached to course work.
162 #
163 # When creating attachments, setting the `form` field is not supported.
164 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
165 # if possible, and this is reflected in the response.
166 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
167 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
168 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
169 #
170 # Read-only.
171 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
172 #
173 # Read-only.
174 },
175 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
176 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
177 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
178 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
179 #
180 # Read-only.
181 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
182 #
183 # Read-only.
184 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
185 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
186 #
187 # Read-only.
188 },
189 },
190 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
191 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
192 #
193 # Read-only.
194 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
195 #
196 # Read-only.
197 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
198 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
199 #
200 # Read-only.
201 },
202 &quot;form&quot;: { # Google Forms item. # Google Forms material.
203 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
204 #
205 # Read-only.
206 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
207 # Only set if respsonses have been recorded and only when the
208 # requesting user is an editor of the form.
209 #
210 # Read-only.
211 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
212 #
213 # Read-only.
214 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
215 },
216 },
217 ],
218 }
219
220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225Returns:
226 An object of the form:
227
228 { # Announcement created by a teacher for students of the course
229 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
230 #
231 # Read-only.
232 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
233 #
234 # Read-only.
235 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
236 #
237 # Read-only.
238 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
239 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
240 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
241 # specified in this field can see the announcement.
242 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
243 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
244 # coursework/announcement.
245 &quot;A String&quot;,
246 ],
247 },
248 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
249 #
250 # Read-only.
251 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
252 # If unspecified, the default value is `ALL_STUDENTS`.
253 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
254 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
255 # This is only populated if `state` is `PUBLISHED`.
256 #
257 # Read-only.
258 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
259 #
260 # Read-only.
261 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
262 # The text must be a valid UTF-8 string containing no more
263 # than 30,000 characters.
264 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
265 # If unspecified, the default state is `DRAFT`.
266 &quot;materials&quot;: [ # Additional materials.
267 #
268 # Announcements must have no more than 20 material items.
269 { # Material attached to course work.
270 #
271 # When creating attachments, setting the `form` field is not supported.
272 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
273 # if possible, and this is reflected in the response.
274 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
275 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
276 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
277 #
278 # Read-only.
279 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
280 #
281 # Read-only.
282 },
283 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
284 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
285 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
286 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
287 #
288 # Read-only.
289 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
290 #
291 # Read-only.
292 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
293 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
294 #
295 # Read-only.
296 },
297 },
298 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
299 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
300 #
301 # Read-only.
302 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
303 #
304 # Read-only.
305 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
306 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
307 #
308 # Read-only.
309 },
310 &quot;form&quot;: { # Google Forms item. # Google Forms material.
311 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
312 #
313 # Read-only.
314 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
315 # Only set if respsonses have been recorded and only when the
316 # requesting user is an editor of the form.
317 #
318 # Read-only.
319 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
320 #
321 # Read-only.
322 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
323 },
324 },
325 ],
326 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327</div>
328
329<div class="method">
330 <code class="details" id="delete">delete(courseId, id, x__xgafv=None)</code>
331 <pre>Deletes an announcement.
332
333This request must be made by the Developer Console project of the
334[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
335create the corresponding announcement item.
336
337This method returns the following error codes:
338
339* `PERMISSION_DENIED` if the requesting developer project did not create
340the corresponding announcement, if the requesting user is not permitted
341to delete the requested course or for access errors.
342* `FAILED_PRECONDITION` if the requested announcement has already been
343deleted.
344* `NOT_FOUND` if no course exists with the requested ID.
345
346Args:
347 courseId: string, Identifier of the course.
348This identifier can be either the Classroom-assigned identifier or an
349alias. (required)
350 id: string, Identifier of the announcement to delete.
351This identifier is a Classroom-assigned identifier. (required)
352 x__xgafv: string, V1 error format.
353 Allowed values
354 1 - v1 error format
355 2 - v2 error format
356
357Returns:
358 An object of the form:
359
360 { # A generic empty message that you can re-use to avoid defining duplicated
361 # empty messages in your APIs. A typical example is to use it as the request
362 # or the response type of an API method. For instance:
363 #
364 # service Foo {
365 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
366 # }
367 #
368 # The JSON representation for `Empty` is empty JSON object `{}`.
369 }</pre>
370</div>
371
372<div class="method">
373 <code class="details" id="get">get(courseId, id, x__xgafv=None)</code>
374 <pre>Returns an announcement.
375
376This method returns the following error codes:
377
378* `PERMISSION_DENIED` if the requesting user is not permitted to access the
379requested course or announcement, or for access errors.
380* `INVALID_ARGUMENT` if the request is malformed.
381* `NOT_FOUND` if the requested course or announcement does not exist.
382
383Args:
384 courseId: string, Identifier of the course.
385This identifier can be either the Classroom-assigned identifier or an
386alias. (required)
387 id: string, Identifier of the announcement. (required)
388 x__xgafv: string, V1 error format.
389 Allowed values
390 1 - v1 error format
391 2 - v2 error format
392
393Returns:
394 An object of the form:
395
396 { # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700397 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 # Read-only.
400 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
401 #
402 # Read-only.
403 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
404 #
405 # Read-only.
406 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
407 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
408 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
409 # specified in this field can see the announcement.
410 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
411 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
412 # coursework/announcement.
413 &quot;A String&quot;,
414 ],
415 },
416 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
417 #
418 # Read-only.
419 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
420 # If unspecified, the default value is `ALL_STUDENTS`.
421 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
422 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
423 # This is only populated if `state` is `PUBLISHED`.
424 #
425 # Read-only.
426 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
427 #
428 # Read-only.
429 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
430 # The text must be a valid UTF-8 string containing no more
431 # than 30,000 characters.
432 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
433 # If unspecified, the default state is `DRAFT`.
434 &quot;materials&quot;: [ # Additional materials.
435 #
436 # Announcements must have no more than 20 material items.
437 { # Material attached to course work.
438 #
439 # When creating attachments, setting the `form` field is not supported.
440 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
441 # if possible, and this is reflected in the response.
442 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
443 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
444 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700445 #
446 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700447 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700448 #
449 # Read-only.
450 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700451 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
452 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
453 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
454 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
455 #
456 # Read-only.
457 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
458 #
459 # Read-only.
460 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
461 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
462 #
463 # Read-only.
464 },
465 },
466 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
467 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
468 #
469 # Read-only.
470 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
471 #
472 # Read-only.
473 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
474 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
475 #
476 # Read-only.
477 },
478 &quot;form&quot;: { # Google Forms item. # Google Forms material.
479 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
480 #
481 # Read-only.
482 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
483 # Only set if respsonses have been recorded and only when the
484 # requesting user is an editor of the form.
485 #
486 # Read-only.
487 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
488 #
489 # Read-only.
490 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
491 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700492 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700494 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495</div>
496
497<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700498 <code class="details" id="list">list(courseId, orderBy=None, pageSize=None, pageToken=None, announcementStates=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 <pre>Returns a list of announcements that the requester is permitted to view.
500
501Course students may only view `PUBLISHED` announcements. Course teachers
502and domain administrators may view all announcements.
503
504This method returns the following error codes:
505
506* `PERMISSION_DENIED` if the requesting user is not permitted to access
507the requested course or for access errors.
508* `INVALID_ARGUMENT` if the request is malformed.
509* `NOT_FOUND` if the requested course does not exist.
510
511Args:
512 courseId: string, Identifier of the course.
513This identifier can be either the Classroom-assigned identifier or an
514alias. (required)
515 orderBy: string, Optional sort ordering for results. A comma-separated list of fields with
516an optional sort direction keyword. Supported field is `updateTime`.
517Supported direction keywords are `asc` and `desc`.
518If not specified, `updateTime desc` is the default behavior.
519Examples: `updateTime asc`, `updateTime`
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700520 pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the
521server may assign a maximum.
522
523The server may return fewer than the specified number of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524 pageToken: string, nextPageToken
525value returned from a previous
526list call,
527indicating that the subsequent page of results should be returned.
528
529The list request
530must be otherwise identical to the one that resulted in this token.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 announcementStates: string, Restriction on the `state` of announcements returned.
532If this argument is left unspecified, the default value is `PUBLISHED`. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 x__xgafv: string, V1 error format.
534 Allowed values
535 1 - v1 error format
536 2 - v2 error format
537
538Returns:
539 An object of the form:
540
541 { # Response when listing course work.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700542 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further
543 # results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;announcements&quot;: [ # Announcement items that match the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 { # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700546 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700548 # Read-only.
549 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
550 #
551 # Read-only.
552 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
553 #
554 # Read-only.
555 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
556 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
557 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
558 # specified in this field can see the announcement.
559 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
560 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
561 # coursework/announcement.
562 &quot;A String&quot;,
563 ],
564 },
565 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
566 #
567 # Read-only.
568 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
569 # If unspecified, the default value is `ALL_STUDENTS`.
570 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
571 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
572 # This is only populated if `state` is `PUBLISHED`.
573 #
574 # Read-only.
575 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
576 #
577 # Read-only.
578 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
579 # The text must be a valid UTF-8 string containing no more
580 # than 30,000 characters.
581 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
582 # If unspecified, the default state is `DRAFT`.
583 &quot;materials&quot;: [ # Additional materials.
584 #
585 # Announcements must have no more than 20 material items.
586 { # Material attached to course work.
587 #
588 # When creating attachments, setting the `form` field is not supported.
589 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
590 # if possible, and this is reflected in the response.
591 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
592 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
593 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700594 #
595 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700596 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700597 #
598 # Read-only.
599 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700600 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
601 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
602 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
603 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
604 #
605 # Read-only.
606 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
607 #
608 # Read-only.
609 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
610 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
611 #
612 # Read-only.
613 },
614 },
615 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
616 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
617 #
618 # Read-only.
619 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
620 #
621 # Read-only.
622 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
623 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
624 #
625 # Read-only.
626 },
627 &quot;form&quot;: { # Google Forms item. # Google Forms material.
628 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
629 #
630 # Read-only.
631 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
632 # Only set if respsonses have been recorded and only when the
633 # requesting user is an editor of the form.
634 #
635 # Read-only.
636 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
637 #
638 # Read-only.
639 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
640 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700641 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700642 ],
643 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 ],
645 }</pre>
646</div>
647
648<div class="method">
649 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
650 <pre>Retrieves the next page of results.
651
652Args:
653 previous_request: The request for the previous page. (required)
654 previous_response: The response from the request for the previous page. (required)
655
656Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658 page. Returns None if there are no more items in the collection.
659 </pre>
660</div>
661
662<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700663 <code class="details" id="modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 <pre>Modifies assignee mode and options of an announcement.
665
666Only a teacher of the course that contains the announcement may
667call this method.
668
669This method returns the following error codes:
670
671* `PERMISSION_DENIED` if the requesting user is not permitted to access the
672requested course or course work or for access errors.
673* `INVALID_ARGUMENT` if the request is malformed.
674* `NOT_FOUND` if the requested course or course work does not exist.
675
676Args:
677 courseId: string, Identifier of the course.
678This identifier can be either the Classroom-assigned identifier or an
679alias. (required)
680 id: string, Identifier of the announcement. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 The object takes the form of:
683
684{ # Request to modify assignee mode and options of an announcement.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700685 &quot;assigneeMode&quot;: &quot;A String&quot;, # Mode of the announcement describing whether it is accessible by all
686 # students or specified individual students.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;modifyIndividualStudentsOptions&quot;: { # Contains fields to add or remove students from a course work or announcement # Set which students can view or cannot view the announcement.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 # Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`.
689 # where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 &quot;addStudentIds&quot;: [ # IDs of students to be added as having access to this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691 # coursework/announcement.
Bu Sun Kim65020912020-05-20 12:08:20 -0700692 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700694 &quot;removeStudentIds&quot;: [ # IDs of students to be removed from having access to this
695 # coursework/announcement.
696 &quot;A String&quot;,
697 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 },
699 }
700
701 x__xgafv: string, V1 error format.
702 Allowed values
703 1 - v1 error format
704 2 - v2 error format
705
706Returns:
707 An object of the form:
708
709 { # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700710 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700711 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700712 # Read-only.
713 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
714 #
715 # Read-only.
716 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
717 #
718 # Read-only.
719 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
720 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
721 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
722 # specified in this field can see the announcement.
723 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
724 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
725 # coursework/announcement.
726 &quot;A String&quot;,
727 ],
728 },
729 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
730 #
731 # Read-only.
732 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
733 # If unspecified, the default value is `ALL_STUDENTS`.
734 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
735 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
736 # This is only populated if `state` is `PUBLISHED`.
737 #
738 # Read-only.
739 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
740 #
741 # Read-only.
742 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
743 # The text must be a valid UTF-8 string containing no more
744 # than 30,000 characters.
745 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
746 # If unspecified, the default state is `DRAFT`.
747 &quot;materials&quot;: [ # Additional materials.
748 #
749 # Announcements must have no more than 20 material items.
750 { # Material attached to course work.
751 #
752 # When creating attachments, setting the `form` field is not supported.
753 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
754 # if possible, and this is reflected in the response.
755 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
756 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
757 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700758 #
759 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700760 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700761 #
762 # Read-only.
763 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700764 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
765 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
766 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
767 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
768 #
769 # Read-only.
770 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
771 #
772 # Read-only.
773 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
774 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
775 #
776 # Read-only.
777 },
778 },
779 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
780 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
781 #
782 # Read-only.
783 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
784 #
785 # Read-only.
786 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
787 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
788 #
789 # Read-only.
790 },
791 &quot;form&quot;: { # Google Forms item. # Google Forms material.
792 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
793 #
794 # Read-only.
795 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
796 # Only set if respsonses have been recorded and only when the
797 # requesting user is an editor of the form.
798 #
799 # Read-only.
800 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
801 #
802 # Read-only.
803 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
804 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700805 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700806 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700807 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808</div>
809
810<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700811 <code class="details" id="patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812 <pre>Updates one or more fields of an announcement.
813
814This method returns the following error codes:
815
816* `PERMISSION_DENIED` if the requesting developer project did not create
817the corresponding announcement or for access errors.
818* `INVALID_ARGUMENT` if the request is malformed.
819* `FAILED_PRECONDITION` if the requested announcement has already been
820deleted.
821* `NOT_FOUND` if the requested course or announcement does not exist
822
823Args:
824 courseId: string, Identifier of the course.
825This identifier can be either the Classroom-assigned identifier or an
826alias. (required)
827 id: string, Identifier of the announcement. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700828 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700829 The object takes the form of:
830
831{ # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700832 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
833 #
834 # Read-only.
835 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
836 #
837 # Read-only.
838 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
839 #
840 # Read-only.
841 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
842 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
843 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
844 # specified in this field can see the announcement.
845 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
846 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
847 # coursework/announcement.
848 &quot;A String&quot;,
849 ],
850 },
851 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
852 #
853 # Read-only.
854 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
855 # If unspecified, the default value is `ALL_STUDENTS`.
856 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
857 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
858 # This is only populated if `state` is `PUBLISHED`.
859 #
860 # Read-only.
861 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
862 #
863 # Read-only.
864 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
865 # The text must be a valid UTF-8 string containing no more
866 # than 30,000 characters.
867 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
868 # If unspecified, the default state is `DRAFT`.
869 &quot;materials&quot;: [ # Additional materials.
870 #
871 # Announcements must have no more than 20 material items.
872 { # Material attached to course work.
873 #
874 # When creating attachments, setting the `form` field is not supported.
875 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
876 # if possible, and this is reflected in the response.
877 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
878 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
879 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700880 #
881 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700882 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700883 #
884 # Read-only.
885 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700886 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
887 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
888 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
889 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
890 #
891 # Read-only.
892 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
893 #
894 # Read-only.
895 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
896 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
897 #
898 # Read-only.
899 },
900 },
901 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
902 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
903 #
904 # Read-only.
905 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
906 #
907 # Read-only.
908 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
909 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
910 #
911 # Read-only.
912 },
913 &quot;form&quot;: { # Google Forms item. # Google Forms material.
914 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
915 #
916 # Read-only.
917 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
918 # Only set if respsonses have been recorded and only when the
919 # requesting user is an editor of the form.
920 #
921 # Read-only.
922 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
923 #
924 # Read-only.
925 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
926 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700927 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700929 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700930
931 updateMask: string, Mask that identifies which fields on the announcement to update.
932This field is required to do an update. The update fails if invalid
933fields are specified. If a field supports empty values, it can be cleared
934by specifying it in the update mask and not in the Announcement object. If
935a field that does not support empty values is included in the update mask
Dan O'Mearadd494642020-05-01 07:42:23 -0700936and not set in the Announcement object, an `INVALID_ARGUMENT` error is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700937returned.
938
939The following fields may be specified by teachers:
940
941* `text`
942* `state`
943* `scheduled_time`
944 x__xgafv: string, V1 error format.
945 Allowed values
946 1 - v1 error format
947 2 - v2 error format
948
949Returns:
950 An object of the form:
951
952 { # Announcement created by a teacher for students of the course
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700953 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700954 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700955 # Read-only.
956 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement.
957 #
958 # Read-only.
959 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement.
960 #
961 # Read-only.
962 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement.
963 # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
964 # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
965 # specified in this field can see the announcement.
966 # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
967 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the
968 # coursework/announcement.
969 &quot;A String&quot;,
970 ],
971 },
972 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created.
973 #
974 # Read-only.
975 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement.
976 # If unspecified, the default value is `ALL_STUDENTS`.
977 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
978 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI.
979 # This is only populated if `state` is `PUBLISHED`.
980 #
981 # Read-only.
982 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course.
983 #
984 # Read-only.
985 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement.
986 # The text must be a valid UTF-8 string containing no more
987 # than 30,000 characters.
988 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement.
989 # If unspecified, the default state is `DRAFT`.
990 &quot;materials&quot;: [ # Additional materials.
991 #
992 # Announcements must have no more than 20 material items.
993 { # Material attached to course work.
994 #
995 # When creating attachments, setting the `form` field is not supported.
996 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type
997 # if possible, and this is reflected in the response.
998 &quot;url&quot;: &quot;A String&quot;, # URL to link to.
999 # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1000 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001001 #
1002 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001003 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001004 #
1005 # Read-only.
1006 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001007 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
1008 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
1009 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
1010 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item.
1011 #
1012 # Read-only.
1013 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item.
1014 #
1015 # Read-only.
1016 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
1017 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item.
1018 #
1019 # Read-only.
1020 },
1021 },
1022 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
1023 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video.
1024 #
1025 # Read-only.
1026 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video.
1027 #
1028 # Read-only.
1029 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
1030 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video.
1031 #
1032 # Read-only.
1033 },
1034 &quot;form&quot;: { # Google Forms item. # Google Forms material.
1035 &quot;title&quot;: &quot;A String&quot;, # Title of the Form.
1036 #
1037 # Read-only.
1038 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document.
1039 # Only set if respsonses have been recorded and only when the
1040 # requesting user is an editor of the form.
1041 #
1042 # Read-only.
1043 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form.
1044 #
1045 # Read-only.
1046 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
1047 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001050 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051</div>
1052
1053</body></html>