{-# 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.Announcements.Delete
(
CoursesAnnouncementsDeleteResource
, coursesAnnouncementsDelete
, CoursesAnnouncementsDelete
, cXgafv
, cUploadProtocol
, cCourseId
, cAccessToken
, cUploadType
, cId
, cCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesAnnouncementsDeleteResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"announcements" :>
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 CoursesAnnouncementsDelete = CoursesAnnouncementsDelete'
{ _cXgafv :: !(Maybe Xgafv)
, _cUploadProtocol :: !(Maybe Text)
, _cCourseId :: !Text
, _cAccessToken :: !(Maybe Text)
, _cUploadType :: !(Maybe Text)
, _cId :: !Text
, _cCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesAnnouncementsDelete
:: Text
-> Text
-> CoursesAnnouncementsDelete
coursesAnnouncementsDelete pCCourseId_ pCId_ =
CoursesAnnouncementsDelete'
{ _cXgafv = Nothing
, _cUploadProtocol = Nothing
, _cCourseId = pCCourseId_
, _cAccessToken = Nothing
, _cUploadType = Nothing
, _cId = pCId_
, _cCallback = Nothing
}
cXgafv :: Lens' CoursesAnnouncementsDelete (Maybe Xgafv)
cXgafv = lens _cXgafv (\ s a -> s{_cXgafv = a})
cUploadProtocol :: Lens' CoursesAnnouncementsDelete (Maybe Text)
cUploadProtocol
= lens _cUploadProtocol
(\ s a -> s{_cUploadProtocol = a})
cCourseId :: Lens' CoursesAnnouncementsDelete Text
cCourseId
= lens _cCourseId (\ s a -> s{_cCourseId = a})
cAccessToken :: Lens' CoursesAnnouncementsDelete (Maybe Text)
cAccessToken
= lens _cAccessToken (\ s a -> s{_cAccessToken = a})
cUploadType :: Lens' CoursesAnnouncementsDelete (Maybe Text)
cUploadType
= lens _cUploadType (\ s a -> s{_cUploadType = a})
cId :: Lens' CoursesAnnouncementsDelete Text
cId = lens _cId (\ s a -> s{_cId = a})
cCallback :: Lens' CoursesAnnouncementsDelete (Maybe Text)
cCallback
= lens _cCallback (\ s a -> s{_cCallback = a})
instance GoogleRequest CoursesAnnouncementsDelete
where
type Rs CoursesAnnouncementsDelete = Empty
type Scopes CoursesAnnouncementsDelete =
'["https://www.googleapis.com/auth/classroom.announcements"]
requestClient CoursesAnnouncementsDelete'{..}
= go _cCourseId _cId _cXgafv _cUploadProtocol
_cAccessToken
_cUploadType
_cCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy CoursesAnnouncementsDeleteResource)
mempty