Class CoursesResource.CourseWorkResource.AddOnAttachmentsResource.StudentSubmissionsResource.PatchRequest
Updates data associated with an add-on attachment submission. Requires the add-on to have been
the original creator of the attachment and the attachment to have a positive max_points value
set. This method returns the following error codes: * PERMISSION_DENIED for access errors. *
INVALID_ARGUMENT if the request is malformed. * NOT_FOUND if one of the identified resources
does not exist.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.AddOnAttachmentsResource.StudentSubmissionsResource.PatchRequest : ClassroomBaseServiceRequest<AddOnAttachmentStudentSubmission>, IClientServiceRequest<AddOnAttachmentStudentSubmission>, IClientServiceRequest
Constructors
PatchRequest(IClientService, AddOnAttachmentStudentSubmission, string, string, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, AddOnAttachmentStudentSubmission body, string courseId, string itemId, string attachmentId, string submissionId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AddOnAttachmentStudentSubmission | body | |
| string | courseId | |
| string | itemId | |
| string | attachmentId | |
| string | submissionId |
Properties
AttachmentId
Required. Identifier of the attachment.
Declaration
[RequestParameter("attachmentId", RequestParameterType.Path)]
public virtual string AttachmentId { get; }
Property Value
| Type | Description |
|---|---|
| string |
CourseId
Required. 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
ItemId
Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the
attachment is attached. This field is required, but is not marked as such while we are
migrating from post_id.
Declaration
[RequestParameter("itemId", RequestParameterType.Path)]
public virtual string ItemId { get; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
PostId
Optional. Deprecated, use item_id instead.
Declaration
[RequestParameter("postId", RequestParameterType.Query)]
public virtual string PostId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
SubmissionId
Required. Identifier of the student's submission.
Declaration
[RequestParameter("submissionId", RequestParameterType.Path)]
public virtual string SubmissionId { get; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateMask
Required. Mask that identifies which fields on the attachment to update. The update fails if
invalid fields are specified. If a field supports empty values, it can be cleared by
specifying it in the update mask and not in the AddOnAttachmentStudentSubmission object.
The following fields may be specified by teachers: * points_earned
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 Patch parameter list.
Declaration
protected override void InitParameters()