{-# 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.Students.Delete
(
CoursesStudentsDeleteResource
, coursesStudentsDelete
, CoursesStudentsDelete
, csdXgafv
, csdUploadProtocol
, csdCourseId
, csdAccessToken
, csdUploadType
, csdUserId
, csdCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesStudentsDeleteResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"students" :>
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 CoursesStudentsDelete = CoursesStudentsDelete'
{ _csdXgafv :: !(Maybe Xgafv)
, _csdUploadProtocol :: !(Maybe Text)
, _csdCourseId :: !Text
, _csdAccessToken :: !(Maybe Text)
, _csdUploadType :: !(Maybe Text)
, _csdUserId :: !Text
, _csdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesStudentsDelete
:: Text
-> Text
-> CoursesStudentsDelete
coursesStudentsDelete pCsdCourseId_ pCsdUserId_ =
CoursesStudentsDelete'
{ _csdXgafv = Nothing
, _csdUploadProtocol = Nothing
, _csdCourseId = pCsdCourseId_
, _csdAccessToken = Nothing
, _csdUploadType = Nothing
, _csdUserId = pCsdUserId_
, _csdCallback = Nothing
}
csdXgafv :: Lens' CoursesStudentsDelete (Maybe Xgafv)
csdXgafv = lens _csdXgafv (\ s a -> s{_csdXgafv = a})
csdUploadProtocol :: Lens' CoursesStudentsDelete (Maybe Text)
csdUploadProtocol
= lens _csdUploadProtocol
(\ s a -> s{_csdUploadProtocol = a})
csdCourseId :: Lens' CoursesStudentsDelete Text
csdCourseId
= lens _csdCourseId (\ s a -> s{_csdCourseId = a})
csdAccessToken :: Lens' CoursesStudentsDelete (Maybe Text)
csdAccessToken
= lens _csdAccessToken
(\ s a -> s{_csdAccessToken = a})
csdUploadType :: Lens' CoursesStudentsDelete (Maybe Text)
csdUploadType
= lens _csdUploadType
(\ s a -> s{_csdUploadType = a})
csdUserId :: Lens' CoursesStudentsDelete Text
csdUserId
= lens _csdUserId (\ s a -> s{_csdUserId = a})
csdCallback :: Lens' CoursesStudentsDelete (Maybe Text)
csdCallback
= lens _csdCallback (\ s a -> s{_csdCallback = a})
instance GoogleRequest CoursesStudentsDelete where
type Rs CoursesStudentsDelete = Empty
type Scopes CoursesStudentsDelete =
'["https://www.googleapis.com/auth/classroom.rosters"]
requestClient CoursesStudentsDelete'{..}
= go _csdCourseId _csdUserId _csdXgafv
_csdUploadProtocol
_csdAccessToken
_csdUploadType
_csdCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy CoursesStudentsDeleteResource)
mempty