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