{-# 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.Delete
(
CoursesTeachersDeleteResource
, coursesTeachersDelete
, CoursesTeachersDelete
, ctdXgafv
, ctdUploadProtocol
, ctdCourseId
, ctdAccessToken
, ctdUploadType
, ctdUserId
, ctdCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesTeachersDeleteResource =
"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 :> Delete '[JSON] Empty
data CoursesTeachersDelete = CoursesTeachersDelete'
{ _ctdXgafv :: !(Maybe Xgafv)
, _ctdUploadProtocol :: !(Maybe Text)
, _ctdCourseId :: !Text
, _ctdAccessToken :: !(Maybe Text)
, _ctdUploadType :: !(Maybe Text)
, _ctdUserId :: !Text
, _ctdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesTeachersDelete
:: Text
-> Text
-> CoursesTeachersDelete
coursesTeachersDelete pCtdCourseId_ pCtdUserId_ =
CoursesTeachersDelete'
{ _ctdXgafv = Nothing
, _ctdUploadProtocol = Nothing
, _ctdCourseId = pCtdCourseId_
, _ctdAccessToken = Nothing
, _ctdUploadType = Nothing
, _ctdUserId = pCtdUserId_
, _ctdCallback = Nothing
}
ctdXgafv :: Lens' CoursesTeachersDelete (Maybe Xgafv)
ctdXgafv = lens _ctdXgafv (\ s a -> s{_ctdXgafv = a})
ctdUploadProtocol :: Lens' CoursesTeachersDelete (Maybe Text)
ctdUploadProtocol
= lens _ctdUploadProtocol
(\ s a -> s{_ctdUploadProtocol = a})
ctdCourseId :: Lens' CoursesTeachersDelete Text
ctdCourseId
= lens _ctdCourseId (\ s a -> s{_ctdCourseId = a})
ctdAccessToken :: Lens' CoursesTeachersDelete (Maybe Text)
ctdAccessToken
= lens _ctdAccessToken
(\ s a -> s{_ctdAccessToken = a})
ctdUploadType :: Lens' CoursesTeachersDelete (Maybe Text)
ctdUploadType
= lens _ctdUploadType
(\ s a -> s{_ctdUploadType = a})
ctdUserId :: Lens' CoursesTeachersDelete Text
ctdUserId
= lens _ctdUserId (\ s a -> s{_ctdUserId = a})
ctdCallback :: Lens' CoursesTeachersDelete (Maybe Text)
ctdCallback
= lens _ctdCallback (\ s a -> s{_ctdCallback = a})
instance GoogleRequest CoursesTeachersDelete where
type Rs CoursesTeachersDelete = Empty
type Scopes CoursesTeachersDelete =
'["https://www.googleapis.com/auth/classroom.rosters"]
requestClient CoursesTeachersDelete'{..}
= go _ctdCourseId _ctdUserId _ctdXgafv
_ctdUploadProtocol
_ctdAccessToken
_ctdUploadType
_ctdCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy CoursesTeachersDeleteResource)
mempty