class CoursesCourseWorkAddOnAttachmentsStudentSubmissions extends Resource (View source)

The "studentSubmissions" collection of methods.

Typical usage is:

 $classroomService = new Google\Service\Classroom(...);
 $studentSubmissions = $classroomService->courses_courseWork_addOnAttachments_studentSubmissions;

Methods

get(string $courseId, string $itemId, string $attachmentId, string $submissionId, array $optParams = [])

Returns a student submission for an add-on attachment. 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. (studentSubmissions.get)

patch(string $courseId, string $itemId, string $attachmentId, string $submissionId, AddOnAttachmentStudentSubmission $postBody, array $optParams = [])

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. (studentSubmissions.patch)

Details

AddOnAttachmentStudentSubmission get(string $courseId, string $itemId, string $attachmentId, string $submissionId, array $optParams = [])

Returns a student submission for an add-on attachment. 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. (studentSubmissions.get)

Parameters

string $courseId

Required. Identifier of the course.

string $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.

string $attachmentId

Required. Identifier of the attachment.

string $submissionId

Required. Identifier of the student’s submission.

array $optParams

Optional parameters.

Return Value

AddOnAttachmentStudentSubmission

Exceptions

Exception

AddOnAttachmentStudentSubmission patch(string $courseId, string $itemId, string $attachmentId, string $submissionId, AddOnAttachmentStudentSubmission $postBody, array $optParams = [])

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. (studentSubmissions.patch)

Parameters

string $courseId

Required. Identifier of the course.

string $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.

string $attachmentId

Required. Identifier of the attachment.

string $submissionId

Required. Identifier of the student's submission.

AddOnAttachmentStudentSubmission $postBody
array $optParams

Optional parameters.

Return Value

AddOnAttachmentStudentSubmission

Exceptions

Exception