{-# 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.CourseWork.Delete
(
CoursesCourseWorkDeleteResource
, coursesCourseWorkDelete
, CoursesCourseWorkDelete
, ccwdXgafv
, ccwdUploadProtocol
, ccwdCourseId
, ccwdAccessToken
, ccwdUploadType
, ccwdId
, ccwdCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkDeleteResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "id" 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 CoursesCourseWorkDelete = CoursesCourseWorkDelete'
{ _ccwdXgafv :: !(Maybe Xgafv)
, _ccwdUploadProtocol :: !(Maybe Text)
, _ccwdCourseId :: !Text
, _ccwdAccessToken :: !(Maybe Text)
, _ccwdUploadType :: !(Maybe Text)
, _ccwdId :: !Text
, _ccwdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkDelete
:: Text
-> Text
-> CoursesCourseWorkDelete
coursesCourseWorkDelete pCcwdCourseId_ pCcwdId_ =
CoursesCourseWorkDelete'
{ _ccwdXgafv = Nothing
, _ccwdUploadProtocol = Nothing
, _ccwdCourseId = pCcwdCourseId_
, _ccwdAccessToken = Nothing
, _ccwdUploadType = Nothing
, _ccwdId = pCcwdId_
, _ccwdCallback = Nothing
}
ccwdXgafv :: Lens' CoursesCourseWorkDelete (Maybe Xgafv)
ccwdXgafv
= lens _ccwdXgafv (\ s a -> s{_ccwdXgafv = a})
ccwdUploadProtocol :: Lens' CoursesCourseWorkDelete (Maybe Text)
ccwdUploadProtocol
= lens _ccwdUploadProtocol
(\ s a -> s{_ccwdUploadProtocol = a})
ccwdCourseId :: Lens' CoursesCourseWorkDelete Text
ccwdCourseId
= lens _ccwdCourseId (\ s a -> s{_ccwdCourseId = a})
ccwdAccessToken :: Lens' CoursesCourseWorkDelete (Maybe Text)
ccwdAccessToken
= lens _ccwdAccessToken
(\ s a -> s{_ccwdAccessToken = a})
ccwdUploadType :: Lens' CoursesCourseWorkDelete (Maybe Text)
ccwdUploadType
= lens _ccwdUploadType
(\ s a -> s{_ccwdUploadType = a})
ccwdId :: Lens' CoursesCourseWorkDelete Text
ccwdId = lens _ccwdId (\ s a -> s{_ccwdId = a})
ccwdCallback :: Lens' CoursesCourseWorkDelete (Maybe Text)
ccwdCallback
= lens _ccwdCallback (\ s a -> s{_ccwdCallback = a})
instance GoogleRequest CoursesCourseWorkDelete where
type Rs CoursesCourseWorkDelete = Empty
type Scopes CoursesCourseWorkDelete =
'["https://www.googleapis.com/auth/classroom.coursework.students"]
requestClient CoursesCourseWorkDelete'{..}
= go _ccwdCourseId _ccwdId _ccwdXgafv
_ccwdUploadProtocol
_ccwdAccessToken
_ccwdUploadType
_ccwdCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy CoursesCourseWorkDeleteResource)
mempty