gogol-classroom-0.4.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" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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 # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

Data CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

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 # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

Generic CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

GoogleRequest CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

type Rep CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

type Rep CoursesCourseWorkStudentSubmissionsTurnIn = D1 (MetaData "CoursesCourseWorkStudentSubmissionsTurnIn" "Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesCourseWorkStudentSubmissionsTurnIn'" PrefixI True) (((S1 (MetaSel (Just "_ccwsstiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ccwsstiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccwsstiCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccwsstiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ccwsstiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccwsstiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TurnInStudentSubmissionRequest)) :*: (S1 (MetaSel (Just "_ccwsstiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ccwsstiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccwsstiCourseWorkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

type Scopes CoursesCourseWorkStudentSubmissionsTurnIn = "https://www.googleapis.com/auth/classroom.coursework.me" ': ([] :: [Symbol])
type Rs CoursesCourseWorkStudentSubmissionsTurnIn Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.TurnIn

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.