Show / Hide Table of Contents

Class CoursesResource.CourseWorkResource.RubricsResource

The "rubrics" collection of methods.

Inheritance
object
CoursesResource.CourseWorkResource.RubricsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.RubricsResource

Constructors

RubricsResource(IClientService)

Constructs a new resource.

Declaration
public RubricsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(Rubric, string, string)

Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see licensing requirements. For further details, see Rubrics structure and known limitations. This request must be made by the Google Cloud console of the OAuth client ID used to create the parent course work item. This method returns the following error codes: * PERMISSION_DENIED if the requesting user isn't permitted to create rubrics for course work in the requested course. * INTERNAL if the request has insufficient OAuth scopes. * INVALID_ARGUMENT if the request is malformed and for the following request error: * RubricCriteriaInvalidFormat * NOT_FOUND if the requested course or course work don't exist or the user doesn't have access to the course or course work. * FAILED_PRECONDITION for the following request error: * AttachmentNotVisible

Declaration
public virtual CoursesResource.CourseWorkResource.RubricsResource.CreateRequest Create(Rubric body, string courseId, string courseWorkId)
Parameters
Type Name Description
Rubric body

The body of the request.

string courseId

Required. Identifier of the course.

string courseWorkId

Required. Identifier of the course work.

Returns
Type Description
CoursesResource.CourseWorkResource.RubricsResource.CreateRequest

Delete(string, string, string)

Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see licensing requirements. This request must be made by the Google Cloud console of the OAuth client ID used to create the corresponding rubric. This method returns the following error codes: * PERMISSION_DENIED if the requesting developer project didn't create the corresponding rubric, or if the requesting user isn't permitted to delete the requested rubric. * NOT_FOUND if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * INVALID_ARGUMENT if grading has already started on the rubric.

Declaration
public virtual CoursesResource.CourseWorkResource.RubricsResource.DeleteRequest Delete(string courseId, string courseWorkId, string id)
Parameters
Type Name Description
string courseId

Required. Identifier of the course.

string courseWorkId

Required. Identifier of the course work.

string id

Required. Identifier of the rubric.

Returns
Type Description
CoursesResource.CourseWorkResource.RubricsResource.DeleteRequest

Get(string, string, string)

Returns a rubric. This method returns the following error codes: * PERMISSION_DENIED for access errors. * INVALID_ARGUMENT if the request is malformed. * 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.

Declaration
public virtual CoursesResource.CourseWorkResource.RubricsResource.GetRequest Get(string courseId, string courseWorkId, string id)
Parameters
Type Name Description
string courseId

Required. Identifier of the course.

string courseWorkId

Required. Identifier of the course work.

string id

Required. Identifier of the rubric.

Returns
Type Description
CoursesResource.CourseWorkResource.RubricsResource.GetRequest

List(string, string)

Returns a list of rubrics that the requester is permitted to view. This method returns the following error codes: * PERMISSION_DENIED for access errors. * INVALID_ARGUMENT if the request is malformed. * NOT_FOUND if the requested course or course work doesn't exist or if the user doesn't have access to the corresponding course work.

Declaration
public virtual CoursesResource.CourseWorkResource.RubricsResource.ListRequest List(string courseId, string courseWorkId)
Parameters
Type Name Description
string courseId

Required. Identifier of the course.

string courseWorkId

Required. Identifier of the course work.

Returns
Type Description
CoursesResource.CourseWorkResource.RubricsResource.ListRequest

Patch(Rubric, string, string, string)

Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are limited once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see licensing requirements. This request must be made by the Google Cloud console of the OAuth client ID 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.

Declaration
public virtual CoursesResource.CourseWorkResource.RubricsResource.PatchRequest Patch(Rubric body, string courseId, string courseWorkId, string id)
Parameters
Type Name Description
Rubric body

The body of the request.

string courseId

Required. Identifier of the course.

string courseWorkId

Required. Identifier of the course work.

string id

Optional. Identifier of the rubric.

Returns
Type Description
CoursesResource.CourseWorkResource.RubricsResource.PatchRequest
In this article
Back to top Generated by DocFX