{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Classroom.Courses.Teachers.List
(
CoursesTeachersListResource
, coursesTeachersList
, CoursesTeachersList
, ctlXgafv
, ctlUploadProtocol
, ctlCourseId
, ctlAccessToken
, ctlUploadType
, ctlPageToken
, ctlPageSize
, ctlCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesTeachersListResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"teachers" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTeachersResponse
data CoursesTeachersList = CoursesTeachersList'
{ _ctlXgafv :: !(Maybe Xgafv)
, _ctlUploadProtocol :: !(Maybe Text)
, _ctlCourseId :: !Text
, _ctlAccessToken :: !(Maybe Text)
, _ctlUploadType :: !(Maybe Text)
, _ctlPageToken :: !(Maybe Text)
, _ctlPageSize :: !(Maybe (Textual Int32))
, _ctlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesTeachersList
:: Text
-> CoursesTeachersList
coursesTeachersList pCtlCourseId_ =
CoursesTeachersList'
{ _ctlXgafv = Nothing
, _ctlUploadProtocol = Nothing
, _ctlCourseId = pCtlCourseId_
, _ctlAccessToken = Nothing
, _ctlUploadType = Nothing
, _ctlPageToken = Nothing
, _ctlPageSize = Nothing
, _ctlCallback = Nothing
}
ctlXgafv :: Lens' CoursesTeachersList (Maybe Xgafv)
ctlXgafv = lens _ctlXgafv (\ s a -> s{_ctlXgafv = a})
ctlUploadProtocol :: Lens' CoursesTeachersList (Maybe Text)
ctlUploadProtocol
= lens _ctlUploadProtocol
(\ s a -> s{_ctlUploadProtocol = a})
ctlCourseId :: Lens' CoursesTeachersList Text
ctlCourseId
= lens _ctlCourseId (\ s a -> s{_ctlCourseId = a})
ctlAccessToken :: Lens' CoursesTeachersList (Maybe Text)
ctlAccessToken
= lens _ctlAccessToken
(\ s a -> s{_ctlAccessToken = a})
ctlUploadType :: Lens' CoursesTeachersList (Maybe Text)
ctlUploadType
= lens _ctlUploadType
(\ s a -> s{_ctlUploadType = a})
ctlPageToken :: Lens' CoursesTeachersList (Maybe Text)
ctlPageToken
= lens _ctlPageToken (\ s a -> s{_ctlPageToken = a})
ctlPageSize :: Lens' CoursesTeachersList (Maybe Int32)
ctlPageSize
= lens _ctlPageSize (\ s a -> s{_ctlPageSize = a}) .
mapping _Coerce
ctlCallback :: Lens' CoursesTeachersList (Maybe Text)
ctlCallback
= lens _ctlCallback (\ s a -> s{_ctlCallback = a})
instance GoogleRequest CoursesTeachersList where
type Rs CoursesTeachersList = ListTeachersResponse
type Scopes CoursesTeachersList =
'["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"]
requestClient CoursesTeachersList'{..}
= go _ctlCourseId _ctlXgafv _ctlUploadProtocol
_ctlAccessToken
_ctlUploadType
_ctlPageToken
_ctlPageSize
_ctlCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy CoursesTeachersListResource)
mempty