{-# 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.Analytics.Management.RemarketingAudience.Update
(
ManagementRemarketingAudienceUpdateResource
, managementRemarketingAudienceUpdate
, ManagementRemarketingAudienceUpdate
, mrauWebPropertyId
, mrauPayload
, mrauAccountId
, mrauRemarketingAudienceId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementRemarketingAudienceUpdateResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"remarketingAudiences" :>
Capture "remarketingAudienceId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemarketingAudience :>
Put '[JSON] RemarketingAudience
data ManagementRemarketingAudienceUpdate = ManagementRemarketingAudienceUpdate'
{ _mrauWebPropertyId :: !Text
, _mrauPayload :: !RemarketingAudience
, _mrauAccountId :: !Text
, _mrauRemarketingAudienceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementRemarketingAudienceUpdate
:: Text
-> RemarketingAudience
-> Text
-> Text
-> ManagementRemarketingAudienceUpdate
managementRemarketingAudienceUpdate pMrauWebPropertyId_ pMrauPayload_ pMrauAccountId_ pMrauRemarketingAudienceId_ =
ManagementRemarketingAudienceUpdate'
{ _mrauWebPropertyId = pMrauWebPropertyId_
, _mrauPayload = pMrauPayload_
, _mrauAccountId = pMrauAccountId_
, _mrauRemarketingAudienceId = pMrauRemarketingAudienceId_
}
mrauWebPropertyId :: Lens' ManagementRemarketingAudienceUpdate Text
mrauWebPropertyId
= lens _mrauWebPropertyId
(\ s a -> s{_mrauWebPropertyId = a})
mrauPayload :: Lens' ManagementRemarketingAudienceUpdate RemarketingAudience
mrauPayload
= lens _mrauPayload (\ s a -> s{_mrauPayload = a})
mrauAccountId :: Lens' ManagementRemarketingAudienceUpdate Text
mrauAccountId
= lens _mrauAccountId
(\ s a -> s{_mrauAccountId = a})
mrauRemarketingAudienceId :: Lens' ManagementRemarketingAudienceUpdate Text
mrauRemarketingAudienceId
= lens _mrauRemarketingAudienceId
(\ s a -> s{_mrauRemarketingAudienceId = a})
instance GoogleRequest
ManagementRemarketingAudienceUpdate where
type Rs ManagementRemarketingAudienceUpdate =
RemarketingAudience
type Scopes ManagementRemarketingAudienceUpdate =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient
ManagementRemarketingAudienceUpdate'{..}
= go _mrauAccountId _mrauWebPropertyId
_mrauRemarketingAudienceId
(Just AltJSON)
_mrauPayload
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementRemarketingAudienceUpdateResource)
mempty