Show / Hide Table of Contents

Class CoursesResource.CourseWorkResource.RubricsResource.PatchRequest

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
object
ClientServiceRequest
ClientServiceRequest<Rubric>
ClassroomBaseServiceRequest<Rubric>
CoursesResource.CourseWorkResource.RubricsResource.PatchRequest
Implements
IClientServiceRequest<Rubric>
IClientServiceRequest
Inherited Members
ClassroomBaseServiceRequest<Rubric>.Xgafv
ClassroomBaseServiceRequest<Rubric>.AccessToken
ClassroomBaseServiceRequest<Rubric>.Alt
ClassroomBaseServiceRequest<Rubric>.Callback
ClassroomBaseServiceRequest<Rubric>.Fields
ClassroomBaseServiceRequest<Rubric>.Key
ClassroomBaseServiceRequest<Rubric>.OauthToken
ClassroomBaseServiceRequest<Rubric>.PrettyPrint
ClassroomBaseServiceRequest<Rubric>.QuotaUser
ClassroomBaseServiceRequest<Rubric>.UploadType
ClassroomBaseServiceRequest<Rubric>.UploadProtocol
ClientServiceRequest<Rubric>.Execute()
ClientServiceRequest<Rubric>.ExecuteAsStream()
ClientServiceRequest<Rubric>.ExecuteAsync()
ClientServiceRequest<Rubric>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Rubric>.ExecuteAsStreamAsync()
ClientServiceRequest<Rubric>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Rubric>.CreateRequest(bool?)
ClientServiceRequest<Rubric>.GenerateRequestUri()
ClientServiceRequest<Rubric>.GetDefaultETagAction(string)
ClientServiceRequest<Rubric>.ETagAction
ClientServiceRequest<Rubric>.ModifyRequest
ClientServiceRequest<Rubric>.ValidateParameters
ClientServiceRequest<Rubric>.ApiVersion
ClientServiceRequest<Rubric>.RequestParameters
ClientServiceRequest<Rubric>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.PatchRequest : ClassroomBaseServiceRequest<Rubric>, IClientServiceRequest<Rubric>, IClientServiceRequest

Constructors

PatchRequest(IClientService, Rubric, string, string, string)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, Rubric body, string courseId, string courseWorkId, string id)
Parameters
Type Name Description
IClientService service
Rubric body
string courseId
string courseWorkId
string id

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
ClientServiceRequest<Rubric>.HttpMethod

Id

Optional. Identifier of the rubric.

Declaration
[RequestParameter("id", RequestParameterType.Path)]
public virtual string Id { get; }
Property Value
Type Description
string

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Rubric>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Rubric>.RestPath

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
ClientServiceRequest<Rubric>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
ClassroomBaseServiceRequest<Rubric>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX