{-# 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.AdSenseHost.Accounts.AdUnits.Delete
(
AccountsAdUnitsDeleteResource
, accountsAdUnitsDelete
, AccountsAdUnitsDelete
, aaudAdUnitId
, aaudAdClientId
, aaudAccountId
) where
import Network.Google.AdSenseHost.Types
import Network.Google.Prelude
type AccountsAdUnitsDeleteResource =
"adsensehost" :>
"v4.1" :>
"accounts" :>
Capture "accountId" Text :>
"adclients" :>
Capture "adClientId" Text :>
"adunits" :>
Capture "adUnitId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] AdUnit
data AccountsAdUnitsDelete = AccountsAdUnitsDelete'
{ _aaudAdUnitId :: !Text
, _aaudAdClientId :: !Text
, _aaudAccountId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsAdUnitsDelete
:: Text
-> Text
-> Text
-> AccountsAdUnitsDelete
accountsAdUnitsDelete pAaudAdUnitId_ pAaudAdClientId_ pAaudAccountId_ =
AccountsAdUnitsDelete'
{ _aaudAdUnitId = pAaudAdUnitId_
, _aaudAdClientId = pAaudAdClientId_
, _aaudAccountId = pAaudAccountId_
}
aaudAdUnitId :: Lens' AccountsAdUnitsDelete Text
aaudAdUnitId
= lens _aaudAdUnitId (\ s a -> s{_aaudAdUnitId = a})
aaudAdClientId :: Lens' AccountsAdUnitsDelete Text
aaudAdClientId
= lens _aaudAdClientId
(\ s a -> s{_aaudAdClientId = a})
aaudAccountId :: Lens' AccountsAdUnitsDelete Text
aaudAccountId
= lens _aaudAccountId
(\ s a -> s{_aaudAccountId = a})
instance GoogleRequest AccountsAdUnitsDelete where
type Rs AccountsAdUnitsDelete = AdUnit
type Scopes AccountsAdUnitsDelete =
'["https://www.googleapis.com/auth/adsensehost"]
requestClient AccountsAdUnitsDelete'{..}
= go _aaudAccountId _aaudAdClientId _aaudAdUnitId
(Just AltJSON)
adSenseHostService
where go
= buildClient
(Proxy :: Proxy AccountsAdUnitsDeleteResource)
mempty