class CoursesPostsAddOnAttachmentsStudentSubmissions extends Resource (View source)

The "studentSubmissions" collection of methods.

Typical usage is:

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

Methods

get(string $courseId, string $postId, 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 $postId, 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 $postId, 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 $postId

Optional. Deprecated, use item_id instead.

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 $postId, 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 $postId

Optional. Deprecated, use item_id instead.

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