gogol-classroom-0.1.0: 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.TurnIn

Contents

Description

Turns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. 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, turn in 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.turnIn.

Synopsis

REST Resource

type CoursesCourseWorkStudentSubmissionsTurnInResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "turnIn" 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] TurnInStudentSubmissionRequest :> Post '[JSON] Empty))))))))))))))) Source #

A resource alias for classroom.courses.courseWork.studentSubmissions.turnIn method which the CoursesCourseWorkStudentSubmissionsTurnIn request conforms to.

Creating a Request

data CoursesCourseWorkStudentSubmissionsTurnIn Source #

Turns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. 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, turn in 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: coursesCourseWorkStudentSubmissionsTurnIn smart constructor.

Instances

Eq CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Data CoursesCourseWorkStudentSubmissionsTurnIn Source # 

Methods

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

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

toConstr :: CoursesCourseWorkStudentSubmissionsTurnIn -> Constr #

dataTypeOf :: CoursesCourseWorkStudentSubmissionsTurnIn -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Generic CoursesCourseWorkStudentSubmissionsTurnIn Source # 
GoogleRequest CoursesCourseWorkStudentSubmissionsTurnIn Source # 
type Rep CoursesCourseWorkStudentSubmissionsTurnIn Source # 
type Rep CoursesCourseWorkStudentSubmissionsTurnIn = D1 (MetaData "CoursesCourseWorkStudentSubmissionsTurnIn" "Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn" "gogol-classroom-0.1.0-21rh7SRXdL3B6ZyyiLDhlq" False) (C1 (MetaCons "CoursesCourseWorkStudentSubmissionsTurnIn'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwsstiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccwsstiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TurnInStudentSubmissionRequest)) (S1 (MetaSel (Just Symbol "_ccwsstiBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsstiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwsstiCourseWorkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Scopes CoursesCourseWorkStudentSubmissionsTurnIn Source # 
type Scopes CoursesCourseWorkStudentSubmissionsTurnIn = (:) Symbol "https://www.googleapis.com/auth/classroom.coursework.me" ([] Symbol)
type Rs CoursesCourseWorkStudentSubmissionsTurnIn Source # 

Request Lenses

ccwsstiUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsTurnIn (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

ccwsstiCourseId :: Lens' CoursesCourseWorkStudentSubmissionsTurnIn Text Source #

Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.

ccwsstiUploadType :: Lens' CoursesCourseWorkStudentSubmissionsTurnIn (Maybe Text) Source #

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

ccwsstiId :: Lens' CoursesCourseWorkStudentSubmissionsTurnIn Text Source #

Identifier of the student submission.