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