{-# 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.Update
(
RemarketingListSharesUpdateResource
, remarketingListSharesUpdate
, RemarketingListSharesUpdate
, rlsuProFileId
, rlsuPayload
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListSharesUpdateResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingListShares" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemarketingListShare :>
Put '[JSON] RemarketingListShare
data RemarketingListSharesUpdate = RemarketingListSharesUpdate'
{ _rlsuProFileId :: !(Textual Int64)
, _rlsuPayload :: !RemarketingListShare
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListSharesUpdate
:: Int64
-> RemarketingListShare
-> RemarketingListSharesUpdate
remarketingListSharesUpdate pRlsuProFileId_ pRlsuPayload_ =
RemarketingListSharesUpdate'
{ _rlsuProFileId = _Coerce # pRlsuProFileId_
, _rlsuPayload = pRlsuPayload_
}
rlsuProFileId :: Lens' RemarketingListSharesUpdate Int64
rlsuProFileId
= lens _rlsuProFileId
(\ s a -> s{_rlsuProFileId = a})
. _Coerce
rlsuPayload :: Lens' RemarketingListSharesUpdate RemarketingListShare
rlsuPayload
= lens _rlsuPayload (\ s a -> s{_rlsuPayload = a})
instance GoogleRequest RemarketingListSharesUpdate
where
type Rs RemarketingListSharesUpdate =
RemarketingListShare
type Scopes RemarketingListSharesUpdate =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListSharesUpdate'{..}
= go _rlsuProFileId (Just AltJSON) _rlsuPayload
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListSharesUpdateResource)
mempty