Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.
See: Google Classroom API Reference for classroom.courses.courseWork.studentSubmissions.return
.
Synopsis
- type CoursesCourseWorkStudentSubmissionsReturnResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "return" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReturnStudentSubmissionRequest :> Post '[JSON] Empty)))))))))))))
- coursesCourseWorkStudentSubmissionsReturn :: Text -> ReturnStudentSubmissionRequest -> Text -> Text -> CoursesCourseWorkStudentSubmissionsReturn
- data CoursesCourseWorkStudentSubmissionsReturn
- ccwssrXgafv :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Xgafv)
- ccwssrUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
- ccwssrCourseId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
- ccwssrAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
- ccwssrUploadType :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
- ccwssrPayload :: Lens' CoursesCourseWorkStudentSubmissionsReturn ReturnStudentSubmissionRequest
- ccwssrId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
- ccwssrCallback :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
- ccwssrCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
REST Resource
type CoursesCourseWorkStudentSubmissionsReturnResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "return" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReturnStudentSubmissionRequest :> Post '[JSON] Empty))))))))))))) Source #
A resource alias for classroom.courses.courseWork.studentSubmissions.return
method which the
CoursesCourseWorkStudentSubmissionsReturn
request conforms to.
Creating a Request
coursesCourseWorkStudentSubmissionsReturn Source #
Creates a value of CoursesCourseWorkStudentSubmissionsReturn
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesCourseWorkStudentSubmissionsReturn Source #
Returns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.
See: coursesCourseWorkStudentSubmissionsReturn
smart constructor.
Instances
Request Lenses
ccwssrXgafv :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Xgafv) Source #
V1 error format.
ccwssrUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ccwssrCourseId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ccwssrAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text) Source #
OAuth access token.
ccwssrUploadType :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ccwssrPayload :: Lens' CoursesCourseWorkStudentSubmissionsReturn ReturnStudentSubmissionRequest Source #
Multipart request metadata.
ccwssrId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text Source #
Identifier of the student submission.
ccwssrCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text Source #
Identifier of the course work.