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.Patch

Contents

Description

Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of which fields may be updated and who may change them. 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 developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the 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.patch.

Synopsis

REST Resource

type CoursesCourseWorkStudentSubmissionsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StudentSubmission :> Patch '[JSON] StudentSubmission)))))))))))))) Source #

A resource alias for classroom.courses.courseWork.studentSubmissions.patch method which the CoursesCourseWorkStudentSubmissionsPatch request conforms to.

Creating a Request

data CoursesCourseWorkStudentSubmissionsPatch Source #

Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of which fields may be updated and who may change them. 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 developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the 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: coursesCourseWorkStudentSubmissionsPatch smart constructor.

Instances
Eq CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

Data CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

Methods

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

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

toConstr :: CoursesCourseWorkStudentSubmissionsPatch -> Constr #

dataTypeOf :: CoursesCourseWorkStudentSubmissionsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

Generic CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

GoogleRequest CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

type Rep CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

type Rep CoursesCourseWorkStudentSubmissionsPatch = D1 (MetaData "CoursesCourseWorkStudentSubmissionsPatch" "Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.Patch" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesCourseWorkStudentSubmissionsPatch'" PrefixI True) (((S1 (MetaSel (Just "_ccwsspXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ccwsspUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccwsspUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: (S1 (MetaSel (Just "_ccwsspCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccwsspAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_ccwsspUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccwsspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StudentSubmission)) :*: (S1 (MetaSel (Just "_ccwsspId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ccwsspCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccwsspCourseWorkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes CoursesCourseWorkStudentSubmissionsPatch Source # 
Instance details

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

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

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

Request Lenses

ccwsspUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) Source #

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

ccwsspUpdateMask :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe GFieldMask) Source #

Mask that identifies which fields on the student submission to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields may be specified by teachers: * `draft_grade` * `assigned_grade`

ccwsspCourseId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text Source #

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

ccwsspUploadType :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) Source #

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

ccwsspId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text Source #

Identifier of the student submission.