Debian Codegraph @

docs/dyn/classroom_v1.courses.html

raw
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">
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">
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">
93 <code><a href="classroom_v1.courses.courseWorkMaterials.html">courseWorkMaterials()</a></code>
94 </p>
95 <p class="firstline">Returns the courseWorkMaterials Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="classroom_v1.courses.posts.html">posts()</a></code>
99 </p>
100 <p class="firstline">Returns the posts Resource.</p>
101
102 <p class="toc_element">
103 <code><a href="classroom_v1.courses.studentGroups.html">studentGroups()</a></code>
104 </p>
105 <p class="firstline">Returns the studentGroups Resource.</p>
106
107 <p class="toc_element">
108 <code><a href="classroom_v1.courses.students.html">students()</a></code>
109 </p>
110 <p class="firstline">Returns the students Resource.</p>
111
112 <p class="toc_element">
113 <code><a href="classroom_v1.courses.teachers.html">teachers()</a></code>
114 </p>
115 <p class="firstline">Returns the teachers Resource.</p>
116
117 <p class="toc_element">
118 <code><a href="classroom_v1.courses.topics.html">topics()</a></code>
119 </p>
120 <p class="firstline">Returns the topics Resource.</p>
121
122 <p class="toc_element">
123 <code><a href="#close">close()</a></code></p>
124 <p class="firstline">Close httplib2 connections.</p>
125 <p class="toc_element">
126 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Creates a course. The user specified in `ownerId` is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create courses or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled or for the following request errors: * UserCannotOwnCourse * UserGroupsMembershipLimitReached * CourseTitleCannotContainUrl * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists.</p>
128 <p class="toc_element">
129 <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p>
130 <p class="firstline">Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.</p>
131 <p class="toc_element">
132 <code><a href="#get">get(id, x__xgafv=None)</a></code></p>
133 <p class="firstline">Returns a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.</p>
134 <p class="toc_element">
135 <code><a href="#getGradingPeriodSettings">getGradingPeriodSettings(courseId, x__xgafv=None)</a></code></p>
136 <p class="firstline">Returns the grading period settings in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn't permitted to access the grading period settings in the requested course or for access errors. * `NOT_FOUND` if the requested course does not exist.</p>
137 <p class="toc_element">
138 <code><a href="#list">list(courseStates=None, pageSize=None, pageToken=None, studentId=None, teacherId=None, x__xgafv=None)</a></code></p>
139 <p class="firstline">Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * `NOT_FOUND` if any users specified in the query arguments do not exist.</p>
140 <p class="toc_element">
141 <code><a href="#list_next">list_next()</a></code></p>
142 <p class="firstline">Retrieves the next page of results.</p>
143 <p class="toc_element">
144 <code><a href="#patch">patch(id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
145 <p class="firstline">Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner * CourseTitleCannotContainUrl</p>
146 <p class="toc_element">
147 <code><a href="#update">update(id, body=None, x__xgafv=None)</a></code></p>
148 <p class="firstline">Updates a course. Note: Unlike other fields, `levels` is not cleared if omitted from the request. The `UpdateCourse` method only modifies `levels` if it is explicitly provided; otherwise, the existing value is preserved. Use the `PatchCourse` method to clear the `levels` field. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * CourseTitleCannotContainUrl</p>
149 <p class="toc_element">
150 <code><a href="#updateGradingPeriodSettings">updateGradingPeriodSettings(courseId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
151 <p class="firstline">Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/grading-periods/manage-grading-periods#licensing_requirements). This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the grading period settings in a course or for access errors: * UserIneligibleToUpdateGradingPeriodSettings * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.</p>
152 <h3>Method Details</h3>
153 <div class="method">
154 <code class="details" id="close">close()</code>
155 <pre>Close httplib2 connections.</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
160 <pre>Creates a course. The user specified in `ownerId` is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create courses or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user. * `FAILED_PRECONDITION` if the course owner&#x27;s account is disabled or for the following request errors: * UserCannotOwnCourse * UserGroupsMembershipLimitReached * CourseTitleCannotContainUrl * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists.
161
162 Args:
163 body: object, The request body.
164 The object takes the form of:
165
166 { # A Course in Classroom.
167 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
168 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
169 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
170 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
171 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
172 &quot;materials&quot;: [ # Materials attached to this set.
173 { # A material attached to a course as part of a material set.
174 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
175 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
176 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
177 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
178 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
179 },
180 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
181 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
182 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
183 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
184 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
185 },
186 &quot;link&quot;: { # URL item. # Link atatchment.
187 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
188 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
189 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
190 },
191 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
192 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
193 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
194 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
195 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
196 },
197 },
198 ],
199 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
200 },
201 ],
202 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
203 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
204 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
205 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
206 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
207 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
208 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
209 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
210 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
211 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
212 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
213 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
214 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
215 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
216 },
217 ],
218 },
219 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
220 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
221 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
222 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
223 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
224 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
225 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
226 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
227 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
228 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
229 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
230 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
231 },
232 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
233 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
234 }
235
236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
240
241 Returns:
242 An object of the form:
243
244 { # A Course in Classroom.
245 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
246 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
247 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
248 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
249 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
250 &quot;materials&quot;: [ # Materials attached to this set.
251 { # A material attached to a course as part of a material set.
252 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
253 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
254 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
255 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
256 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
257 },
258 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
259 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
260 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
261 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
262 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
263 },
264 &quot;link&quot;: { # URL item. # Link atatchment.
265 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
266 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
267 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
268 },
269 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
270 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
271 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
272 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
273 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
274 },
275 },
276 ],
277 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
278 },
279 ],
280 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
281 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
282 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
283 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
284 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
285 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
286 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
287 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
288 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
289 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
290 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
291 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
292 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
293 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
294 },
295 ],
296 },
297 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
298 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
299 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
300 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
301 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
302 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
303 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
304 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
305 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
306 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
307 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
308 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
309 },
310 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
311 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
312 }</pre>
313 </div>
314
315 <div class="method">
316 <code class="details" id="delete">delete(id, x__xgafv=None)</code>
317 <pre>Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
318
319 Args:
320 id: string, Identifier of the course to delete. This identifier can be either the Classroom-assigned identifier or an alias. (required)
321 x__xgafv: string, V1 error format.
322 Allowed values
323 1 - v1 error format
324 2 - v2 error format
325
326 Returns:
327 An object of the form:
328
329 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
330 }</pre>
331 </div>
332
333 <div class="method">
334 <code class="details" id="get">get(id, x__xgafv=None)</code>
335 <pre>Returns a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
336
337 Args:
338 id: string, Identifier of the course to return. This identifier can be either the Classroom-assigned identifier or an alias. (required)
339 x__xgafv: string, V1 error format.
340 Allowed values
341 1 - v1 error format
342 2 - v2 error format
343
344 Returns:
345 An object of the form:
346
347 { # A Course in Classroom.
348 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
349 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
350 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
351 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
352 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
353 &quot;materials&quot;: [ # Materials attached to this set.
354 { # A material attached to a course as part of a material set.
355 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
356 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
357 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
358 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
359 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
360 },
361 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
362 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
363 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
364 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
365 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
366 },
367 &quot;link&quot;: { # URL item. # Link atatchment.
368 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
369 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
370 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
371 },
372 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
373 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
374 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
375 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
376 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
377 },
378 },
379 ],
380 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
381 },
382 ],
383 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
384 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
385 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
386 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
387 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
388 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
389 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
390 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
391 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
392 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
393 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
394 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
395 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
396 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
397 },
398 ],
399 },
400 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
401 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
402 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
403 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
404 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
405 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
406 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
407 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
408 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
409 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
410 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
411 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
412 },
413 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
414 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
415 }</pre>
416 </div>
417
418 <div class="method">
419 <code class="details" id="getGradingPeriodSettings">getGradingPeriodSettings(courseId, x__xgafv=None)</code>
420 <pre>Returns the grading period settings in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn&#x27;t permitted to access the grading period settings in the requested course or for access errors. * `NOT_FOUND` if the requested course does not exist.
421
422 Args:
423 courseId: string, Required. The identifier of the course. (required)
424 x__xgafv: string, V1 error format.
425 Allowed values
426 1 - v1 error format
427 2 - v2 error format
428
429 Returns:
430 An object of the form:
431
432 { # Grading period settings that include all the individual grading periods in a course.
433 &quot;applyToExistingCoursework&quot;: True or False, # Supports toggling the application of grading periods on existing stream items. Once set, this value is persisted meaning that it does not need to be set in every request to update `GradingPeriodSettings`. If not previously set, the default is False.
434 &quot;gradingPeriods&quot;: [ # The list of grading periods in a specific course. Grading periods must not have overlapping date ranges and must be listed in chronological order. Each grading period must have a unique title within a course.
435 { # An individual grading period. Grading periods must not have overlapping date ranges and must be listed in chronological order. For example, if the end_date of a grading period is 2024-01-25, then the start_date of the next grading period must be 2024-01-26 or later. Each grading period must have a unique title within a course.
436 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. End date, in UTC, of the grading period. Inclusive.
437 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
438 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
439 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
440 },
441 &quot;id&quot;: &quot;A String&quot;, # Output only. System generated grading period ID. Read-only.
442 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. Start date, in UTC, of the grading period. Inclusive.
443 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
444 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
445 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
446 },
447 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the grading period. For example, “Semester 1”.
448 },
449 ],
450 }</pre>
451 </div>
452
453 <div class="method">
454 <code class="details" id="list">list(courseStates=None, pageSize=None, pageToken=None, studentId=None, teacherId=None, x__xgafv=None)</code>
455 <pre>Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * `NOT_FOUND` if any users specified in the query arguments do not exist.
456
457 Args:
458 courseStates: string, Restricts returned courses to those in one of the specified states. If unspecified, Courses in any state are returned. (repeated)
459 Allowed values
460 COURSE_STATE_UNSPECIFIED - No course state. No returned Course message will use this value.
461 ACTIVE - The course is active.
462 ARCHIVED - The course has been archived. You cannot modify it except to change it to a different state.
463 PROVISIONED - The course has been created, but not yet activated. It is accessible by the primary teacher and domain administrators, who may modify it or change it to the `ACTIVE` or `DECLINED` states. A course may only be changed to `PROVISIONED` if it is in the `DECLINED` state.
464 DECLINED - The course has been created, but declined. It is accessible by the course owner and domain administrators, though it will not be displayed in the web UI. You cannot modify the course except to change it to the `PROVISIONED` state. A course may only be changed to `DECLINED` if it is in the `PROVISIONED` state.
465 SUSPENDED - The course has been suspended. You cannot modify the course, and only the user identified by the `owner_id` can view the course. A course may be placed in this state if it potentially violates the Terms of Service.
466 pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.
467 pageToken: string, nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.
468 studentId: string, Restricts returned courses to those having a student with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user If specified, `teacher_id` must be empty.
469 teacherId: string, Restricts returned courses to those having a teacher with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user If specified, `student_id` must be empty.
470 x__xgafv: string, V1 error format.
471 Allowed values
472 1 - v1 error format
473 2 - v2 error format
474
475 Returns:
476 An object of the form:
477
478 { # Response when listing courses.
479 &quot;courses&quot;: [ # Courses that match the list request.
480 { # A Course in Classroom.
481 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
482 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
483 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
484 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
485 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
486 &quot;materials&quot;: [ # Materials attached to this set.
487 { # A material attached to a course as part of a material set.
488 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
489 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
490 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
491 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
492 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
493 },
494 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
495 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
496 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
497 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
498 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
499 },
500 &quot;link&quot;: { # URL item. # Link atatchment.
501 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
502 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
503 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
504 },
505 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
506 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
507 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
508 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
509 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
510 },
511 },
512 ],
513 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
514 },
515 ],
516 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
517 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
518 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
519 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
520 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
521 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
522 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
523 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
524 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
525 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
526 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
527 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
528 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
529 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
530 },
531 ],
532 },
533 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
534 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
535 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
536 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
537 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
538 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
539 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
540 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
541 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
542 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
543 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
544 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
545 },
546 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
547 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
548 },
549 ],
550 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further results are available.
551 }</pre>
552 </div>
553
554 <div class="method">
555 <code class="details" id="list_next">list_next()</code>
556 <pre>Retrieves the next page of results.
557
558 Args:
559 previous_request: The request for the previous page. (required)
560 previous_response: The response from the request for the previous page. (required)
561
562 Returns:
563 A request object that you can call &#x27;execute()&#x27; on to request the next
564 page. Returns None if there are no more items in the collection.
565 </pre>
566 </div>
567
568 <div class="method">
569 <code class="details" id="patch">patch(id, body=None, updateMask=None, x__xgafv=None)</code>
570 <pre>Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner * CourseTitleCannotContainUrl
571
572 Args:
573 id: string, Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias. (required)
574 body: object, The request body.
575 The object takes the form of:
576
577 { # A Course in Classroom.
578 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
579 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
580 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
581 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
582 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
583 &quot;materials&quot;: [ # Materials attached to this set.
584 { # A material attached to a course as part of a material set.
585 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
586 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
587 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
588 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
589 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
590 },
591 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
592 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
593 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
594 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
595 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
596 },
597 &quot;link&quot;: { # URL item. # Link atatchment.
598 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
599 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
600 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
601 },
602 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
603 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
604 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
605 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
606 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
607 },
608 },
609 ],
610 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
611 },
612 ],
613 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
614 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
615 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
616 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
617 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
618 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
619 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
620 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
621 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
622 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
623 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
624 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
625 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
626 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
627 },
628 ],
629 },
630 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
631 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
632 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
633 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
634 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
635 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
636 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
637 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
638 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
639 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
640 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
641 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
642 },
643 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
644 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
645 }
646
647 updateMask: string, Mask that identifies which fields on the course to update. This field is required to do an update. The update will fail if invalid fields are specified. The following fields are valid: * `courseState` * `description` * `descriptionHeading` * `name` * `ownerId` * `room` * `section` * `subject` * `levels` Note: patches to ownerId are treated as being effective immediately, but in practice it may take some time for the ownership transfer of all affected resources to complete. When set in a query parameter, this field should be specified as `updateMask=,,...`
648 x__xgafv: string, V1 error format.
649 Allowed values
650 1 - v1 error format
651 2 - v2 error format
652
653 Returns:
654 An object of the form:
655
656 { # A Course in Classroom.
657 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
658 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
659 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
660 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
661 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
662 &quot;materials&quot;: [ # Materials attached to this set.
663 { # A material attached to a course as part of a material set.
664 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
665 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
666 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
667 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
668 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
669 },
670 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
671 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
672 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
673 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
674 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
675 },
676 &quot;link&quot;: { # URL item. # Link atatchment.
677 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
678 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
679 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
680 },
681 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
682 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
683 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
684 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
685 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
686 },
687 },
688 ],
689 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
690 },
691 ],
692 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
693 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
694 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
695 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
696 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
697 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
698 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
699 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
700 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
701 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
702 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
703 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
704 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
705 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
706 },
707 ],
708 },
709 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
710 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
711 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
712 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
713 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
714 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
715 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
716 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
717 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
718 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
719 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
720 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
721 },
722 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
723 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
724 }</pre>
725 </div>
726
727 <div class="method">
728 <code class="details" id="update">update(id, body=None, x__xgafv=None)</code>
729 <pre>Updates a course. Note: Unlike other fields, `levels` is not cleared if omitted from the request. The `UpdateCourse` method only modifies `levels` if it is explicitly provided; otherwise, the existing value is preserved. Use the `PatchCourse` method to clear the `levels` field. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * CourseTitleCannotContainUrl
730
731 Args:
732 id: string, Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias. (required)
733 body: object, The request body.
734 The object takes the form of:
735
736 { # A Course in Classroom.
737 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
738 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
739 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
740 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
741 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
742 &quot;materials&quot;: [ # Materials attached to this set.
743 { # A material attached to a course as part of a material set.
744 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
745 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
746 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
747 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
748 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
749 },
750 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
751 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
752 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
753 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
754 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
755 },
756 &quot;link&quot;: { # URL item. # Link atatchment.
757 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
758 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
759 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
760 },
761 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
762 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
763 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
764 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
765 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
766 },
767 },
768 ],
769 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
770 },
771 ],
772 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
773 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
774 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
775 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
776 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
777 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
778 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
779 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
780 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
781 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
782 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
783 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
784 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
785 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
786 },
787 ],
788 },
789 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
790 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
791 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
792 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
793 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
794 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
795 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
796 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
797 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
798 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
799 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
800 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
801 },
802 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
803 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
804 }
805
806 x__xgafv: string, V1 error format.
807 Allowed values
808 1 - v1 error format
809 2 - v2 error format
810
811 Returns:
812 An object of the form:
813
814 { # A Course in Classroom.
815 &quot;alternateLink&quot;: &quot;A String&quot;, # Absolute link to this course in the Classroom web UI. Read-only.
816 &quot;calendarId&quot;: &quot;A String&quot;, # The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.
817 &quot;courseGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.
818 &quot;courseMaterialSets&quot;: [ # Sets of materials that appear on the &quot;about&quot; page of this course. Read-only.
819 { # A set of materials that appears on the &quot;About&quot; page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
820 &quot;materials&quot;: [ # Materials attached to this set.
821 { # A material attached to a course as part of a material set.
822 &quot;driveFile&quot;: { # Representation of a Google Drive file. # Google Drive file attachment.
823 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive item. Read-only.
824 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
825 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Drive item. Read-only.
826 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive item. Read-only.
827 },
828 &quot;form&quot;: { # Google Forms item. # Google Forms attachment.
829 &quot;formUrl&quot;: &quot;A String&quot;, # URL of the form.
830 &quot;responseUrl&quot;: &quot;A String&quot;, # URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.
831 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the Form. Read-only.
832 &quot;title&quot;: &quot;A String&quot;, # Title of the Form. Read-only.
833 },
834 &quot;link&quot;: { # URL item. # Link atatchment.
835 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the target URL. Read-only.
836 &quot;title&quot;: &quot;A String&quot;, # Title of the target of the URL. Read-only.
837 &quot;url&quot;: &quot;A String&quot;, # URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.
838 },
839 &quot;youTubeVideo&quot;: { # YouTube video item. # Youtube video attachment.
840 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to view the YouTube video. Read-only.
841 &quot;id&quot;: &quot;A String&quot;, # YouTube API resource ID.
842 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # URL of a thumbnail image of the YouTube video. Read-only.
843 &quot;title&quot;: &quot;A String&quot;, # Title of the YouTube video. Read-only.
844 },
845 },
846 ],
847 &quot;title&quot;: &quot;A String&quot;, # Title for this set.
848 },
849 ],
850 &quot;courseState&quot;: &quot;A String&quot;, # State of the course. If unspecified, the default state is `PROVISIONED`.
851 &quot;creationTime&quot;: &quot;A String&quot;, # Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.
852 &quot;description&quot;: &quot;A String&quot;, # Optional description. For example, &quot;We&#x27;ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!&quot; If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.
853 &quot;descriptionHeading&quot;: &quot;A String&quot;, # Optional heading for the description. For example, &quot;Welcome to 10th Grade Biology.&quot; If set, this field must be a valid UTF-8 string and no longer than 3600 characters.
854 &quot;enrollmentCode&quot;: &quot;A String&quot;, # Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.
855 &quot;gradebookSettings&quot;: { # The gradebook settings for a course. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details. # The gradebook settings that specify how a student&#x27;s overall grade for the course will be calculated and who it will be displayed to. Read-only.
856 &quot;calculationType&quot;: &quot;A String&quot;, # Indicates how the overall grade is calculated.
857 &quot;displaySetting&quot;: &quot;A String&quot;, # Indicates who can see the overall grade..
858 &quot;gradeCategories&quot;: [ # Grade categories that are available for coursework in the course.
859 { # Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.
860 &quot;defaultGradeDenominator&quot;: 42, # Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
861 &quot;id&quot;: &quot;A String&quot;, # ID of the grade category.
862 &quot;name&quot;: &quot;A String&quot;, # Name of the grade category.
863 &quot;weight&quot;: 42, # The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
864 },
865 ],
866 },
867 &quot;guardiansEnabled&quot;: True or False, # Whether or not guardian notifications are enabled for this course. Read-only.
868 &quot;id&quot;: &quot;A String&quot;, # Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.
869 &quot;levels&quot;: &quot;A String&quot;, # Optional. Levels for the course. Examples: &quot;9th grade&quot;, &quot;Middle school&quot;, &quot;4th - 5th&quot;, &quot;K-2&quot;, &quot;3000&quot;. If set, this field must be a valid UTF-8 string and fewer than 1000 characters. This field can only be cleared using the `PatchCourse` method.
870 &quot;name&quot;: &quot;A String&quot;, # Name of the course. For example, &quot;10th Grade Biology&quot;. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.
871 &quot;ownerId&quot;: &quot;A String&quot;, # The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `&quot;me&quot;`, indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.
872 &quot;room&quot;: &quot;A String&quot;, # Optional room location. For example, &quot;301&quot;. If set, this field must be a valid UTF-8 string and no longer than 650 characters.
873 &quot;section&quot;: &quot;A String&quot;, # Section of the course. For example, &quot;Period 2&quot;. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.
874 &quot;subject&quot;: &quot;A String&quot;, # Optional. The subject of the course.
875 &quot;teacherFolder&quot;: { # Representation of a Google Drive folder. # Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.
876 &quot;alternateLink&quot;: &quot;A String&quot;, # URL that can be used to access the Drive folder. Read-only.
877 &quot;id&quot;: &quot;A String&quot;, # Drive API resource ID.
878 &quot;title&quot;: &quot;A String&quot;, # Title of the Drive folder. Read-only.
879 },
880 &quot;teacherGroupEmail&quot;: &quot;A String&quot;, # The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.
881 &quot;updateTime&quot;: &quot;A String&quot;, # Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.
882 }</pre>
883 </div>
884
885 <div class="method">
886 <code class="details" id="updateGradingPeriodSettings">updateGradingPeriodSettings(courseId, body=None, updateMask=None, x__xgafv=None)</code>
887 <pre>Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/grading-periods/manage-grading-periods#licensing_requirements). This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the grading period settings in a course or for access errors: * UserIneligibleToUpdateGradingPeriodSettings * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
888
889 Args:
890 courseId: string, Required. The identifier of the course. (required)
891 body: object, The request body.
892 The object takes the form of:
893
894 { # Grading period settings that include all the individual grading periods in a course.
895 &quot;applyToExistingCoursework&quot;: True or False, # Supports toggling the application of grading periods on existing stream items. Once set, this value is persisted meaning that it does not need to be set in every request to update `GradingPeriodSettings`. If not previously set, the default is False.
896 &quot;gradingPeriods&quot;: [ # The list of grading periods in a specific course. Grading periods must not have overlapping date ranges and must be listed in chronological order. Each grading period must have a unique title within a course.
897 { # An individual grading period. Grading periods must not have overlapping date ranges and must be listed in chronological order. For example, if the end_date of a grading period is 2024-01-25, then the start_date of the next grading period must be 2024-01-26 or later. Each grading period must have a unique title within a course.
898 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. End date, in UTC, of the grading period. Inclusive.
899 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
900 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
901 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
902 },
903 &quot;id&quot;: &quot;A String&quot;, # Output only. System generated grading period ID. Read-only.
904 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. Start date, in UTC, of the grading period. Inclusive.
905 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
906 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
907 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
908 },
909 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the grading period. For example, “Semester 1”.
910 },
911 ],
912 }
913
914 updateMask: string, Mask that identifies which fields in the GradingPeriodSettings to update. The GradingPeriodSettings `grading_periods` list will be fully replaced by the grading periods specified in the update request. For example: * Grading periods included in the list without an ID are considered additions, and a new ID will be assigned when the request is made. * Grading periods that currently exist, but are missing from the request will be considered deletions. * Grading periods with an existing ID and modified data are considered edits. Unmodified data will be left as is. * Grading periods included with an unknown ID will result in an error. The following fields may be specified: * `grading_periods` * `apply_to_existing_coursework`
915 x__xgafv: string, V1 error format.
916 Allowed values
917 1 - v1 error format
918 2 - v2 error format
919
920 Returns:
921 An object of the form:
922
923 { # Grading period settings that include all the individual grading periods in a course.
924 &quot;applyToExistingCoursework&quot;: True or False, # Supports toggling the application of grading periods on existing stream items. Once set, this value is persisted meaning that it does not need to be set in every request to update `GradingPeriodSettings`. If not previously set, the default is False.
925 &quot;gradingPeriods&quot;: [ # The list of grading periods in a specific course. Grading periods must not have overlapping date ranges and must be listed in chronological order. Each grading period must have a unique title within a course.
926 { # An individual grading period. Grading periods must not have overlapping date ranges and must be listed in chronological order. For example, if the end_date of a grading period is 2024-01-25, then the start_date of the next grading period must be 2024-01-26 or later. Each grading period must have a unique title within a course.
927 &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. End date, in UTC, of the grading period. Inclusive.
928 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
929 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
930 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
931 },
932 &quot;id&quot;: &quot;A String&quot;, # Output only. System generated grading period ID. Read-only.
933 &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. Start date, in UTC, of the grading period. Inclusive.
934 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
935 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
936 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
937 },
938 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the grading period. For example, “Semester 1”.
939 },
940 ],
941 }</pre>
942 </div>
943
944 </body></html>