{-# 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.Directory.Resources.Calendars.Delete
(
ResourcesCalendarsDeleteResource
, resourcesCalendarsDelete
, ResourcesCalendarsDelete
, rcdCustomer
, rcdCalendarResourceId
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ResourcesCalendarsDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"resources" :>
"calendars" :>
Capture "calendarResourceId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ResourcesCalendarsDelete = ResourcesCalendarsDelete'
{ _rcdCustomer :: !Text
, _rcdCalendarResourceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
resourcesCalendarsDelete
:: Text
-> Text
-> ResourcesCalendarsDelete
resourcesCalendarsDelete pRcdCustomer_ pRcdCalendarResourceId_ =
ResourcesCalendarsDelete'
{ _rcdCustomer = pRcdCustomer_
, _rcdCalendarResourceId = pRcdCalendarResourceId_
}
rcdCustomer :: Lens' ResourcesCalendarsDelete Text
rcdCustomer
= lens _rcdCustomer (\ s a -> s{_rcdCustomer = a})
rcdCalendarResourceId :: Lens' ResourcesCalendarsDelete Text
rcdCalendarResourceId
= lens _rcdCalendarResourceId
(\ s a -> s{_rcdCalendarResourceId = a})
instance GoogleRequest ResourcesCalendarsDelete where
type Rs ResourcesCalendarsDelete = ()
type Scopes ResourcesCalendarsDelete =
'["https://www.googleapis.com/auth/admin.directory.resource.calendar"]
requestClient ResourcesCalendarsDelete'{..}
= go _rcdCustomer _rcdCalendarResourceId
(Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy ResourcesCalendarsDeleteResource)
mempty