{-# 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.Calendar.CalendarList.Delete
(
CalendarListDeleteResource
, calendarListDelete
, CalendarListDelete
, cldCalendarId
) where
import Network.Google.AppsCalendar.Types
import Network.Google.Prelude
type CalendarListDeleteResource =
"calendar" :>
"v3" :>
"users" :>
"me" :>
"calendarList" :>
Capture "calendarId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype CalendarListDelete = CalendarListDelete'
{ _cldCalendarId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
calendarListDelete
:: Text
-> CalendarListDelete
calendarListDelete pCldCalendarId_ =
CalendarListDelete'
{ _cldCalendarId = pCldCalendarId_
}
cldCalendarId :: Lens' CalendarListDelete Text
cldCalendarId
= lens _cldCalendarId
(\ s a -> s{_cldCalendarId = a})
instance GoogleRequest CalendarListDelete where
type Rs CalendarListDelete = ()
type Scopes CalendarListDelete =
'["https://www.googleapis.com/auth/calendar"]
requestClient CalendarListDelete'{..}
= go _cldCalendarId (Just AltJSON)
appsCalendarService
where go
= buildClient
(Proxy :: Proxy CalendarListDeleteResource)
mempty