{-# 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.RemarketingLists.Get
(
RemarketingListsGetResource
, remarketingListsGet
, RemarketingListsGet
, rlgProFileId
, rlgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingLists" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] RemarketingList
data RemarketingListsGet = RemarketingListsGet'
{ _rlgProFileId :: !(Textual Int64)
, _rlgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListsGet
:: Int64
-> Int64
-> RemarketingListsGet
remarketingListsGet pRlgProFileId_ pRlgId_ =
RemarketingListsGet'
{ _rlgProFileId = _Coerce # pRlgProFileId_
, _rlgId = _Coerce # pRlgId_
}
rlgProFileId :: Lens' RemarketingListsGet Int64
rlgProFileId
= lens _rlgProFileId (\ s a -> s{_rlgProFileId = a})
. _Coerce
rlgId :: Lens' RemarketingListsGet Int64
rlgId
= lens _rlgId (\ s a -> s{_rlgId = a}) . _Coerce
instance GoogleRequest RemarketingListsGet where
type Rs RemarketingListsGet = RemarketingList
type Scopes RemarketingListsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListsGet'{..}
= go _rlgProFileId _rlgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListsGetResource)
mempty