gogol-classroom-0.1.1: Google Classroom SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.Return

Contents

Description

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

REST Resource

type CoursesCourseWorkStudentSubmissionsReturnResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "return" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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

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

Eq CoursesCourseWorkStudentSubmissionsReturn Source # 
Data CoursesCourseWorkStudentSubmissionsReturn Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CoursesCourseWorkStudentSubmissionsReturn -> c CoursesCourseWorkStudentSubmissionsReturn #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CoursesCourseWorkStudentSubmissionsReturn #

toConstr :: CoursesCourseWorkStudentSubmissionsReturn -> Constr #

dataTypeOf :: CoursesCourseWorkStudentSubmissionsReturn -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CoursesCourseWorkStudentSubmissionsReturn) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CoursesCourseWorkStudentSubmissionsReturn) #

gmapT :: (forall b. Data b => b -> b) -> CoursesCourseWorkStudentSubmissionsReturn -> CoursesCourseWorkStudentSubmissionsReturn #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CoursesCourseWorkStudentSubmissionsReturn -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CoursesCourseWorkStudentSubmissionsReturn -> r #

gmapQ :: (forall d. Data d => d -> u) -> CoursesCourseWorkStudentSubmissionsReturn -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CoursesCourseWorkStudentSubmissionsReturn -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CoursesCourseWorkStudentSubmissionsReturn -> m CoursesCourseWorkStudentSubmissionsReturn #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesCourseWorkStudentSubmissionsReturn -> m CoursesCourseWorkStudentSubmissionsReturn #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesCourseWorkStudentSubmissionsReturn -> m CoursesCourseWorkStudentSubmissionsReturn #

Show CoursesCourseWorkStudentSubmissionsReturn Source # 
Generic CoursesCourseWorkStudentSubmissionsReturn Source # 
GoogleRequest CoursesCourseWorkStudentSubmissionsReturn Source # 
type Rep CoursesCourseWorkStudentSubmissionsReturn Source # 
type Rep CoursesCourseWorkStudentSubmissionsReturn = D1 (MetaData "CoursesCourseWorkStudentSubmissionsReturn" "Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.Return" "gogol-classroom-0.1.1-uUyuMhDFcTJtl7PtU5n8Y" False) (C1 (MetaCons "CoursesCourseWorkStudentSubmissionsReturn'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwssrUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccwssrAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrPayload") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 ReturnStudentSubmissionRequest)) (S1 (MetaSel (Just Symbol "_ccwssrBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwssrCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwssrCourseWorkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Scopes CoursesCourseWorkStudentSubmissionsReturn Source # 
type Scopes CoursesCourseWorkStudentSubmissionsReturn = (:) Symbol "https://www.googleapis.com/auth/classroom.coursework.students" ([] Symbol)
type Rs CoursesCourseWorkStudentSubmissionsReturn Source # 

Request Lenses

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.

ccwssrUploadType :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

ccwssrId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text Source #

Identifier of the student submission.