Class CoursesResource.CourseWorkResource.UpdateRubricRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.UpdateRubricRequest : ClassroomBaseServiceRequest<Rubric>, IClientServiceRequest<Rubric>, IClientServiceRequest
Constructors
UpdateRubricRequest(IClientService, Rubric, string, string)
Constructs a new UpdateRubric request.
Declaration
public UpdateRubricRequest(IClientService service, Rubric body, string courseId, string courseWorkId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Rubric | body | |
string | courseId | |
string | courseWorkId |
Properties
CourseId
Required. Identifier of the course.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
Type | Description |
---|---|
string |
CourseWorkId
Required. Identifier of the course work.
Declaration
[RequestParameter("courseWorkId", RequestParameterType.Path)]
public virtual string CourseWorkId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Id
Optional. Identifier of the rubric.
Declaration
[RequestParameter("id", RequestParameterType.Query)]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
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
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes UpdateRubric parameter list.
Declaration
protected override void InitParameters()