Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#create">create(courseId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 87 | <code><a href="#list">list(courseId, announcementStates=None, orderBy=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code><a href="#modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">Modifies assignee mode and options of an announcement.</p> |
| 95 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 96 | <code><a href="#patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <p class="firstline">Updates one or more fields of an announcement.</p> |
| 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 100 | <code class="details" id="create">create(courseId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 101 | <pre>Creates an announcement. |
| 102 | |
| 103 | This method returns the following error codes: |
| 104 | |
| 105 | * `PERMISSION_DENIED` if the requesting user is not permitted to access the |
| 106 | requested course, create announcements in the requested course, share a |
| 107 | Drive 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 | |
| 113 | Args: |
| 114 | courseId: string, Identifier of the course. |
| 115 | This identifier can be either the Classroom-assigned identifier or an |
| 116 | alias. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 117 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 118 | The object takes the form of: |
| 119 | |
| 120 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 121 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 122 | # |
| 123 | # Announcements must have no more than 20 material items. |
| 124 | { # Material attached to course work. |
| 125 | # |
| 126 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 127 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 128 | "title": "A String", # Title of the YouTube video. |
| 129 | # |
| 130 | # Read-only. |
| 131 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 132 | # |
| 133 | # Read-only. |
| 134 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 135 | # |
| 136 | # Read-only. |
| 137 | "id": "A String", # YouTube API resource ID. |
| 138 | }, |
| 139 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 140 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 141 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 142 | # |
| 143 | # Read-only. |
| 144 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 145 | # |
| 146 | # Read-only. |
| 147 | "id": "A String", # Drive API resource ID. |
| 148 | "title": "A String", # Title of the Drive item. |
| 149 | # |
| 150 | # Read-only. |
| 151 | }, |
| 152 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 153 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 154 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 155 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 156 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 157 | # |
| 158 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 159 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 160 | # |
| 161 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 162 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 163 | # Only set if respsonses have been recorded and only when the |
| 164 | # requesting user is an editor of the form. |
| 165 | # |
| 166 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 167 | }, |
| 168 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 169 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 170 | "title": "A String", # Title of the target of the URL. |
| 171 | # |
| 172 | # Read-only. |
| 173 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 174 | # |
| 175 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 176 | "url": "A String", # URL to link to. |
| 177 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 178 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 179 | }, |
| 180 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 181 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 182 | # |
| 183 | # Read-only. |
| 184 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 185 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 186 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 187 | # This is only populated if `state` is `PUBLISHED`. |
| 188 | # |
| 189 | # Read-only. |
| 190 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 191 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 192 | # |
| 193 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 194 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 195 | # |
| 196 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 197 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 198 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 199 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 200 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 201 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 202 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 203 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 204 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 205 | ], |
| 206 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 207 | "state": "A String", # Status of this announcement. |
| 208 | # If unspecified, the default state is `DRAFT`. |
| 209 | "text": "A String", # Description of this announcement. |
| 210 | # The text must be a valid UTF-8 string containing no more |
| 211 | # than 30,000 characters. |
| 212 | "courseId": "A String", # Identifier of the course. |
| 213 | # |
| 214 | # Read-only. |
| 215 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 216 | # |
| 217 | # Read-only. |
| 218 | } |
| 219 | |
| 220 | x__xgafv: string, V1 error format. |
| 221 | Allowed values |
| 222 | 1 - v1 error format |
| 223 | 2 - v2 error format |
| 224 | |
| 225 | Returns: |
| 226 | An object of the form: |
| 227 | |
| 228 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 229 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 230 | # |
| 231 | # Announcements must have no more than 20 material items. |
| 232 | { # Material attached to course work. |
| 233 | # |
| 234 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 235 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 236 | "title": "A String", # Title of the YouTube video. |
| 237 | # |
| 238 | # Read-only. |
| 239 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 240 | # |
| 241 | # Read-only. |
| 242 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 243 | # |
| 244 | # Read-only. |
| 245 | "id": "A String", # YouTube API resource ID. |
| 246 | }, |
| 247 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 248 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 249 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 250 | # |
| 251 | # Read-only. |
| 252 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 253 | # |
| 254 | # Read-only. |
| 255 | "id": "A String", # Drive API resource ID. |
| 256 | "title": "A String", # Title of the Drive item. |
| 257 | # |
| 258 | # Read-only. |
| 259 | }, |
| 260 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 261 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 262 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 263 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 264 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 265 | # |
| 266 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 267 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 268 | # |
| 269 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 270 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 271 | # Only set if respsonses have been recorded and only when the |
| 272 | # requesting user is an editor of the form. |
| 273 | # |
| 274 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 275 | }, |
| 276 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 277 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 278 | "title": "A String", # Title of the target of the URL. |
| 279 | # |
| 280 | # Read-only. |
| 281 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 282 | # |
| 283 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 284 | "url": "A String", # URL to link to. |
| 285 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 286 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 287 | }, |
| 288 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 289 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 290 | # |
| 291 | # Read-only. |
| 292 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 293 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 294 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 295 | # This is only populated if `state` is `PUBLISHED`. |
| 296 | # |
| 297 | # Read-only. |
| 298 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 299 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 300 | # |
| 301 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 302 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 303 | # |
| 304 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 305 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 306 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 307 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 308 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 309 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 310 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 311 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 312 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 313 | ], |
| 314 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 315 | "state": "A String", # Status of this announcement. |
| 316 | # If unspecified, the default state is `DRAFT`. |
| 317 | "text": "A String", # Description of this announcement. |
| 318 | # The text must be a valid UTF-8 string containing no more |
| 319 | # than 30,000 characters. |
| 320 | "courseId": "A String", # Identifier of the course. |
| 321 | # |
| 322 | # Read-only. |
| 323 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 324 | # |
| 325 | # Read-only. |
| 326 | }</pre> |
| 327 | </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 | |
| 333 | This request must be made by the Developer Console project of the |
| 334 | [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to |
| 335 | create the corresponding announcement item. |
| 336 | |
| 337 | This method returns the following error codes: |
| 338 | |
| 339 | * `PERMISSION_DENIED` if the requesting developer project did not create |
| 340 | the corresponding announcement, if the requesting user is not permitted |
| 341 | to delete the requested course or for access errors. |
| 342 | * `FAILED_PRECONDITION` if the requested announcement has already been |
| 343 | deleted. |
| 344 | * `NOT_FOUND` if no course exists with the requested ID. |
| 345 | |
| 346 | Args: |
| 347 | courseId: string, Identifier of the course. |
| 348 | This identifier can be either the Classroom-assigned identifier or an |
| 349 | alias. (required) |
| 350 | id: string, Identifier of the announcement to delete. |
| 351 | This 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 | |
| 357 | Returns: |
| 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 | |
| 376 | This method returns the following error codes: |
| 377 | |
| 378 | * `PERMISSION_DENIED` if the requesting user is not permitted to access the |
| 379 | requested 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 | |
| 383 | Args: |
| 384 | courseId: string, Identifier of the course. |
| 385 | This identifier can be either the Classroom-assigned identifier or an |
| 386 | alias. (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 | |
| 393 | Returns: |
| 394 | An object of the form: |
| 395 | |
| 396 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 397 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 398 | # |
| 399 | # Announcements must have no more than 20 material items. |
| 400 | { # Material attached to course work. |
| 401 | # |
| 402 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 403 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 404 | "title": "A String", # Title of the YouTube video. |
| 405 | # |
| 406 | # Read-only. |
| 407 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 408 | # |
| 409 | # Read-only. |
| 410 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 411 | # |
| 412 | # Read-only. |
| 413 | "id": "A String", # YouTube API resource ID. |
| 414 | }, |
| 415 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 416 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 417 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 418 | # |
| 419 | # Read-only. |
| 420 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 421 | # |
| 422 | # Read-only. |
| 423 | "id": "A String", # Drive API resource ID. |
| 424 | "title": "A String", # Title of the Drive item. |
| 425 | # |
| 426 | # Read-only. |
| 427 | }, |
| 428 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 429 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 430 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 431 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 432 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 433 | # |
| 434 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 435 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 436 | # |
| 437 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 438 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 439 | # Only set if respsonses have been recorded and only when the |
| 440 | # requesting user is an editor of the form. |
| 441 | # |
| 442 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 443 | }, |
| 444 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 445 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 446 | "title": "A String", # Title of the target of the URL. |
| 447 | # |
| 448 | # Read-only. |
| 449 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 450 | # |
| 451 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 452 | "url": "A String", # URL to link to. |
| 453 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 454 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 455 | }, |
| 456 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 457 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 458 | # |
| 459 | # Read-only. |
| 460 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 461 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 462 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 463 | # This is only populated if `state` is `PUBLISHED`. |
| 464 | # |
| 465 | # Read-only. |
| 466 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 467 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 468 | # |
| 469 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 470 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 471 | # |
| 472 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 473 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 474 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 475 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 476 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 477 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 478 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 479 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 480 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 481 | ], |
| 482 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 483 | "state": "A String", # Status of this announcement. |
| 484 | # If unspecified, the default state is `DRAFT`. |
| 485 | "text": "A String", # Description of this announcement. |
| 486 | # The text must be a valid UTF-8 string containing no more |
| 487 | # than 30,000 characters. |
| 488 | "courseId": "A String", # Identifier of the course. |
| 489 | # |
| 490 | # Read-only. |
| 491 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 492 | # |
| 493 | # Read-only. |
| 494 | }</pre> |
| 495 | </div> |
| 496 | |
| 497 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 498 | <code class="details" id="list">list(courseId, announcementStates=None, orderBy=None, pageToken=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 499 | <pre>Returns a list of announcements that the requester is permitted to view. |
| 500 | |
| 501 | Course students may only view `PUBLISHED` announcements. Course teachers |
| 502 | and domain administrators may view all announcements. |
| 503 | |
| 504 | This method returns the following error codes: |
| 505 | |
| 506 | * `PERMISSION_DENIED` if the requesting user is not permitted to access |
| 507 | the 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 | |
| 511 | Args: |
| 512 | courseId: string, Identifier of the course. |
| 513 | This identifier can be either the Classroom-assigned identifier or an |
| 514 | alias. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 515 | announcementStates: string, Restriction on the `state` of announcements returned. |
| 516 | If this argument is left unspecified, the default value is `PUBLISHED`. (repeated) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 517 | orderBy: string, Optional sort ordering for results. A comma-separated list of fields with |
| 518 | an optional sort direction keyword. Supported field is `updateTime`. |
| 519 | Supported direction keywords are `asc` and `desc`. |
| 520 | If not specified, `updateTime desc` is the default behavior. |
| 521 | Examples: `updateTime asc`, `updateTime` |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 522 | pageToken: string, nextPageToken |
| 523 | value returned from a previous |
| 524 | list call, |
| 525 | indicating that the subsequent page of results should be returned. |
| 526 | |
| 527 | The list request |
| 528 | must be otherwise identical to the one that resulted in this token. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 529 | pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the |
| 530 | server may assign a maximum. |
| 531 | |
| 532 | The server may return fewer than the specified number of results. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 533 | x__xgafv: string, V1 error format. |
| 534 | Allowed values |
| 535 | 1 - v1 error format |
| 536 | 2 - v2 error format |
| 537 | |
| 538 | Returns: |
| 539 | An object of the form: |
| 540 | |
| 541 | { # Response when listing course work. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 542 | "announcements": [ # Announcement items that match the request. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 543 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 544 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 545 | # |
| 546 | # Announcements must have no more than 20 material items. |
| 547 | { # Material attached to course work. |
| 548 | # |
| 549 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 550 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 551 | "title": "A String", # Title of the YouTube video. |
| 552 | # |
| 553 | # Read-only. |
| 554 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 555 | # |
| 556 | # Read-only. |
| 557 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 558 | # |
| 559 | # Read-only. |
| 560 | "id": "A String", # YouTube API resource ID. |
| 561 | }, |
| 562 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 563 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 564 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 565 | # |
| 566 | # Read-only. |
| 567 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 568 | # |
| 569 | # Read-only. |
| 570 | "id": "A String", # Drive API resource ID. |
| 571 | "title": "A String", # Title of the Drive item. |
| 572 | # |
| 573 | # Read-only. |
| 574 | }, |
| 575 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 576 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 577 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 578 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 579 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 580 | # |
| 581 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 582 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 583 | # |
| 584 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 585 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 586 | # Only set if respsonses have been recorded and only when the |
| 587 | # requesting user is an editor of the form. |
| 588 | # |
| 589 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 590 | }, |
| 591 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 592 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 593 | "title": "A String", # Title of the target of the URL. |
| 594 | # |
| 595 | # Read-only. |
| 596 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 597 | # |
| 598 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 599 | "url": "A String", # URL to link to. |
| 600 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 601 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 602 | }, |
| 603 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 604 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 605 | # |
| 606 | # Read-only. |
| 607 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 608 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 609 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 610 | # This is only populated if `state` is `PUBLISHED`. |
| 611 | # |
| 612 | # Read-only. |
| 613 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 614 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 615 | # |
| 616 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 617 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 618 | # |
| 619 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 620 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 621 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 622 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 623 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 624 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 625 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 626 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 627 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 628 | ], |
| 629 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 630 | "state": "A String", # Status of this announcement. |
| 631 | # If unspecified, the default state is `DRAFT`. |
| 632 | "text": "A String", # Description of this announcement. |
| 633 | # The text must be a valid UTF-8 string containing no more |
| 634 | # than 30,000 characters. |
| 635 | "courseId": "A String", # Identifier of the course. |
| 636 | # |
| 637 | # Read-only. |
| 638 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 639 | # |
| 640 | # Read-only. |
| 641 | }, |
| 642 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 643 | "nextPageToken": "A String", # Token identifying the next page of results to return. If empty, no further |
| 644 | # results are available. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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 | |
| 652 | Args: |
| 653 | previous_request: The request for the previous page. (required) |
| 654 | previous_response: The response from the request for the previous page. (required) |
| 655 | |
| 656 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 657 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 658 | page. Returns None if there are no more items in the collection. |
| 659 | </pre> |
| 660 | </div> |
| 661 | |
| 662 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 663 | <code class="details" id="modifyAssignees">modifyAssignees(courseId, id, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 664 | <pre>Modifies assignee mode and options of an announcement. |
| 665 | |
| 666 | Only a teacher of the course that contains the announcement may |
| 667 | call this method. |
| 668 | |
| 669 | This method returns the following error codes: |
| 670 | |
| 671 | * `PERMISSION_DENIED` if the requesting user is not permitted to access the |
| 672 | requested 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 | |
| 676 | Args: |
| 677 | courseId: string, Identifier of the course. |
| 678 | This identifier can be either the Classroom-assigned identifier or an |
| 679 | alias. (required) |
| 680 | id: string, Identifier of the announcement. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 681 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 682 | The object takes the form of: |
| 683 | |
| 684 | { # Request to modify assignee mode and options of an announcement. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 685 | "assigneeMode": "A String", # Mode of the announcement describing whether it is accessible by all |
| 686 | # students or specified individual students. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 687 | "modifyIndividualStudentsOptions": { # 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 688 | # Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 689 | # where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 690 | "addStudentIds": [ # IDs of students to be added as having access to this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 691 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 692 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 693 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 694 | "removeStudentIds": [ # IDs of students to be removed from having access to this |
| 695 | # coursework/announcement. |
| 696 | "A String", |
| 697 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 698 | }, |
| 699 | } |
| 700 | |
| 701 | x__xgafv: string, V1 error format. |
| 702 | Allowed values |
| 703 | 1 - v1 error format |
| 704 | 2 - v2 error format |
| 705 | |
| 706 | Returns: |
| 707 | An object of the form: |
| 708 | |
| 709 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 710 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 711 | # |
| 712 | # Announcements must have no more than 20 material items. |
| 713 | { # Material attached to course work. |
| 714 | # |
| 715 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 716 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 717 | "title": "A String", # Title of the YouTube video. |
| 718 | # |
| 719 | # Read-only. |
| 720 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 721 | # |
| 722 | # Read-only. |
| 723 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 724 | # |
| 725 | # Read-only. |
| 726 | "id": "A String", # YouTube API resource ID. |
| 727 | }, |
| 728 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 729 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 730 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 731 | # |
| 732 | # Read-only. |
| 733 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 734 | # |
| 735 | # Read-only. |
| 736 | "id": "A String", # Drive API resource ID. |
| 737 | "title": "A String", # Title of the Drive item. |
| 738 | # |
| 739 | # Read-only. |
| 740 | }, |
| 741 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 742 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 743 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 744 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 745 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 746 | # |
| 747 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 748 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 749 | # |
| 750 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 751 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 752 | # Only set if respsonses have been recorded and only when the |
| 753 | # requesting user is an editor of the form. |
| 754 | # |
| 755 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 756 | }, |
| 757 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 758 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 759 | "title": "A String", # Title of the target of the URL. |
| 760 | # |
| 761 | # Read-only. |
| 762 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 763 | # |
| 764 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 765 | "url": "A String", # URL to link to. |
| 766 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 767 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 768 | }, |
| 769 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 770 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 771 | # |
| 772 | # Read-only. |
| 773 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 774 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 775 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 776 | # This is only populated if `state` is `PUBLISHED`. |
| 777 | # |
| 778 | # Read-only. |
| 779 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 780 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 781 | # |
| 782 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 783 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 784 | # |
| 785 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 786 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 787 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 788 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 789 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 790 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 791 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 792 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 793 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 794 | ], |
| 795 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 796 | "state": "A String", # Status of this announcement. |
| 797 | # If unspecified, the default state is `DRAFT`. |
| 798 | "text": "A String", # Description of this announcement. |
| 799 | # The text must be a valid UTF-8 string containing no more |
| 800 | # than 30,000 characters. |
| 801 | "courseId": "A String", # Identifier of the course. |
| 802 | # |
| 803 | # Read-only. |
| 804 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 805 | # |
| 806 | # Read-only. |
| 807 | }</pre> |
| 808 | </div> |
| 809 | |
| 810 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 811 | <code class="details" id="patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 812 | <pre>Updates one or more fields of an announcement. |
| 813 | |
| 814 | This method returns the following error codes: |
| 815 | |
| 816 | * `PERMISSION_DENIED` if the requesting developer project did not create |
| 817 | the corresponding announcement or for access errors. |
| 818 | * `INVALID_ARGUMENT` if the request is malformed. |
| 819 | * `FAILED_PRECONDITION` if the requested announcement has already been |
| 820 | deleted. |
| 821 | * `NOT_FOUND` if the requested course or announcement does not exist |
| 822 | |
| 823 | Args: |
| 824 | courseId: string, Identifier of the course. |
| 825 | This identifier can be either the Classroom-assigned identifier or an |
| 826 | alias. (required) |
| 827 | id: string, Identifier of the announcement. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 828 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 829 | The object takes the form of: |
| 830 | |
| 831 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 832 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 833 | # |
| 834 | # Announcements must have no more than 20 material items. |
| 835 | { # Material attached to course work. |
| 836 | # |
| 837 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 838 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 839 | "title": "A String", # Title of the YouTube video. |
| 840 | # |
| 841 | # Read-only. |
| 842 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 843 | # |
| 844 | # Read-only. |
| 845 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 846 | # |
| 847 | # Read-only. |
| 848 | "id": "A String", # YouTube API resource ID. |
| 849 | }, |
| 850 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 851 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 852 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 853 | # |
| 854 | # Read-only. |
| 855 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 856 | # |
| 857 | # Read-only. |
| 858 | "id": "A String", # Drive API resource ID. |
| 859 | "title": "A String", # Title of the Drive item. |
| 860 | # |
| 861 | # Read-only. |
| 862 | }, |
| 863 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 864 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 865 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 866 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 867 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 868 | # |
| 869 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 870 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 871 | # |
| 872 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 873 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 874 | # Only set if respsonses have been recorded and only when the |
| 875 | # requesting user is an editor of the form. |
| 876 | # |
| 877 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 878 | }, |
| 879 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 880 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 881 | "title": "A String", # Title of the target of the URL. |
| 882 | # |
| 883 | # Read-only. |
| 884 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 885 | # |
| 886 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 887 | "url": "A String", # URL to link to. |
| 888 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 889 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 890 | }, |
| 891 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 892 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 893 | # |
| 894 | # Read-only. |
| 895 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 896 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 897 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 898 | # This is only populated if `state` is `PUBLISHED`. |
| 899 | # |
| 900 | # Read-only. |
| 901 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 902 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 903 | # |
| 904 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 905 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 906 | # |
| 907 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 908 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 909 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 910 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 911 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 912 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 913 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 914 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 915 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 916 | ], |
| 917 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 918 | "state": "A String", # Status of this announcement. |
| 919 | # If unspecified, the default state is `DRAFT`. |
| 920 | "text": "A String", # Description of this announcement. |
| 921 | # The text must be a valid UTF-8 string containing no more |
| 922 | # than 30,000 characters. |
| 923 | "courseId": "A String", # Identifier of the course. |
| 924 | # |
| 925 | # Read-only. |
| 926 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 927 | # |
| 928 | # Read-only. |
| 929 | } |
| 930 | |
| 931 | updateMask: string, Mask that identifies which fields on the announcement to update. |
| 932 | This field is required to do an update. The update fails if invalid |
| 933 | fields are specified. If a field supports empty values, it can be cleared |
| 934 | by specifying it in the update mask and not in the Announcement object. If |
| 935 | a field that does not support empty values is included in the update mask |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 936 | and not set in the Announcement object, an `INVALID_ARGUMENT` error is |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 937 | returned. |
| 938 | |
| 939 | The 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 | |
| 949 | Returns: |
| 950 | An object of the form: |
| 951 | |
| 952 | { # Announcement created by a teacher for students of the course |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 953 | "materials": [ # Additional materials. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 954 | # |
| 955 | # Announcements must have no more than 20 material items. |
| 956 | { # Material attached to course work. |
| 957 | # |
| 958 | # When creating attachments, setting the `form` field is not supported. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 959 | "youtubeVideo": { # YouTube video item. # YouTube video material. |
| 960 | "title": "A String", # Title of the YouTube video. |
| 961 | # |
| 962 | # Read-only. |
| 963 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
| 964 | # |
| 965 | # Read-only. |
| 966 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 967 | # |
| 968 | # Read-only. |
| 969 | "id": "A String", # YouTube API resource ID. |
| 970 | }, |
| 971 | "driveFile": { # Drive file that is used as material for course work. # Google Drive file material. |
| 972 | "driveFile": { # Representation of a Google Drive file. # Drive file details. |
| 973 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
| 974 | # |
| 975 | # Read-only. |
| 976 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
| 977 | # |
| 978 | # Read-only. |
| 979 | "id": "A String", # Drive API resource ID. |
| 980 | "title": "A String", # Title of the Drive item. |
| 981 | # |
| 982 | # Read-only. |
| 983 | }, |
| 984 | "shareMode": "A String", # Mechanism by which students access the Drive item. |
| 985 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 986 | "form": { # Google Forms item. # Google Forms material. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 987 | "formUrl": "A String", # URL of the form. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 988 | "title": "A String", # Title of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 989 | # |
| 990 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 991 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 992 | # |
| 993 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 994 | "responseUrl": "A String", # URL of the form responses document. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 995 | # Only set if respsonses have been recorded and only when the |
| 996 | # requesting user is an editor of the form. |
| 997 | # |
| 998 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 999 | }, |
| 1000 | "link": { # URL item. # Link material. On creation, this is upgraded to a more appropriate type |
| 1001 | # if possible, and this is reflected in the response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1002 | "title": "A String", # Title of the target of the URL. |
| 1003 | # |
| 1004 | # Read-only. |
| 1005 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1006 | # |
| 1007 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1008 | "url": "A String", # URL to link to. |
| 1009 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1010 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1011 | }, |
| 1012 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1013 | "updateTime": "A String", # Timestamp of the most recent change to this announcement. |
| 1014 | # |
| 1015 | # Read-only. |
| 1016 | "assigneeMode": "A String", # Assignee mode of the announcement. |
| 1017 | # If unspecified, the default value is `ALL_STUDENTS`. |
| 1018 | "alternateLink": "A String", # Absolute link to this announcement in the Classroom web UI. |
| 1019 | # This is only populated if `state` is `PUBLISHED`. |
| 1020 | # |
| 1021 | # Read-only. |
| 1022 | "scheduledTime": "A String", # Optional timestamp when this announcement is scheduled to be published. |
| 1023 | "creationTime": "A String", # Timestamp when this announcement was created. |
| 1024 | # |
| 1025 | # Read-only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1026 | "creatorUserId": "A String", # Identifier for the user that created the announcement. |
| 1027 | # |
| 1028 | # Read-only. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1029 | "individualStudentsOptions": { # Assignee details about a coursework/announcement. # Identifiers of students with access to the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1030 | # This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
| 1031 | # If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1032 | # specified in this field can see the announcement. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1033 | # This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1034 | "studentIds": [ # Identifiers for the students that have access to the |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1035 | # coursework/announcement. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1036 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1037 | ], |
| 1038 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1039 | "state": "A String", # Status of this announcement. |
| 1040 | # If unspecified, the default state is `DRAFT`. |
| 1041 | "text": "A String", # Description of this announcement. |
| 1042 | # The text must be a valid UTF-8 string containing no more |
| 1043 | # than 30,000 characters. |
| 1044 | "courseId": "A String", # Identifier of the course. |
| 1045 | # |
| 1046 | # Read-only. |
| 1047 | "id": "A String", # Classroom-assigned identifier of this announcement, unique per course. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1048 | # |
| 1049 | # Read-only. |
| 1050 | }</pre> |
| 1051 | </div> |
| 1052 | |
| 1053 | </body></html> |