Class CoursesResource.UpdateGradingPeriodSettingsRequest
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.
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.UpdateGradingPeriodSettingsRequest : ClassroomBaseServiceRequest<GradingPeriodSettings>, IClientServiceRequest<GradingPeriodSettings>, IClientServiceRequest
Constructors
UpdateGradingPeriodSettingsRequest(IClientService, GradingPeriodSettings, string)
Constructs a new UpdateGradingPeriodSettings request.
Declaration
public UpdateGradingPeriodSettingsRequest(IClientService service, GradingPeriodSettings body, string courseId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GradingPeriodSettings | body | |
string | courseId |
Properties
CourseId
Required. The identifier of the course.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
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
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 UpdateGradingPeriodSettings parameter list.
Declaration
protected override void InitParameters()