{-# 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.Patch
(
RemarketingListsPatchResource
, remarketingListsPatch
, RemarketingListsPatch
, rlpProFileId
, rlpPayload
, rlpId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListsPatchResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingLists" :>
QueryParam "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemarketingList :>
Patch '[JSON] RemarketingList
data RemarketingListsPatch = RemarketingListsPatch'
{ _rlpProFileId :: !(Textual Int64)
, _rlpPayload :: !RemarketingList
, _rlpId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListsPatch
:: Int64
-> RemarketingList
-> Int64
-> RemarketingListsPatch
remarketingListsPatch pRlpProFileId_ pRlpPayload_ pRlpId_ =
RemarketingListsPatch'
{ _rlpProFileId = _Coerce # pRlpProFileId_
, _rlpPayload = pRlpPayload_
, _rlpId = _Coerce # pRlpId_
}
rlpProFileId :: Lens' RemarketingListsPatch Int64
rlpProFileId
= lens _rlpProFileId (\ s a -> s{_rlpProFileId = a})
. _Coerce
rlpPayload :: Lens' RemarketingListsPatch RemarketingList
rlpPayload
= lens _rlpPayload (\ s a -> s{_rlpPayload = a})
rlpId :: Lens' RemarketingListsPatch Int64
rlpId
= lens _rlpId (\ s a -> s{_rlpId = a}) . _Coerce
instance GoogleRequest RemarketingListsPatch where
type Rs RemarketingListsPatch = RemarketingList
type Scopes RemarketingListsPatch =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListsPatch'{..}
= go _rlpProFileId (Just _rlpId) (Just AltJSON)
_rlpPayload
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListsPatchResource)
mempty