{-# 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.TargetableRemarketingLists.Get
(
TargetableRemarketingListsGetResource
, targetableRemarketingListsGet
, TargetableRemarketingListsGet
, trlgProFileId
, trlgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type TargetableRemarketingListsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"targetableRemarketingLists" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetableRemarketingList
data TargetableRemarketingListsGet = TargetableRemarketingListsGet'
{ _trlgProFileId :: !(Textual Int64)
, _trlgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
targetableRemarketingListsGet
:: Int64
-> Int64
-> TargetableRemarketingListsGet
targetableRemarketingListsGet pTrlgProFileId_ pTrlgId_ =
TargetableRemarketingListsGet'
{ _trlgProFileId = _Coerce # pTrlgProFileId_
, _trlgId = _Coerce # pTrlgId_
}
trlgProFileId :: Lens' TargetableRemarketingListsGet Int64
trlgProFileId
= lens _trlgProFileId
(\ s a -> s{_trlgProFileId = a})
. _Coerce
trlgId :: Lens' TargetableRemarketingListsGet Int64
trlgId
= lens _trlgId (\ s a -> s{_trlgId = a}) . _Coerce
instance GoogleRequest TargetableRemarketingListsGet
where
type Rs TargetableRemarketingListsGet =
TargetableRemarketingList
type Scopes TargetableRemarketingListsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient TargetableRemarketingListsGet'{..}
= go _trlgProFileId _trlgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy ::
Proxy TargetableRemarketingListsGetResource)
mempty