{-# 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.Calendars.Delete
(
CalendarsDeleteResource
, calendarsDelete
, CalendarsDelete
, cdCalendarId
) where
import Network.Google.AppsCalendar.Types
import Network.Google.Prelude
type CalendarsDeleteResource =
"calendar" :>
"v3" :>
"calendars" :>
Capture "calendarId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype CalendarsDelete = CalendarsDelete'
{ _cdCalendarId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
calendarsDelete
:: Text
-> CalendarsDelete
calendarsDelete pCdCalendarId_ =
CalendarsDelete'
{ _cdCalendarId = pCdCalendarId_
}
cdCalendarId :: Lens' CalendarsDelete Text
cdCalendarId
= lens _cdCalendarId (\ s a -> s{_cdCalendarId = a})
instance GoogleRequest CalendarsDelete where
type Rs CalendarsDelete = ()
type Scopes CalendarsDelete =
'["https://www.googleapis.com/auth/calendar"]
requestClient CalendarsDelete'{..}
= go _cdCalendarId (Just AltJSON) appsCalendarService
where go
= buildClient
(Proxy :: Proxy CalendarsDeleteResource)
mempty