{-# 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.Patch
(
RemarketingListSharesPatchResource
, remarketingListSharesPatch
, RemarketingListSharesPatch
, rlspProFileId
, rlspPayload
, rlspRemarketingListId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListSharesPatchResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingListShares" :>
QueryParam "remarketingListId" (Textual Int64) :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemarketingListShare :>
Patch '[JSON] RemarketingListShare
data RemarketingListSharesPatch = RemarketingListSharesPatch'
{ _rlspProFileId :: !(Textual Int64)
, _rlspPayload :: !RemarketingListShare
, _rlspRemarketingListId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListSharesPatch
:: Int64
-> RemarketingListShare
-> Int64
-> RemarketingListSharesPatch
remarketingListSharesPatch pRlspProFileId_ pRlspPayload_ pRlspRemarketingListId_ =
RemarketingListSharesPatch'
{ _rlspProFileId = _Coerce # pRlspProFileId_
, _rlspPayload = pRlspPayload_
, _rlspRemarketingListId = _Coerce # pRlspRemarketingListId_
}
rlspProFileId :: Lens' RemarketingListSharesPatch Int64
rlspProFileId
= lens _rlspProFileId
(\ s a -> s{_rlspProFileId = a})
. _Coerce
rlspPayload :: Lens' RemarketingListSharesPatch RemarketingListShare
rlspPayload
= lens _rlspPayload (\ s a -> s{_rlspPayload = a})
rlspRemarketingListId :: Lens' RemarketingListSharesPatch Int64
rlspRemarketingListId
= lens _rlspRemarketingListId
(\ s a -> s{_rlspRemarketingListId = a})
. _Coerce
instance GoogleRequest RemarketingListSharesPatch
where
type Rs RemarketingListSharesPatch =
RemarketingListShare
type Scopes RemarketingListSharesPatch =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListSharesPatch'{..}
= go _rlspProFileId (Just _rlspRemarketingListId)
(Just AltJSON)
_rlspPayload
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListSharesPatchResource)
mempty