{-# 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.DFAReporting.AdvertiserGroups.Delete
(
AdvertiserGroupsDeleteResource
, advertiserGroupsDelete
, AdvertiserGroupsDelete
, agdProFileId
, agdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AdvertiserGroupsDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"advertiserGroups" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data AdvertiserGroupsDelete = AdvertiserGroupsDelete'
{ _agdProFileId :: !(Textual Int64)
, _agdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
advertiserGroupsDelete
:: Int64
-> Int64
-> AdvertiserGroupsDelete
advertiserGroupsDelete pAgdProFileId_ pAgdId_ =
AdvertiserGroupsDelete'
{ _agdProFileId = _Coerce # pAgdProFileId_
, _agdId = _Coerce # pAgdId_
}
agdProFileId :: Lens' AdvertiserGroupsDelete Int64
agdProFileId
= lens _agdProFileId (\ s a -> s{_agdProFileId = a})
. _Coerce
agdId :: Lens' AdvertiserGroupsDelete Int64
agdId
= lens _agdId (\ s a -> s{_agdId = a}) . _Coerce
instance GoogleRequest AdvertiserGroupsDelete where
type Rs AdvertiserGroupsDelete = ()
type Scopes AdvertiserGroupsDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AdvertiserGroupsDelete'{..}
= go _agdProFileId _agdId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy AdvertiserGroupsDeleteResource)
mempty