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

Contents

Description

Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement 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.announcements.modifyAssignees.

Synopsis

REST Resource

type CoursesAnnouncementsModifyAssigneesResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (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] ModifyAnnouncementAssigneesRequest :> Post '[JSON] Announcement))))))))))) Source #

A resource alias for classroom.courses.announcements.modifyAssignees method which the CoursesAnnouncementsModifyAssignees request conforms to.

Creating a Request

data CoursesAnnouncementsModifyAssignees Source #

Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement 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: coursesAnnouncementsModifyAssignees smart constructor.

Instances
Eq CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

Data CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

Methods

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

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

toConstr :: CoursesAnnouncementsModifyAssignees -> Constr #

dataTypeOf :: CoursesAnnouncementsModifyAssignees -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

Generic CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

GoogleRequest CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

type Rep CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

type Rep CoursesAnnouncementsModifyAssignees = D1 (MetaData "CoursesAnnouncementsModifyAssignees" "Network.Google.Resource.Classroom.Courses.Announcements.ModifyAssignees" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesAnnouncementsModifyAssignees'" PrefixI True) (((S1 (MetaSel (Just "_camaXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_camaUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_camaCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_camaAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_camaUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_camaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ModifyAnnouncementAssigneesRequest)) :*: (S1 (MetaSel (Just "_camaId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_camaCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes CoursesAnnouncementsModifyAssignees Source # 
Instance details

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

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

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

Request Lenses

camaUploadProtocol :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text) Source #

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

camaCourseId :: Lens' CoursesAnnouncementsModifyAssignees Text Source #

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

camaUploadType :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text) Source #

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

camaId :: Lens' CoursesAnnouncementsModifyAssignees Text Source #

Identifier of the announcement.