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

Contents

Description

Modifies assignee mode and options of a coursework. Only a teacher of the course that contains the coursework may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.

See: Google Classroom API Reference for classroom.courses.courseWork.modifyAssignees.

Synopsis

REST Resource

type CoursesCourseWorkModifyAssigneesResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (CaptureMode "id" "modifyAssignees" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyCourseWorkAssigneesRequest :> Post '[JSON] CourseWork))))))))))) Source #

A resource alias for classroom.courses.courseWork.modifyAssignees method which the CoursesCourseWorkModifyAssignees request conforms to.

Creating a Request

data CoursesCourseWorkModifyAssignees Source #

Modifies assignee mode and options of a coursework. Only a teacher of the course that contains the coursework may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.

See: coursesCourseWorkModifyAssignees smart constructor.

Instances
Eq CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

Data CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

Methods

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

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

toConstr :: CoursesCourseWorkModifyAssignees -> Constr #

dataTypeOf :: CoursesCourseWorkModifyAssignees -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

Generic CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

Associated Types

type Rep CoursesCourseWorkModifyAssignees :: Type -> Type #

GoogleRequest CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

type Rep CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

type Rep CoursesCourseWorkModifyAssignees = D1 (MetaData "CoursesCourseWorkModifyAssignees" "Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesCourseWorkModifyAssignees'" PrefixI True) (((S1 (MetaSel (Just "_ccwmaXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ccwmaUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccwmaCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccwmaAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ccwmaUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccwmaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ModifyCourseWorkAssigneesRequest)) :*: (S1 (MetaSel (Just "_ccwmaId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccwmaCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes CoursesCourseWorkModifyAssignees Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

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

Defined in Network.Google.Resource.Classroom.Courses.CourseWork.ModifyAssignees

Request Lenses

ccwmaUploadProtocol :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text) Source #

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

ccwmaCourseId :: Lens' CoursesCourseWorkModifyAssignees Text Source #

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

ccwmaUploadType :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text) Source #

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

ccwmaId :: Lens' CoursesCourseWorkModifyAssignees Text Source #

Identifier of the coursework.