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

Contents

Description

Returns course work. 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.get.

Synopsis

REST Resource

type CoursesCourseWorkGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "id" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] CourseWork)))))))))))) Source #

A resource alias for classroom.courses.courseWork.get method which the CoursesCourseWorkGet request conforms to.

Creating a Request

coursesCourseWorkGet Source #

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

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

data CoursesCourseWorkGet Source #

Returns course work. 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: coursesCourseWorkGet smart constructor.

Instances

Eq CoursesCourseWorkGet Source # 
Data CoursesCourseWorkGet Source # 

Methods

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

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

toConstr :: CoursesCourseWorkGet -> Constr #

dataTypeOf :: CoursesCourseWorkGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesCourseWorkGet Source # 
Generic CoursesCourseWorkGet Source # 
GoogleRequest CoursesCourseWorkGet Source # 
type Rep CoursesCourseWorkGet Source # 
type Scopes CoursesCourseWorkGet Source # 
type Scopes CoursesCourseWorkGet = (:) Symbol "https://www.googleapis.com/auth/classroom.course-work.readonly" ((:) Symbol "https://www.googleapis.com/auth/classroom.coursework.me" ((:) Symbol "https://www.googleapis.com/auth/classroom.coursework.me.readonly" ((:) Symbol "https://www.googleapis.com/auth/classroom.coursework.students" ((:) Symbol "https://www.googleapis.com/auth/classroom.coursework.students.readonly" ([] Symbol)))))
type Rs CoursesCourseWorkGet Source # 

Request Lenses

ccwgUploadProtocol :: Lens' CoursesCourseWorkGet (Maybe Text) Source #

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

ccwgPp :: Lens' CoursesCourseWorkGet Bool Source #

Pretty-print response.

ccwgCourseId :: Lens' CoursesCourseWorkGet Text Source #

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

ccwgUploadType :: Lens' CoursesCourseWorkGet (Maybe Text) Source #

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

ccwgId :: Lens' CoursesCourseWorkGet Text Source #

Identifier of the course work.