{-# 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.Delete
(
CoursesDeleteResource
, coursesDelete
, CoursesDelete
, cdXgafv
, cdUploadProtocol
, cdAccessToken
, cdUploadType
, cdId
, cdCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesDeleteResource =
"v1" :>
"courses" :>
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 CoursesDelete = CoursesDelete'
{ _cdXgafv :: !(Maybe Xgafv)
, _cdUploadProtocol :: !(Maybe Text)
, _cdAccessToken :: !(Maybe Text)
, _cdUploadType :: !(Maybe Text)
, _cdId :: !Text
, _cdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesDelete
:: Text
-> CoursesDelete
coursesDelete pCdId_ =
CoursesDelete'
{ _cdXgafv = Nothing
, _cdUploadProtocol = Nothing
, _cdAccessToken = Nothing
, _cdUploadType = Nothing
, _cdId = pCdId_
, _cdCallback = Nothing
}
cdXgafv :: Lens' CoursesDelete (Maybe Xgafv)
cdXgafv = lens _cdXgafv (\ s a -> s{_cdXgafv = a})
cdUploadProtocol :: Lens' CoursesDelete (Maybe Text)
cdUploadProtocol
= lens _cdUploadProtocol
(\ s a -> s{_cdUploadProtocol = a})
cdAccessToken :: Lens' CoursesDelete (Maybe Text)
cdAccessToken
= lens _cdAccessToken
(\ s a -> s{_cdAccessToken = a})
cdUploadType :: Lens' CoursesDelete (Maybe Text)
cdUploadType
= lens _cdUploadType (\ s a -> s{_cdUploadType = a})
cdId :: Lens' CoursesDelete Text
cdId = lens _cdId (\ s a -> s{_cdId = a})
cdCallback :: Lens' CoursesDelete (Maybe Text)
cdCallback
= lens _cdCallback (\ s a -> s{_cdCallback = a})
instance GoogleRequest CoursesDelete where
type Rs CoursesDelete = Empty
type Scopes CoursesDelete =
'["https://www.googleapis.com/auth/classroom.courses"]
requestClient CoursesDelete'{..}
= go _cdId _cdXgafv _cdUploadProtocol _cdAccessToken
_cdUploadType
_cdCallback
(Just AltJSON)
classroomService
where go
= buildClient (Proxy :: Proxy CoursesDeleteResource)
mempty