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

Contents

Description

Returns a list of course work that the requester is permitted to view. Course students may only view `PUBLISHED` course work. Course teachers and domain administrators may view all course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.

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

Synopsis

REST Resource

type CoursesCourseWorkListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParams "courseWorkStates" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListCourseWorkResponse))))))))))))) Source #

A resource alias for classroom.courses.courseWork.list method which the CoursesCourseWorkList request conforms to.

Creating a Request

coursesCourseWorkList Source #

Creates a value of CoursesCourseWorkList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CoursesCourseWorkList Source #

Returns a list of course work that the requester is permitted to view. Course students may only view `PUBLISHED` course work. Course teachers and domain administrators may view all course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.

See: coursesCourseWorkList smart constructor.

Instances
Eq CoursesCourseWorkList Source # 
Instance details

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

Data CoursesCourseWorkList Source # 
Instance details

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

Methods

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

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

toConstr :: CoursesCourseWorkList -> Constr #

dataTypeOf :: CoursesCourseWorkList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesCourseWorkList Source # 
Instance details

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

Generic CoursesCourseWorkList Source # 
Instance details

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

Associated Types

type Rep CoursesCourseWorkList :: Type -> Type #

GoogleRequest CoursesCourseWorkList Source # 
Instance details

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

type Rep CoursesCourseWorkList Source # 
Instance details

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

type Rep CoursesCourseWorkList = D1 (MetaData "CoursesCourseWorkList" "Network.Google.Resource.Classroom.Courses.CourseWork.List" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesCourseWorkList'" PrefixI True) (((S1 (MetaSel (Just "_ccwlXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ccwlUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccwlOrderBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccwlCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccwlAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_ccwlCourseWorkStates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_ccwlUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccwlPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccwlPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_ccwlCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes CoursesCourseWorkList Source # 
Instance details

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

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

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

Request Lenses

ccwlUploadProtocol :: Lens' CoursesCourseWorkList (Maybe Text) Source #

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

ccwlOrderBy :: Lens' CoursesCourseWorkList (Maybe Text) Source #

Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported fields are `updateTime` and `dueDate`. Supported direction keywords are `asc` and `desc`. If not specified, `updateTime desc` is the default behavior. Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`

ccwlCourseId :: Lens' CoursesCourseWorkList Text Source #

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

ccwlCourseWorkStates :: Lens' CoursesCourseWorkList [Text] Source #

Restriction on the work status to return. Only courseWork that matches is returned. If unspecified, items with a work status of `PUBLISHED` is returned.

ccwlUploadType :: Lens' CoursesCourseWorkList (Maybe Text) Source #

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

ccwlPageToken :: Lens' CoursesCourseWorkList (Maybe Text) Source #

nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.

ccwlPageSize :: Lens' CoursesCourseWorkList (Maybe Int32) Source #

Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.