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

Contents

Description

Returns a teacher of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view teachers of this course or for access errors. * `NOT_FOUND` if no teacher of this course has the requested ID or if the course does not exist.

See: Google Classroom API Reference for classroom.courses.teachers.get.

Synopsis

REST Resource

type CoursesTeachersGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("teachers" :> (Capture "userId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Teacher)))))))))) Source #

A resource alias for classroom.courses.teachers.get method which the CoursesTeachersGet request conforms to.

Creating a Request

coursesTeachersGet Source #

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

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

data CoursesTeachersGet Source #

Returns a teacher of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view teachers of this course or for access errors. * `NOT_FOUND` if no teacher of this course has the requested ID or if the course does not exist.

See: coursesTeachersGet smart constructor.

Instances
Eq CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Data CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Methods

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

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

toConstr :: CoursesTeachersGet -> Constr #

dataTypeOf :: CoursesTeachersGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Generic CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Associated Types

type Rep CoursesTeachersGet :: Type -> Type #

GoogleRequest CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Associated Types

type Rs CoursesTeachersGet :: Type #

type Scopes CoursesTeachersGet :: [Symbol] #

type Rep CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

type Rep CoursesTeachersGet = D1 (MetaData "CoursesTeachersGet" "Network.Google.Resource.Classroom.Courses.Teachers.Get" "gogol-classroom-0.4.0-8aa8kYGMMJyCKn01TYMpOR" False) (C1 (MetaCons "CoursesTeachersGet'" PrefixI True) ((S1 (MetaSel (Just "_ctgXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ctgUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ctgCourseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_ctgAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ctgUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ctgUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ctgCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

type Scopes CoursesTeachersGet = "https://www.googleapis.com/auth/classroom.profile.emails" ': ("https://www.googleapis.com/auth/classroom.profile.photos" ': ("https://www.googleapis.com/auth/classroom.rosters" ': ("https://www.googleapis.com/auth/classroom.rosters.readonly" ': ([] :: [Symbol]))))
type Rs CoursesTeachersGet Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Teachers.Get

Request Lenses

ctgUploadProtocol :: Lens' CoursesTeachersGet (Maybe Text) Source #

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

ctgCourseId :: Lens' CoursesTeachersGet Text Source #

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

ctgUploadType :: Lens' CoursesTeachersGet (Maybe Text) Source #

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

ctgUserId :: Lens' CoursesTeachersGet Text Source #

Identifier of the teacher to return. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user