{-# 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.RemarketingListShares.Get
(
RemarketingListSharesGetResource
, remarketingListSharesGet
, RemarketingListSharesGet
, rlsgProFileId
, rlsgRemarketingListId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListSharesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingListShares" :>
Capture "remarketingListId" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] RemarketingListShare
data RemarketingListSharesGet = RemarketingListSharesGet'
{ _rlsgProFileId :: !(Textual Int64)
, _rlsgRemarketingListId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListSharesGet
:: Int64
-> Int64
-> RemarketingListSharesGet
remarketingListSharesGet pRlsgProFileId_ pRlsgRemarketingListId_ =
RemarketingListSharesGet'
{ _rlsgProFileId = _Coerce # pRlsgProFileId_
, _rlsgRemarketingListId = _Coerce # pRlsgRemarketingListId_
}
rlsgProFileId :: Lens' RemarketingListSharesGet Int64
rlsgProFileId
= lens _rlsgProFileId
(\ s a -> s{_rlsgProFileId = a})
. _Coerce
rlsgRemarketingListId :: Lens' RemarketingListSharesGet Int64
rlsgRemarketingListId
= lens _rlsgRemarketingListId
(\ s a -> s{_rlsgRemarketingListId = a})
. _Coerce
instance GoogleRequest RemarketingListSharesGet where
type Rs RemarketingListSharesGet =
RemarketingListShare
type Scopes RemarketingListSharesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListSharesGet'{..}
= go _rlsgProFileId _rlsgRemarketingListId
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListSharesGetResource)
mempty