{-# 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.ACL.Delete
(
ACLDeleteResource
, aclDelete
, ACLDelete
, adCalendarId
, adRuleId
) where
import Network.Google.AppsCalendar.Types
import Network.Google.Prelude
type ACLDeleteResource =
"calendar" :>
"v3" :>
"calendars" :>
Capture "calendarId" Text :>
"acl" :>
Capture "ruleId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ACLDelete = ACLDelete'
{ _adCalendarId :: !Text
, _adRuleId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
aclDelete
:: Text
-> Text
-> ACLDelete
aclDelete pAdCalendarId_ pAdRuleId_ =
ACLDelete'
{ _adCalendarId = pAdCalendarId_
, _adRuleId = pAdRuleId_
}
adCalendarId :: Lens' ACLDelete Text
adCalendarId
= lens _adCalendarId (\ s a -> s{_adCalendarId = a})
adRuleId :: Lens' ACLDelete Text
adRuleId = lens _adRuleId (\ s a -> s{_adRuleId = a})
instance GoogleRequest ACLDelete where
type Rs ACLDelete = ()
type Scopes ACLDelete =
'["https://www.googleapis.com/auth/calendar"]
requestClient ACLDelete'{..}
= go _adCalendarId _adRuleId (Just AltJSON)
appsCalendarService
where go
= buildClient (Proxy :: Proxy ACLDeleteResource)
mempty