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"> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 108 | <code><a href="#create">create(body, 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"> |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 117 | <code><a href="#list">list(studentId=None, pageSize=None, courseStates=None, teacherId=None, pageToken=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"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 123 | <code><a href="#patch">patch(id, body, 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"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 126 | <code><a href="#update">update(id, body, 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"> |
| 130 | <code class="details" id="create">create(body, 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. |
| 141 | * `FAILED_PRECONDITION` if the course owner's account is disabled or for |
| 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: |
| 148 | body: object, The request body. (required) |
| 149 | The object takes the form of: |
| 150 | |
| 151 | { # A Course in Classroom. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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 | # |
| 161 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 162 | "name": "A String", # Name of the course. |
| 163 | # For example, "10th Grade Biology". |
| 164 | # The name is required. It must be between 1 and 750 characters and a valid |
| 165 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 166 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 167 | # |
| 168 | # Read-only. |
| 169 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 170 | # Specifying this field in a course update mask results in an error. |
| 171 | # |
| 172 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 173 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 174 | # This group does not accept email and can only be used for permissions. |
| 175 | # |
| 176 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 177 | "section": "A String", # Section of the course. |
| 178 | # For example, "Period 2". |
| 179 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 180 | # characters. |
| 181 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 182 | # |
| 183 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 184 | "creationTime": "A String", # Creation time of the course. |
| 185 | # Specifying this field in a course update mask results in an error. |
| 186 | # |
| 187 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 188 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 189 | # This group does not accept email and can only be used for permissions. |
| 190 | # |
| 191 | # Read-only. |
| 192 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 193 | # |
| 194 | # Read-only. |
| 195 | { # A set of materials that appears on the "About" page of the course. |
| 196 | # These materials might include a syllabus, schedule, or other background |
| 197 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 198 | "materials": [ # Materials attached to this set. |
| 199 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 200 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 201 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 202 | # |
| 203 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 204 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 205 | # |
| 206 | # Read-only. |
| 207 | "id": "A String", # YouTube API resource ID. |
| 208 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 209 | # |
| 210 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 211 | }, |
| 212 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 213 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 214 | # |
| 215 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 216 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 217 | # |
| 218 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 219 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 220 | "title": "A String", # Title of the Drive item. |
| 221 | # |
| 222 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 223 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 224 | "link": { # URL item. # Link atatchment. |
| 225 | "url": "A String", # URL to link to. |
| 226 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 227 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 228 | # |
| 229 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 230 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 231 | # |
| 232 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 233 | }, |
| 234 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 235 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 236 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 237 | # |
| 238 | # Read-only. |
| 239 | "responseUrl": "A String", # URL of the form responses document. |
| 240 | # Only set if respsonses have been recorded and only when the |
| 241 | # requesting user is an editor of the form. |
| 242 | # |
| 243 | # Read-only. |
| 244 | "title": "A String", # Title of the Form. |
| 245 | # |
| 246 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 247 | }, |
| 248 | }, |
| 249 | ], |
| 250 | "title": "A String", # Title for this set. |
| 251 | }, |
| 252 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 253 | "ownerId": "A String", # The identifier of the owner of a course. |
| 254 | # |
| 255 | # When specified as a parameter of a |
| 256 | # create course request, this |
| 257 | # field is required. |
| 258 | # The identifier can be one of the following: |
| 259 | # |
| 260 | # * the numeric identifier for the user |
| 261 | # * the email address of the user |
| 262 | # * the string literal `"me"`, indicating the requesting user |
| 263 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 264 | # This must be set in a create request. Admins can also specify this field |
| 265 | # in a patch course request to |
| 266 | # transfer ownership. In other contexts, it is read-only. |
| 267 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 268 | # Classroom adds events for course work and announcements in the course. |
| 269 | # |
| 270 | # Read-only. |
| 271 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 272 | # course. |
| 273 | # |
| 274 | # This field will only be set for teachers of the course and domain |
| 275 | # administrators. |
| 276 | # |
| 277 | # Read-only. |
| 278 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 279 | # |
| 280 | # Read-only. |
| 281 | "id": "A String", # Drive API resource ID. |
| 282 | "title": "A String", # Title of the Drive folder. |
| 283 | # |
| 284 | # Read-only. |
| 285 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 286 | "courseState": "A String", # State of the course. |
| 287 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 288 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 289 | # |
| 290 | # When |
| 291 | # creating a course, |
| 292 | # you may optionally set this identifier to an |
| 293 | # alias string in the |
| 294 | # request to create a corresponding alias. The `id` is still assigned by |
| 295 | # Classroom and cannot be updated after the course is created. |
| 296 | # |
| 297 | # Specifying this field in a course update mask results in an error. |
| 298 | "descriptionHeading": "A String", # Optional heading for the description. |
| 299 | # For example, "Welcome to 10th Grade Biology." |
| 300 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 301 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 302 | "room": "A String", # Optional room location. |
| 303 | # For example, "301". |
| 304 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 305 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 306 | } |
| 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 | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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. |
| 325 | # |
| 326 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 327 | "name": "A String", # Name of the course. |
| 328 | # For example, "10th Grade Biology". |
| 329 | # The name is required. It must be between 1 and 750 characters and a valid |
| 330 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 331 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 332 | # |
| 333 | # Read-only. |
| 334 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 335 | # Specifying this field in a course update mask results in an error. |
| 336 | # |
| 337 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 338 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 339 | # This group does not accept email and can only be used for permissions. |
| 340 | # |
| 341 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 342 | "section": "A String", # Section of the course. |
| 343 | # For example, "Period 2". |
| 344 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 345 | # characters. |
| 346 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 347 | # |
| 348 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 349 | "creationTime": "A String", # Creation time of the course. |
| 350 | # Specifying this field in a course update mask results in an error. |
| 351 | # |
| 352 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 353 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 354 | # This group does not accept email and can only be used for permissions. |
| 355 | # |
| 356 | # Read-only. |
| 357 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 358 | # |
| 359 | # Read-only. |
| 360 | { # A set of materials that appears on the "About" page of the course. |
| 361 | # These materials might include a syllabus, schedule, or other background |
| 362 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 363 | "materials": [ # Materials attached to this set. |
| 364 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 365 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 366 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 367 | # |
| 368 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 369 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 370 | # |
| 371 | # Read-only. |
| 372 | "id": "A String", # YouTube API resource ID. |
| 373 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 374 | # |
| 375 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 376 | }, |
| 377 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 378 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 379 | # |
| 380 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 381 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 382 | # |
| 383 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 384 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 385 | "title": "A String", # Title of the Drive item. |
| 386 | # |
| 387 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 388 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 389 | "link": { # URL item. # Link atatchment. |
| 390 | "url": "A String", # URL to link to. |
| 391 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 392 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 393 | # |
| 394 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 395 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 396 | # |
| 397 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 398 | }, |
| 399 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 400 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 401 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 402 | # |
| 403 | # Read-only. |
| 404 | "responseUrl": "A String", # URL of the form responses document. |
| 405 | # Only set if respsonses have been recorded and only when the |
| 406 | # requesting user is an editor of the form. |
| 407 | # |
| 408 | # Read-only. |
| 409 | "title": "A String", # Title of the Form. |
| 410 | # |
| 411 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 412 | }, |
| 413 | }, |
| 414 | ], |
| 415 | "title": "A String", # Title for this set. |
| 416 | }, |
| 417 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 418 | "ownerId": "A String", # The identifier of the owner of a course. |
| 419 | # |
| 420 | # When specified as a parameter of a |
| 421 | # create course request, this |
| 422 | # field is required. |
| 423 | # The identifier can be one of the following: |
| 424 | # |
| 425 | # * the numeric identifier for the user |
| 426 | # * the email address of the user |
| 427 | # * the string literal `"me"`, indicating the requesting user |
| 428 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 429 | # This must be set in a create request. Admins can also specify this field |
| 430 | # in a patch course request to |
| 431 | # transfer ownership. In other contexts, it is read-only. |
| 432 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 433 | # Classroom adds events for course work and announcements in the course. |
| 434 | # |
| 435 | # Read-only. |
| 436 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 437 | # course. |
| 438 | # |
| 439 | # This field will only be set for teachers of the course and domain |
| 440 | # administrators. |
| 441 | # |
| 442 | # Read-only. |
| 443 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 444 | # |
| 445 | # Read-only. |
| 446 | "id": "A String", # Drive API resource ID. |
| 447 | "title": "A String", # Title of the Drive folder. |
| 448 | # |
| 449 | # Read-only. |
| 450 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 451 | "courseState": "A String", # State of the course. |
| 452 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 453 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 454 | # |
| 455 | # When |
| 456 | # creating a course, |
| 457 | # you may optionally set this identifier to an |
| 458 | # alias string in the |
| 459 | # request to create a corresponding alias. The `id` is still assigned by |
| 460 | # Classroom and cannot be updated after the course is created. |
| 461 | # |
| 462 | # Specifying this field in a course update mask results in an error. |
| 463 | "descriptionHeading": "A String", # Optional heading for the description. |
| 464 | # For example, "Welcome to 10th Grade Biology." |
| 465 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 466 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 467 | "room": "A String", # Optional room location. |
| 468 | # For example, "301". |
| 469 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 470 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 471 | }</pre> |
| 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 | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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. |
| 539 | # |
| 540 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 541 | "name": "A String", # Name of the course. |
| 542 | # For example, "10th Grade Biology". |
| 543 | # The name is required. It must be between 1 and 750 characters and a valid |
| 544 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 545 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 546 | # |
| 547 | # Read-only. |
| 548 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 549 | # Specifying this field in a course update mask results in an error. |
| 550 | # |
| 551 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 552 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 553 | # This group does not accept email and can only be used for permissions. |
| 554 | # |
| 555 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 556 | "section": "A String", # Section of the course. |
| 557 | # For example, "Period 2". |
| 558 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 559 | # characters. |
| 560 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 561 | # |
| 562 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 563 | "creationTime": "A String", # Creation time of the course. |
| 564 | # Specifying this field in a course update mask results in an error. |
| 565 | # |
| 566 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 567 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 568 | # This group does not accept email and can only be used for permissions. |
| 569 | # |
| 570 | # Read-only. |
| 571 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 572 | # |
| 573 | # Read-only. |
| 574 | { # A set of materials that appears on the "About" page of the course. |
| 575 | # These materials might include a syllabus, schedule, or other background |
| 576 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 577 | "materials": [ # Materials attached to this set. |
| 578 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 579 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 580 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 581 | # |
| 582 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 583 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 584 | # |
| 585 | # Read-only. |
| 586 | "id": "A String", # YouTube API resource ID. |
| 587 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 588 | # |
| 589 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 590 | }, |
| 591 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 592 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 593 | # |
| 594 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 595 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 596 | # |
| 597 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 598 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 599 | "title": "A String", # Title of the Drive item. |
| 600 | # |
| 601 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 602 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 603 | "link": { # URL item. # Link atatchment. |
| 604 | "url": "A String", # URL to link to. |
| 605 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 606 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 607 | # |
| 608 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 609 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 610 | # |
| 611 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 612 | }, |
| 613 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 614 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 615 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 616 | # |
| 617 | # Read-only. |
| 618 | "responseUrl": "A String", # URL of the form responses document. |
| 619 | # Only set if respsonses have been recorded and only when the |
| 620 | # requesting user is an editor of the form. |
| 621 | # |
| 622 | # Read-only. |
| 623 | "title": "A String", # Title of the Form. |
| 624 | # |
| 625 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 626 | }, |
| 627 | }, |
| 628 | ], |
| 629 | "title": "A String", # Title for this set. |
| 630 | }, |
| 631 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 632 | "ownerId": "A String", # The identifier of the owner of a course. |
| 633 | # |
| 634 | # When specified as a parameter of a |
| 635 | # create course request, this |
| 636 | # field is required. |
| 637 | # The identifier can be one of the following: |
| 638 | # |
| 639 | # * the numeric identifier for the user |
| 640 | # * the email address of the user |
| 641 | # * the string literal `"me"`, indicating the requesting user |
| 642 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 643 | # This must be set in a create request. Admins can also specify this field |
| 644 | # in a patch course request to |
| 645 | # transfer ownership. In other contexts, it is read-only. |
| 646 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 647 | # Classroom adds events for course work and announcements in the course. |
| 648 | # |
| 649 | # Read-only. |
| 650 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 651 | # course. |
| 652 | # |
| 653 | # This field will only be set for teachers of the course and domain |
| 654 | # administrators. |
| 655 | # |
| 656 | # Read-only. |
| 657 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 658 | # |
| 659 | # Read-only. |
| 660 | "id": "A String", # Drive API resource ID. |
| 661 | "title": "A String", # Title of the Drive folder. |
| 662 | # |
| 663 | # Read-only. |
| 664 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 665 | "courseState": "A String", # State of the course. |
| 666 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 667 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 668 | # |
| 669 | # When |
| 670 | # creating a course, |
| 671 | # you may optionally set this identifier to an |
| 672 | # alias string in the |
| 673 | # request to create a corresponding alias. The `id` is still assigned by |
| 674 | # Classroom and cannot be updated after the course is created. |
| 675 | # |
| 676 | # Specifying this field in a course update mask results in an error. |
| 677 | "descriptionHeading": "A String", # Optional heading for the description. |
| 678 | # For example, "Welcome to 10th Grade Biology." |
| 679 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 680 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 681 | "room": "A String", # Optional room location. |
| 682 | # For example, "301". |
| 683 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 684 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 685 | }</pre> |
| 686 | </div> |
| 687 | |
| 688 | <div class="method"> |
Sai Cheemalapati | ea3a5e1 | 2016-10-12 14:05:53 -0700 | [diff] [blame] | 689 | <code class="details" id="list">list(studentId=None, pageSize=None, courseStates=None, teacherId=None, pageToken=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 |
| 706 | * the string literal `"me"`, indicating the requesting user |
| 707 | pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the |
| 708 | server may assign a maximum. |
| 709 | |
| 710 | The server may return fewer than the specified number of results. |
| 711 | courseStates: string, Restricts returned courses to those in one of the specified states |
| 712 | The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. (repeated) |
| 713 | teacherId: string, Restricts returned courses to those having a teacher with the specified |
| 714 | identifier. The identifier can be one of the following: |
| 715 | |
| 716 | * the numeric identifier for the user |
| 717 | * the email address of the user |
| 718 | * the string literal `"me"`, indicating the requesting user |
| 719 | pageToken: string, nextPageToken |
| 720 | value returned from a previous |
| 721 | list call, |
| 722 | indicating that the subsequent page of results should be returned. |
| 723 | |
| 724 | The list request must be |
| 725 | otherwise identical to the one that resulted in this token. |
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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 735 | "nextPageToken": "A String", # Token identifying the next page of results to return. If empty, no further |
| 736 | # results are available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [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 | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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. |
| 747 | # |
| 748 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 749 | "name": "A String", # Name of the course. |
| 750 | # For example, "10th Grade Biology". |
| 751 | # The name is required. It must be between 1 and 750 characters and a valid |
| 752 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 753 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 754 | # |
| 755 | # Read-only. |
| 756 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 757 | # Specifying this field in a course update mask results in an error. |
| 758 | # |
| 759 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 760 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 761 | # This group does not accept email and can only be used for permissions. |
| 762 | # |
| 763 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 764 | "section": "A String", # Section of the course. |
| 765 | # For example, "Period 2". |
| 766 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 767 | # characters. |
| 768 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 769 | # |
| 770 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 771 | "creationTime": "A String", # Creation time of the course. |
| 772 | # Specifying this field in a course update mask results in an error. |
| 773 | # |
| 774 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 775 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 776 | # This group does not accept email and can only be used for permissions. |
| 777 | # |
| 778 | # Read-only. |
| 779 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 780 | # |
| 781 | # Read-only. |
| 782 | { # A set of materials that appears on the "About" page of the course. |
| 783 | # These materials might include a syllabus, schedule, or other background |
| 784 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 785 | "materials": [ # Materials attached to this set. |
| 786 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 787 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 788 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 789 | # |
| 790 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 791 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 792 | # |
| 793 | # Read-only. |
| 794 | "id": "A String", # YouTube API resource ID. |
| 795 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 796 | # |
| 797 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 798 | }, |
| 799 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 800 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 801 | # |
| 802 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 803 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 804 | # |
| 805 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 806 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 807 | "title": "A String", # Title of the Drive item. |
| 808 | # |
| 809 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 810 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 811 | "link": { # URL item. # Link atatchment. |
| 812 | "url": "A String", # URL to link to. |
| 813 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 814 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 815 | # |
| 816 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 817 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 818 | # |
| 819 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 820 | }, |
| 821 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 822 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 823 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 824 | # |
| 825 | # Read-only. |
| 826 | "responseUrl": "A String", # URL of the form responses document. |
| 827 | # Only set if respsonses have been recorded and only when the |
| 828 | # requesting user is an editor of the form. |
| 829 | # |
| 830 | # Read-only. |
| 831 | "title": "A String", # Title of the Form. |
| 832 | # |
| 833 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 834 | }, |
| 835 | }, |
| 836 | ], |
| 837 | "title": "A String", # Title for this set. |
| 838 | }, |
| 839 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 840 | "ownerId": "A String", # The identifier of the owner of a course. |
| 841 | # |
| 842 | # When specified as a parameter of a |
| 843 | # create course request, this |
| 844 | # field is required. |
| 845 | # The identifier can be one of the following: |
| 846 | # |
| 847 | # * the numeric identifier for the user |
| 848 | # * the email address of the user |
| 849 | # * the string literal `"me"`, indicating the requesting user |
| 850 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 851 | # This must be set in a create request. Admins can also specify this field |
| 852 | # in a patch course request to |
| 853 | # transfer ownership. In other contexts, it is read-only. |
| 854 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 855 | # Classroom adds events for course work and announcements in the course. |
| 856 | # |
| 857 | # Read-only. |
| 858 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 859 | # course. |
| 860 | # |
| 861 | # This field will only be set for teachers of the course and domain |
| 862 | # administrators. |
| 863 | # |
| 864 | # Read-only. |
| 865 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 866 | # |
| 867 | # Read-only. |
| 868 | "id": "A String", # Drive API resource ID. |
| 869 | "title": "A String", # Title of the Drive folder. |
| 870 | # |
| 871 | # Read-only. |
| 872 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 873 | "courseState": "A String", # State of the course. |
| 874 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 875 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 876 | # |
| 877 | # When |
| 878 | # creating a course, |
| 879 | # you may optionally set this identifier to an |
| 880 | # alias string in the |
| 881 | # request to create a corresponding alias. The `id` is still assigned by |
| 882 | # Classroom and cannot be updated after the course is created. |
| 883 | # |
| 884 | # Specifying this field in a course update mask results in an error. |
| 885 | "descriptionHeading": "A String", # Optional heading for the description. |
| 886 | # For example, "Welcome to 10th Grade Biology." |
| 887 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 888 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 889 | "room": "A String", # Optional room location. |
| 890 | # For example, "301". |
| 891 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 892 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 893 | }, |
| 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: |
| 907 | A request object that you can call 'execute()' on to request the next |
| 908 | page. Returns None if there are no more items in the collection. |
| 909 | </pre> |
| 910 | </div> |
| 911 | |
| 912 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 913 | <code class="details" id="patch">patch(id, body, 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) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 930 | body: object, The request body. (required) |
| 931 | The object takes the form of: |
| 932 | |
| 933 | { # A Course in Classroom. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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 | # |
| 943 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 944 | "name": "A String", # Name of the course. |
| 945 | # For example, "10th Grade Biology". |
| 946 | # The name is required. It must be between 1 and 750 characters and a valid |
| 947 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 948 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 949 | # |
| 950 | # Read-only. |
| 951 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 952 | # Specifying this field in a course update mask results in an error. |
| 953 | # |
| 954 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 955 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 956 | # This group does not accept email and can only be used for permissions. |
| 957 | # |
| 958 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 959 | "section": "A String", # Section of the course. |
| 960 | # For example, "Period 2". |
| 961 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 962 | # characters. |
| 963 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 964 | # |
| 965 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 966 | "creationTime": "A String", # Creation time of the course. |
| 967 | # Specifying this field in a course update mask results in an error. |
| 968 | # |
| 969 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 970 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 971 | # This group does not accept email and can only be used for permissions. |
| 972 | # |
| 973 | # Read-only. |
| 974 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 975 | # |
| 976 | # Read-only. |
| 977 | { # A set of materials that appears on the "About" page of the course. |
| 978 | # These materials might include a syllabus, schedule, or other background |
| 979 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 980 | "materials": [ # Materials attached to this set. |
| 981 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 982 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 983 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 984 | # |
| 985 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 986 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 987 | # |
| 988 | # Read-only. |
| 989 | "id": "A String", # YouTube API resource ID. |
| 990 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 991 | # |
| 992 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 993 | }, |
| 994 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 995 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 996 | # |
| 997 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 998 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 999 | # |
| 1000 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1001 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1002 | "title": "A String", # Title of the Drive item. |
| 1003 | # |
| 1004 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1005 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1006 | "link": { # URL item. # Link atatchment. |
| 1007 | "url": "A String", # URL to link to. |
| 1008 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 1009 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1010 | # |
| 1011 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1012 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1013 | # |
| 1014 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1015 | }, |
| 1016 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1017 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1018 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 1019 | # |
| 1020 | # Read-only. |
| 1021 | "responseUrl": "A String", # URL of the form responses document. |
| 1022 | # Only set if respsonses have been recorded and only when the |
| 1023 | # requesting user is an editor of the form. |
| 1024 | # |
| 1025 | # Read-only. |
| 1026 | "title": "A String", # Title of the Form. |
| 1027 | # |
| 1028 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1029 | }, |
| 1030 | }, |
| 1031 | ], |
| 1032 | "title": "A String", # Title for this set. |
| 1033 | }, |
| 1034 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1035 | "ownerId": "A String", # The identifier of the owner of a course. |
| 1036 | # |
| 1037 | # When specified as a parameter of a |
| 1038 | # create course request, this |
| 1039 | # field is required. |
| 1040 | # The identifier can be one of the following: |
| 1041 | # |
| 1042 | # * the numeric identifier for the user |
| 1043 | # * the email address of the user |
| 1044 | # * the string literal `"me"`, indicating the requesting user |
| 1045 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1046 | # This must be set in a create request. Admins can also specify this field |
| 1047 | # in a patch course request to |
| 1048 | # transfer ownership. In other contexts, it is read-only. |
| 1049 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 1050 | # Classroom adds events for course work and announcements in the course. |
| 1051 | # |
| 1052 | # Read-only. |
| 1053 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 1054 | # course. |
| 1055 | # |
| 1056 | # This field will only be set for teachers of the course and domain |
| 1057 | # administrators. |
| 1058 | # |
| 1059 | # Read-only. |
| 1060 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 1061 | # |
| 1062 | # Read-only. |
| 1063 | "id": "A String", # Drive API resource ID. |
| 1064 | "title": "A String", # Title of the Drive folder. |
| 1065 | # |
| 1066 | # Read-only. |
| 1067 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1068 | "courseState": "A String", # State of the course. |
| 1069 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1070 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 1071 | # |
| 1072 | # When |
| 1073 | # creating a course, |
| 1074 | # you may optionally set this identifier to an |
| 1075 | # alias string in the |
| 1076 | # request to create a corresponding alias. The `id` is still assigned by |
| 1077 | # Classroom and cannot be updated after the course is created. |
| 1078 | # |
| 1079 | # Specifying this field in a course update mask results in an error. |
| 1080 | "descriptionHeading": "A String", # Optional heading for the description. |
| 1081 | # For example, "Welcome to 10th Grade Biology." |
| 1082 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 1083 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1084 | "room": "A String", # Optional room location. |
| 1085 | # For example, "301". |
| 1086 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1087 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1088 | } |
| 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 | |
| 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 | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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. |
| 1126 | # |
| 1127 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1128 | "name": "A String", # Name of the course. |
| 1129 | # For example, "10th Grade Biology". |
| 1130 | # The name is required. It must be between 1 and 750 characters and a valid |
| 1131 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1132 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 1133 | # |
| 1134 | # Read-only. |
| 1135 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 1136 | # Specifying this field in a course update mask results in an error. |
| 1137 | # |
| 1138 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1139 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 1140 | # This group does not accept email and can only be used for permissions. |
| 1141 | # |
| 1142 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1143 | "section": "A String", # Section of the course. |
| 1144 | # For example, "Period 2". |
| 1145 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 1146 | # characters. |
| 1147 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 1148 | # |
| 1149 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1150 | "creationTime": "A String", # Creation time of the course. |
| 1151 | # Specifying this field in a course update mask results in an error. |
| 1152 | # |
| 1153 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1154 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 1155 | # This group does not accept email and can only be used for permissions. |
| 1156 | # |
| 1157 | # Read-only. |
| 1158 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 1159 | # |
| 1160 | # Read-only. |
| 1161 | { # A set of materials that appears on the "About" page of the course. |
| 1162 | # These materials might include a syllabus, schedule, or other background |
| 1163 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1164 | "materials": [ # Materials attached to this set. |
| 1165 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1166 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 1167 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1168 | # |
| 1169 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1170 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 1171 | # |
| 1172 | # Read-only. |
| 1173 | "id": "A String", # YouTube API resource ID. |
| 1174 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1175 | # |
| 1176 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1177 | }, |
| 1178 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1179 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1180 | # |
| 1181 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1182 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1183 | # |
| 1184 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1185 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1186 | "title": "A String", # Title of the Drive item. |
| 1187 | # |
| 1188 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1189 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1190 | "link": { # URL item. # Link atatchment. |
| 1191 | "url": "A String", # URL to link to. |
| 1192 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 1193 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1194 | # |
| 1195 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1196 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1197 | # |
| 1198 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1199 | }, |
| 1200 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1201 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1202 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 1203 | # |
| 1204 | # Read-only. |
| 1205 | "responseUrl": "A String", # URL of the form responses document. |
| 1206 | # Only set if respsonses have been recorded and only when the |
| 1207 | # requesting user is an editor of the form. |
| 1208 | # |
| 1209 | # Read-only. |
| 1210 | "title": "A String", # Title of the Form. |
| 1211 | # |
| 1212 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1213 | }, |
| 1214 | }, |
| 1215 | ], |
| 1216 | "title": "A String", # Title for this set. |
| 1217 | }, |
| 1218 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1219 | "ownerId": "A String", # The identifier of the owner of a course. |
| 1220 | # |
| 1221 | # When specified as a parameter of a |
| 1222 | # create course request, this |
| 1223 | # field is required. |
| 1224 | # The identifier can be one of the following: |
| 1225 | # |
| 1226 | # * the numeric identifier for the user |
| 1227 | # * the email address of the user |
| 1228 | # * the string literal `"me"`, indicating the requesting user |
| 1229 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1230 | # This must be set in a create request. Admins can also specify this field |
| 1231 | # in a patch course request to |
| 1232 | # transfer ownership. In other contexts, it is read-only. |
| 1233 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 1234 | # Classroom adds events for course work and announcements in the course. |
| 1235 | # |
| 1236 | # Read-only. |
| 1237 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 1238 | # course. |
| 1239 | # |
| 1240 | # This field will only be set for teachers of the course and domain |
| 1241 | # administrators. |
| 1242 | # |
| 1243 | # Read-only. |
| 1244 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 1245 | # |
| 1246 | # Read-only. |
| 1247 | "id": "A String", # Drive API resource ID. |
| 1248 | "title": "A String", # Title of the Drive folder. |
| 1249 | # |
| 1250 | # Read-only. |
| 1251 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1252 | "courseState": "A String", # State of the course. |
| 1253 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1254 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 1255 | # |
| 1256 | # When |
| 1257 | # creating a course, |
| 1258 | # you may optionally set this identifier to an |
| 1259 | # alias string in the |
| 1260 | # request to create a corresponding alias. The `id` is still assigned by |
| 1261 | # Classroom and cannot be updated after the course is created. |
| 1262 | # |
| 1263 | # Specifying this field in a course update mask results in an error. |
| 1264 | "descriptionHeading": "A String", # Optional heading for the description. |
| 1265 | # For example, "Welcome to 10th Grade Biology." |
| 1266 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 1267 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1268 | "room": "A String", # Optional room location. |
| 1269 | # For example, "301". |
| 1270 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1271 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1272 | }</pre> |
| 1273 | </div> |
| 1274 | |
| 1275 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 1276 | <code class="details" id="update">update(id, body, 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) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1291 | body: object, The request body. (required) |
| 1292 | The object takes the form of: |
| 1293 | |
| 1294 | { # A Course in Classroom. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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 | # |
| 1304 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1305 | "name": "A String", # Name of the course. |
| 1306 | # For example, "10th Grade Biology". |
| 1307 | # The name is required. It must be between 1 and 750 characters and a valid |
| 1308 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1309 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 1310 | # |
| 1311 | # Read-only. |
| 1312 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 1313 | # Specifying this field in a course update mask results in an error. |
| 1314 | # |
| 1315 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1316 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 1317 | # This group does not accept email and can only be used for permissions. |
| 1318 | # |
| 1319 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1320 | "section": "A String", # Section of the course. |
| 1321 | # For example, "Period 2". |
| 1322 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 1323 | # characters. |
| 1324 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 1325 | # |
| 1326 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1327 | "creationTime": "A String", # Creation time of the course. |
| 1328 | # Specifying this field in a course update mask results in an error. |
| 1329 | # |
| 1330 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1331 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 1332 | # This group does not accept email and can only be used for permissions. |
| 1333 | # |
| 1334 | # Read-only. |
| 1335 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 1336 | # |
| 1337 | # Read-only. |
| 1338 | { # A set of materials that appears on the "About" page of the course. |
| 1339 | # These materials might include a syllabus, schedule, or other background |
| 1340 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1341 | "materials": [ # Materials attached to this set. |
| 1342 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1343 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 1344 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1345 | # |
| 1346 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1347 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 1348 | # |
| 1349 | # Read-only. |
| 1350 | "id": "A String", # YouTube API resource ID. |
| 1351 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1352 | # |
| 1353 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1354 | }, |
| 1355 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1356 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1357 | # |
| 1358 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1359 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1360 | # |
| 1361 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1362 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1363 | "title": "A String", # Title of the Drive item. |
| 1364 | # |
| 1365 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1366 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1367 | "link": { # URL item. # Link atatchment. |
| 1368 | "url": "A String", # URL to link to. |
| 1369 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 1370 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1371 | # |
| 1372 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1373 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1374 | # |
| 1375 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1376 | }, |
| 1377 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1378 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1379 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 1380 | # |
| 1381 | # Read-only. |
| 1382 | "responseUrl": "A String", # URL of the form responses document. |
| 1383 | # Only set if respsonses have been recorded and only when the |
| 1384 | # requesting user is an editor of the form. |
| 1385 | # |
| 1386 | # Read-only. |
| 1387 | "title": "A String", # Title of the Form. |
| 1388 | # |
| 1389 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1390 | }, |
| 1391 | }, |
| 1392 | ], |
| 1393 | "title": "A String", # Title for this set. |
| 1394 | }, |
| 1395 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1396 | "ownerId": "A String", # The identifier of the owner of a course. |
| 1397 | # |
| 1398 | # When specified as a parameter of a |
| 1399 | # create course request, this |
| 1400 | # field is required. |
| 1401 | # The identifier can be one of the following: |
| 1402 | # |
| 1403 | # * the numeric identifier for the user |
| 1404 | # * the email address of the user |
| 1405 | # * the string literal `"me"`, indicating the requesting user |
| 1406 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1407 | # This must be set in a create request. Admins can also specify this field |
| 1408 | # in a patch course request to |
| 1409 | # transfer ownership. In other contexts, it is read-only. |
| 1410 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 1411 | # Classroom adds events for course work and announcements in the course. |
| 1412 | # |
| 1413 | # Read-only. |
| 1414 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 1415 | # course. |
| 1416 | # |
| 1417 | # This field will only be set for teachers of the course and domain |
| 1418 | # administrators. |
| 1419 | # |
| 1420 | # Read-only. |
| 1421 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 1422 | # |
| 1423 | # Read-only. |
| 1424 | "id": "A String", # Drive API resource ID. |
| 1425 | "title": "A String", # Title of the Drive folder. |
| 1426 | # |
| 1427 | # Read-only. |
| 1428 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1429 | "courseState": "A String", # State of the course. |
| 1430 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1431 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 1432 | # |
| 1433 | # When |
| 1434 | # creating a course, |
| 1435 | # you may optionally set this identifier to an |
| 1436 | # alias string in the |
| 1437 | # request to create a corresponding alias. The `id` is still assigned by |
| 1438 | # Classroom and cannot be updated after the course is created. |
| 1439 | # |
| 1440 | # Specifying this field in a course update mask results in an error. |
| 1441 | "descriptionHeading": "A String", # Optional heading for the description. |
| 1442 | # For example, "Welcome to 10th Grade Biology." |
| 1443 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 1444 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1445 | "room": "A String", # Optional room location. |
| 1446 | # For example, "301". |
| 1447 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1448 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1449 | } |
| 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 | 715bd7f | 2019-06-14 16:50:42 -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. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 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. |
| 1468 | # |
| 1469 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1470 | "name": "A String", # Name of the course. |
| 1471 | # For example, "10th Grade Biology". |
| 1472 | # The name is required. It must be between 1 and 750 characters and a valid |
| 1473 | # UTF-8 string. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1474 | "alternateLink": "A String", # Absolute link to this course in the Classroom web UI. |
| 1475 | # |
| 1476 | # Read-only. |
| 1477 | "enrollmentCode": "A String", # Enrollment code to use when joining this course. |
| 1478 | # Specifying this field in a course update mask results in an error. |
| 1479 | # |
| 1480 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1481 | "courseGroupEmail": "A String", # The email address of a Google group containing all members of the course. |
| 1482 | # This group does not accept email and can only be used for permissions. |
| 1483 | # |
| 1484 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1485 | "section": "A String", # Section of the course. |
| 1486 | # For example, "Period 2". |
| 1487 | # If set, this field must be a valid UTF-8 string and no longer than 2800 |
| 1488 | # characters. |
| 1489 | "guardiansEnabled": True or False, # Whether or not guardian notifications are enabled for this course. |
| 1490 | # |
| 1491 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1492 | "creationTime": "A String", # Creation time of the course. |
| 1493 | # Specifying this field in a course update mask results in an error. |
| 1494 | # |
| 1495 | # Read-only. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1496 | "teacherGroupEmail": "A String", # The email address of a Google group containing all teachers of the course. |
| 1497 | # This group does not accept email and can only be used for permissions. |
| 1498 | # |
| 1499 | # Read-only. |
| 1500 | "courseMaterialSets": [ # Sets of materials that appear on the "about" page of this course. |
| 1501 | # |
| 1502 | # Read-only. |
| 1503 | { # A set of materials that appears on the "About" page of the course. |
| 1504 | # These materials might include a syllabus, schedule, or other background |
| 1505 | # information relating to the course as a whole. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1506 | "materials": [ # Materials attached to this set. |
| 1507 | { # A material attached to a course as part of a material set. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1508 | "youTubeVideo": { # YouTube video item. # Youtube video attachment. |
| 1509 | "alternateLink": "A String", # URL that can be used to view the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1510 | # |
| 1511 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1512 | "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video. |
| 1513 | # |
| 1514 | # Read-only. |
| 1515 | "id": "A String", # YouTube API resource ID. |
| 1516 | "title": "A String", # Title of the YouTube video. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1517 | # |
| 1518 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1519 | }, |
| 1520 | "driveFile": { # Representation of a Google Drive file. # Google Drive file attachment. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1521 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1522 | # |
| 1523 | # Read-only. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1524 | "alternateLink": "A String", # URL that can be used to access the Drive item. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1525 | # |
| 1526 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1527 | "id": "A String", # Drive API resource ID. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1528 | "title": "A String", # Title of the Drive item. |
| 1529 | # |
| 1530 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1531 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1532 | "link": { # URL item. # Link atatchment. |
| 1533 | "url": "A String", # URL to link to. |
| 1534 | # This must be a valid UTF-8 string containing between 1 and 2024 characters. |
| 1535 | "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1536 | # |
| 1537 | # Read-only. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1538 | "title": "A String", # Title of the target of the URL. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1539 | # |
| 1540 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1541 | }, |
| 1542 | "form": { # Google Forms item. # Google Forms attachment. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1543 | "formUrl": "A String", # URL of the form. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1544 | "thumbnailUrl": "A String", # URL of a thumbnail image of the Form. |
| 1545 | # |
| 1546 | # Read-only. |
| 1547 | "responseUrl": "A String", # URL of the form responses document. |
| 1548 | # Only set if respsonses have been recorded and only when the |
| 1549 | # requesting user is an editor of the form. |
| 1550 | # |
| 1551 | # Read-only. |
| 1552 | "title": "A String", # Title of the Form. |
| 1553 | # |
| 1554 | # Read-only. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1555 | }, |
| 1556 | }, |
| 1557 | ], |
| 1558 | "title": "A String", # Title for this set. |
| 1559 | }, |
| 1560 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1561 | "ownerId": "A String", # The identifier of the owner of a course. |
| 1562 | # |
| 1563 | # When specified as a parameter of a |
| 1564 | # create course request, this |
| 1565 | # field is required. |
| 1566 | # The identifier can be one of the following: |
| 1567 | # |
| 1568 | # * the numeric identifier for the user |
| 1569 | # * the email address of the user |
| 1570 | # * the string literal `"me"`, indicating the requesting user |
| 1571 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1572 | # This must be set in a create request. Admins can also specify this field |
| 1573 | # in a patch course request to |
| 1574 | # transfer ownership. In other contexts, it is read-only. |
| 1575 | "calendarId": "A String", # The Calendar ID for a calendar that all course members can see, to which |
| 1576 | # Classroom adds events for course work and announcements in the course. |
| 1577 | # |
| 1578 | # Read-only. |
| 1579 | "teacherFolder": { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the |
| 1580 | # course. |
| 1581 | # |
| 1582 | # This field will only be set for teachers of the course and domain |
| 1583 | # administrators. |
| 1584 | # |
| 1585 | # Read-only. |
| 1586 | "alternateLink": "A String", # URL that can be used to access the Drive folder. |
| 1587 | # |
| 1588 | # Read-only. |
| 1589 | "id": "A String", # Drive API resource ID. |
| 1590 | "title": "A String", # Title of the Drive folder. |
| 1591 | # |
| 1592 | # Read-only. |
| 1593 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1594 | "courseState": "A String", # State of the course. |
| 1595 | # If unspecified, the default state is `PROVISIONED`. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1596 | "id": "A String", # Identifier for this course assigned by Classroom. |
| 1597 | # |
| 1598 | # When |
| 1599 | # creating a course, |
| 1600 | # you may optionally set this identifier to an |
| 1601 | # alias string in the |
| 1602 | # request to create a corresponding alias. The `id` is still assigned by |
| 1603 | # Classroom and cannot be updated after the course is created. |
| 1604 | # |
| 1605 | # Specifying this field in a course update mask results in an error. |
| 1606 | "descriptionHeading": "A String", # Optional heading for the description. |
| 1607 | # For example, "Welcome to 10th Grade Biology." |
| 1608 | # If set, this field must be a valid UTF-8 string and no longer than 3600 |
| 1609 | # characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1610 | "room": "A String", # Optional room location. |
| 1611 | # For example, "301". |
| 1612 | # If set, this field must be a valid UTF-8 string and no longer than 650 |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame] | 1613 | # characters. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1614 | }</pre> |
| 1615 | </div> |
| 1616 | |
| 1617 | </body></html> |