{-# 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.Features.Delete
(
ResourcesFeaturesDeleteResource
, resourcesFeaturesDelete
, ResourcesFeaturesDelete
, rfdCustomer
, rfdFeatureKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ResourcesFeaturesDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"resources" :>
"features" :>
Capture "featureKey" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ResourcesFeaturesDelete = ResourcesFeaturesDelete'
{ _rfdCustomer :: !Text
, _rfdFeatureKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
resourcesFeaturesDelete
:: Text
-> Text
-> ResourcesFeaturesDelete
resourcesFeaturesDelete pRfdCustomer_ pRfdFeatureKey_ =
ResourcesFeaturesDelete'
{ _rfdCustomer = pRfdCustomer_
, _rfdFeatureKey = pRfdFeatureKey_
}
rfdCustomer :: Lens' ResourcesFeaturesDelete Text
rfdCustomer
= lens _rfdCustomer (\ s a -> s{_rfdCustomer = a})
rfdFeatureKey :: Lens' ResourcesFeaturesDelete Text
rfdFeatureKey
= lens _rfdFeatureKey
(\ s a -> s{_rfdFeatureKey = a})
instance GoogleRequest ResourcesFeaturesDelete where
type Rs ResourcesFeaturesDelete = ()
type Scopes ResourcesFeaturesDelete =
'["https://www.googleapis.com/auth/admin.directory.resource.calendar"]
requestClient ResourcesFeaturesDelete'{..}
= go _rfdCustomer _rfdFeatureKey (Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy ResourcesFeaturesDeleteResource)
mempty