Skip to content

Commit 689741c

Browse files
feat(classroom): update the api
#### classroom:v1 The following keys were added: - resources.courses.resources.courseWork.methods.updateRubric (Total Keys: 19) - resources.courses.resources.courseWork.resources.rubrics.methods.create (Total Keys: 14) - resources.courses.resources.courseWork.resources.rubrics.methods.delete (Total Keys: 16) - resources.courses.resources.courseWork.resources.rubrics.methods.get (Total Keys: 16) - resources.courses.resources.courseWork.resources.rubrics.methods.list (Total Keys: 18) - resources.courses.resources.courseWork.resources.rubrics.methods.patch (Total Keys: 20) - schemas.Criterion (Total Keys: 5) - schemas.Level (Total Keys: 5) - schemas.ListRubricsResponse (Total Keys: 5) - schemas.Rubric (Total Keys: 20) - schemas.StudentSubmission.properties.assignedRubricGrades (Total Keys: 2) - schemas.StudentSubmission.properties.draftRubricGrades (Total Keys: 2)
1 parent 6e4eaae commit 689741c

File tree

4 files changed

+908
-1
lines changed

4 files changed

+908
-1
lines changed

docs/dyn/classroom_v1.courses.courseWork.html

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the addOnAttachments Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="classroom_v1.courses.courseWork.rubrics.html">rubrics()</a></code>
84+
</p>
85+
<p class="firstline">Returns the rubrics Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="classroom_v1.courses.courseWork.studentSubmissions.html">studentSubmissions()</a></code>
8489
</p>
@@ -111,6 +116,9 @@ <h2>Instance Methods</h2>
111116
<p class="toc_element">
112117
<code><a href="#patch">patch(courseId, id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
113118
<p class="firstline">Updates one or more fields of a course work. See google.classroom.v1.CourseWork for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested course work has already been deleted. * `NOT_FOUND` if the requested course or course work does not exist.</p>
119+
<p class="toc_element">
120+
<code><a href="#updateRubric">updateRubric(courseId, courseWorkId, body=None, id=None, updateMask=None, x__xgafv=None)</a></code></p>
121+
<p class="firstline">Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.</p>
114122
<h3>Method Details</h3>
115123
<div class="method">
116124
<code class="details" id="close">close()</code>
@@ -876,4 +884,73 @@ <h3>Method Details</h3>
876884
}</pre>
877885
</div>
878886

887+
<div class="method">
888+
<code class="details" id="updateRubric">updateRubric(courseId, courseWorkId, body=None, id=None, updateMask=None, x__xgafv=None)</code>
889+
<pre>Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn&#x27;t create the corresponding course work, if the user isn&#x27;t permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn&#x27;t exist or if the user doesn&#x27;t have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.
890+
891+
Args:
892+
courseId: string, Required. Identifier of the course. (required)
893+
courseWorkId: string, Required. Identifier of the course work. (required)
894+
body: object, The request body.
895+
The object takes the form of:
896+
897+
{ # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
898+
&quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
899+
&quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
900+
&quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
901+
&quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
902+
{ # A rubric criterion. Each criterion is a dimension on which performance is rated.
903+
&quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
904+
&quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
905+
&quot;levels&quot;: [ # The list of levels within this criterion.
906+
{ # A level of the criterion.
907+
&quot;description&quot;: &quot;A String&quot;, # The description of the level.
908+
&quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
909+
&quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
910+
&quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
911+
},
912+
],
913+
&quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
914+
},
915+
],
916+
&quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
917+
&quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # Input only. Immutable. Google Sheets ID of the spreadsheet. This spreadsheet must contain formatted rubric settings. See [Create or reuse a rubric for an assignment](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
918+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
919+
}
920+
921+
id: string, Optional. Identifier of the rubric.
922+
updateMask: string, Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the `source_spreadsheet_id` and the `criteria` list. Only one of these can be used at a time to define a rubric. The rubric `criteria` list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * `criteria` * `source_spreadsheet_id`
923+
x__xgafv: string, V1 error format.
924+
Allowed values
925+
1 - v1 error format
926+
2 - v2 error format
927+
928+
Returns:
929+
An object of the form:
930+
931+
{ # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
932+
&quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
933+
&quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
934+
&quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
935+
&quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
936+
{ # A rubric criterion. Each criterion is a dimension on which performance is rated.
937+
&quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
938+
&quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
939+
&quot;levels&quot;: [ # The list of levels within this criterion.
940+
{ # A level of the criterion.
941+
&quot;description&quot;: &quot;A String&quot;, # The description of the level.
942+
&quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
943+
&quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
944+
&quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
945+
},
946+
],
947+
&quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
948+
},
949+
],
950+
&quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
951+
&quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # Input only. Immutable. Google Sheets ID of the spreadsheet. This spreadsheet must contain formatted rubric settings. See [Create or reuse a rubric for an assignment](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
952+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
953+
}</pre>
954+
</div>
955+
879956
</body></html>

0 commit comments

Comments
 (0)