{-# 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.AdExchangeBuyer.PretargetingConfig.Delete
(
PretargetingConfigDeleteResource
, pretargetingConfigDelete
, PretargetingConfigDelete
, pcdAccountId
, pcdConfigId
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type PretargetingConfigDeleteResource =
"adexchangebuyer" :>
"v1.4" :>
"pretargetingconfigs" :>
Capture "accountId" (Textual Int64) :>
Capture "configId" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PretargetingConfigDelete = PretargetingConfigDelete'
{ _pcdAccountId :: !(Textual Int64)
, _pcdConfigId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
pretargetingConfigDelete
:: Int64
-> Int64
-> PretargetingConfigDelete
pretargetingConfigDelete pPcdAccountId_ pPcdConfigId_ =
PretargetingConfigDelete'
{ _pcdAccountId = _Coerce # pPcdAccountId_
, _pcdConfigId = _Coerce # pPcdConfigId_
}
pcdAccountId :: Lens' PretargetingConfigDelete Int64
pcdAccountId
= lens _pcdAccountId (\ s a -> s{_pcdAccountId = a})
. _Coerce
pcdConfigId :: Lens' PretargetingConfigDelete Int64
pcdConfigId
= lens _pcdConfigId (\ s a -> s{_pcdConfigId = a}) .
_Coerce
instance GoogleRequest PretargetingConfigDelete where
type Rs PretargetingConfigDelete = ()
type Scopes PretargetingConfigDelete =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient PretargetingConfigDelete'{..}
= go _pcdAccountId _pcdConfigId (Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy PretargetingConfigDeleteResource)
mempty