blob: 9f9955e94449f4e0efca28f898eeffc7a81000cf [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(courseId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create announcements in the requested course, share a Drive attachment, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist. * `FAILED_PRECONDITION` for the following request error: * AttachmentNotVisible</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(courseId, id, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes an announcement. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding announcement item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement, if the requesting user is not permitted to delete the requested course or for access errors. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if no course exists with the requested ID.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(courseId, id, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Returns an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or announcement, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or announcement does not exist.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(courseId, announcementStates=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Returns a list of announcements that the requester is permitted to view. Course students may only view `PUBLISHED` announcements. Course teachers and domain administrators may view all announcements. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Updates one or more fields of an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if the requested course or announcement does not exist</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="create">create(courseId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <pre>Creates an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create announcements in the requested course, share a Drive attachment, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist. * `FAILED_PRECONDITION` for the following request error: * AttachmentNotVisible
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110
111Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
118 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
119 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800120 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800121 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
122 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800123 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
124 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
125 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700126 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800127 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800128 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
129 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800130 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
131 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800132 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800133 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800134 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
135 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800136 },
137 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
138 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800139 &quot;form&quot;: { # Google Forms item. # Google Forms material.
140 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
141 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
142 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
143 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
144 },
145 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
146 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
147 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
148 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
149 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800150 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
151 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800153 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800154 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
155 },
156 },
157 ],
158 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800159 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
160 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
161 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700163
164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169Returns:
170 An object of the form:
171
172 { # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
174 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
175 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
176 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
177 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
178 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
179 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
180 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
181 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800182 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800183 },
184 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
185 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
186 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
187 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
188 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
189 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
190 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
191 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
192 },
193 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
194 },
195 &quot;form&quot;: { # Google Forms item. # Google Forms material.
196 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
197 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
198 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
199 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
200 },
201 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
202 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
203 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
204 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
205 },
206 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
207 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
208 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
209 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
210 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
211 },
212 },
213 ],
214 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
215 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
216 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
217 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
218}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219</div>
220
221<div class="method">
222 <code class="details" id="delete">delete(courseId, id, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 <pre>Deletes an announcement. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding announcement item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement, if the requesting user is not permitted to delete the requested course or for access errors. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if no course exists with the requested ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224
225Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700226 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
227 id: string, Identifier of the announcement to delete. This identifier is a Classroom-assigned identifier. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233Returns:
234 An object of the form:
235
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800237}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700238</div>
239
240<div class="method">
241 <code class="details" id="get">get(courseId, id, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700242 <pre>Returns an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or announcement, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or announcement does not exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243
244Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700245 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 id: string, Identifier of the announcement. (required)
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252Returns:
253 An object of the form:
254
255 { # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800256 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
257 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
258 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
259 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
260 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
261 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
262 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
263 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
264 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800265 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800266 },
267 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
268 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
269 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
270 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
271 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
272 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
273 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
274 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
275 },
276 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
277 },
278 &quot;form&quot;: { # Google Forms item. # Google Forms material.
279 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
280 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
281 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
282 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
283 },
284 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
285 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
286 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
287 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
288 },
289 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
290 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
291 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
292 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
293 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
294 },
295 },
296 ],
297 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
298 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
299 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
300 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
301}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302</div>
303
304<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800305 <code class="details" id="list">list(courseId, announcementStates=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700306 <pre>Returns a list of announcements that the requester is permitted to view. Course students may only view `PUBLISHED` announcements. Course teachers and domain administrators may view all announcements. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307
308Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700309 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
310 announcementStates: string, Restriction on the `state` of announcements returned. If this argument is left unspecified, the default value is `PUBLISHED`. (repeated)
311 Allowed values
312 ANNOUNCEMENT_STATE_UNSPECIFIED - No state specified. This is never returned.
313 PUBLISHED - Status for announcement that has been published. This is the default state.
314 DRAFT - Status for an announcement that is not yet published. Announcement in this state is visible only to course teachers and domain administrators.
315 DELETED - Status for announcement that was published but is now deleted. Announcement in this state is visible only to course teachers and domain administrators. Announcement in this state is deleted after some time.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 orderBy: string, Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported field is `updateTime`. Supported direction keywords are `asc` and `desc`. If not specified, `updateTime desc` is the default behavior. Examples: `updateTime asc`, `updateTime`
317 pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.
318 pageToken: string, nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 x__xgafv: string, V1 error format.
320 Allowed values
321 1 - v1 error format
322 2 - v2 error format
323
324Returns:
325 An object of the form:
326
327 { # Response when listing course work.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;announcements&quot;: [ # Announcement items that match the request.
329 { # Announcement created by a teacher for students of the course
330 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
331 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
332 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
333 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
334 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
335 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
336 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
337 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
338 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800339 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800341 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
342 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
343 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
344 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
345 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
346 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
347 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
348 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
349 },
350 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
351 },
352 &quot;form&quot;: { # Google Forms item. # Google Forms material.
353 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
354 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
355 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
356 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
357 },
358 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
359 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
360 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
361 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
362 },
363 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
364 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
365 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
366 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
367 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
368 },
369 },
370 ],
371 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
372 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
373 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
374 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
375 },
376 ],
377 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further results are available.
378}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379</div>
380
381<div class="method">
382 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
383 <pre>Retrieves the next page of results.
384
385Args:
386 previous_request: The request for the previous page. (required)
387 previous_response: The response from the request for the previous page. (required)
388
389Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 page. Returns None if there are no more items in the collection.
392 </pre>
393</div>
394
395<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 <code class="details" id="modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700397 <pre>Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398
399Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 id: string, Identifier of the announcement. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700403 The object takes the form of:
404
405{ # Request to modify assignee mode and options of an announcement.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800406 &quot;assigneeMode&quot;: &quot;A String&quot;, # Mode of the announcement describing whether it is accessible by all students or specified individual students.
407 &quot;modifyIndividualStudentsOptions&quot;: { # Contains fields to add or remove students from a course work or announcement where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`. # Set which students can view or cannot view the announcement. Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`.
408 &quot;addStudentIds&quot;: [ # IDs of students to be added as having access to this coursework/announcement.
409 &quot;A String&quot;,
410 ],
411 &quot;removeStudentIds&quot;: [ # IDs of students to be removed from having access to this coursework/announcement.
412 &quot;A String&quot;,
413 ],
414 },
415}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416
417 x__xgafv: string, V1 error format.
418 Allowed values
419 1 - v1 error format
420 2 - v2 error format
421
422Returns:
423 An object of the form:
424
425 { # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
427 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
428 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
429 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
430 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
431 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
432 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
433 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
434 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800435 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800436 },
437 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
438 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
439 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
440 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
441 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
442 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
443 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
444 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
445 },
446 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
447 },
448 &quot;form&quot;: { # Google Forms item. # Google Forms material.
449 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
450 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
451 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
452 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
453 },
454 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
455 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
456 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
457 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
458 },
459 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
460 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
461 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
462 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
463 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
464 },
465 },
466 ],
467 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
468 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
469 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
470 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
471}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472</div>
473
474<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700475 <code class="details" id="patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700476 <pre>Updates one or more fields of an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if the requested course or announcement does not exist
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477
478Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 courseId: string, Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480 id: string, Identifier of the announcement. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700481 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482 The object takes the form of:
483
484{ # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
486 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
487 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800488 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800489 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
490 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800491 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
492 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
493 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800495 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800496 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
497 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800498 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
499 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800500 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800501 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800502 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
503 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800504 },
505 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
506 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800507 &quot;form&quot;: { # Google Forms item. # Google Forms material.
508 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
509 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
510 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
511 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
512 },
513 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
514 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
515 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
516 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
517 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800518 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
519 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800520 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800521 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800522 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
523 },
524 },
525 ],
526 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800527 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
528 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
529 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800530}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700532 updateMask: string, Mask that identifies which fields on the announcement to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Announcement object. If a field that does not support empty values is included in the update mask and not set in the Announcement object, an `INVALID_ARGUMENT` error is returned. The following fields may be specified by teachers: * `text` * `state` * `scheduled_time`
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 { # Announcement created by a teacher for students of the course
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800542 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.
543 &quot;assigneeMode&quot;: &quot;A String&quot;, # Assignee mode of the announcement. If unspecified, the default value is `ALL_STUDENTS`.
544 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
545 &quot;creationTime&quot;: &quot;A String&quot;, # Timestamp when this announcement was created. Read-only.
546 &quot;creatorUserId&quot;: &quot;A String&quot;, # Identifier for the user that created the announcement. Read-only.
547 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier of this announcement, unique per course. Read-only.
548 &quot;individualStudentsOptions&quot;: { # Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. # Identifiers of students with access to the announcement. This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this field can see the announcement.
549 &quot;studentIds&quot;: [ # Identifiers for the students that have access to the coursework/announcement.
550 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800551 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800552 },
553 &quot;materials&quot;: [ # Additional materials. Announcements must have no more than 20 material items.
554 { # Material attached to course work. When creating attachments, setting the `form` field is not supported.
555 &quot;driveFile&quot;: { # Drive file that is used as material for course work. # Google Drive file material.
556 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Drive file details.
557 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
558 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
559 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
560 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
561 },
562 &quot;shareMode&quot;: &quot;A String&quot;, # Mechanism by which students access the Drive item.
563 },
564 &quot;form&quot;: { # Google Forms item. # Google Forms material.
565 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
566 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.
567 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
568 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
569 },
570 &quot;link&quot;: { # URL item. # Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
571 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
572 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
573 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
574 },
575 &quot;youtubeVideo&quot;: { # YouTube video item. # YouTube video material.
576 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
577 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
578 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
579 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
580 },
581 },
582 ],
583 &quot;scheduledTime&quot;: &quot;A String&quot;, # Optional timestamp when this announcement is scheduled to be published.
584 &quot;state&quot;: &quot;A String&quot;, # Status of this announcement. If unspecified, the default state is `DRAFT`.
585 &quot;text&quot;: &quot;A String&quot;, # Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.
586 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp of the most recent change to this announcement. Read-only.
587}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588</div>
589
590</body></html>