{-# 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.Update
(
RemarketingListsUpdateResource
, remarketingListsUpdate
, RemarketingListsUpdate
, rluProFileId
, rluPayload
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListsUpdateResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingLists" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemarketingList :>
Put '[JSON] RemarketingList
data RemarketingListsUpdate = RemarketingListsUpdate'
{ _rluProFileId :: !(Textual Int64)
, _rluPayload :: !RemarketingList
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListsUpdate
:: Int64
-> RemarketingList
-> RemarketingListsUpdate
remarketingListsUpdate pRluProFileId_ pRluPayload_ =
RemarketingListsUpdate'
{ _rluProFileId = _Coerce # pRluProFileId_
, _rluPayload = pRluPayload_
}
rluProFileId :: Lens' RemarketingListsUpdate Int64
rluProFileId
= lens _rluProFileId (\ s a -> s{_rluProFileId = a})
. _Coerce
rluPayload :: Lens' RemarketingListsUpdate RemarketingList
rluPayload
= lens _rluPayload (\ s a -> s{_rluPayload = a})
instance GoogleRequest RemarketingListsUpdate where
type Rs RemarketingListsUpdate = RemarketingList
type Scopes RemarketingListsUpdate =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListsUpdate'{..}
= go _rluProFileId (Just AltJSON) _rluPayload
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListsUpdateResource)
mempty