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.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" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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 # 
Data CoursesCourseWorkStudentSubmissionsPatch Source # 

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 # 
Generic CoursesCourseWorkStudentSubmissionsPatch Source # 
GoogleRequest CoursesCourseWorkStudentSubmissionsPatch Source # 
type Rep CoursesCourseWorkStudentSubmissionsPatch Source # 
type Rep CoursesCourseWorkStudentSubmissionsPatch = D1 (MetaData "CoursesCourseWorkStudentSubmissionsPatch" "Network.Google.Resource.Classroom.Courses.CourseWork.StudentSubmissions.Patch" "gogol-classroom-0.1.0-21rh7SRXdL3B6ZyyiLDhlq" False) (C1 (MetaCons "CoursesCourseWorkStudentSubmissionsPatch'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwsspUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccwsspAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StudentSubmission)) (S1 (MetaSel (Just Symbol "_ccwsspBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ccwsspCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccwsspCourseWorkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Scopes CoursesCourseWorkStudentSubmissionsPatch Source # 
type Scopes CoursesCourseWorkStudentSubmissionsPatch = (:) Symbol "https://www.googleapis.com/auth/classroom.coursework.me" ((:) Symbol "https://www.googleapis.com/auth/classroom.coursework.students" ([] Symbol))
type Rs CoursesCourseWorkStudentSubmissionsPatch Source # 

Request Lenses

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

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

ccwsspUpdateMask :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) 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.