{-# 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.ProFileFilterLinks.Update
(
ManagementProFileFilterLinksUpdateResource
, managementProFileFilterLinksUpdate
, ManagementProFileFilterLinksUpdate
, mpffluWebPropertyId
, mpffluProFileId
, mpffluPayload
, mpffluAccountId
, mpffluLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileFilterLinksUpdateResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"profileFilterLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ProFileFilterLink :>
Put '[JSON] ProFileFilterLink
data ManagementProFileFilterLinksUpdate = ManagementProFileFilterLinksUpdate'
{ _mpffluWebPropertyId :: !Text
, _mpffluProFileId :: !Text
, _mpffluPayload :: !ProFileFilterLink
, _mpffluAccountId :: !Text
, _mpffluLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileFilterLinksUpdate
:: Text
-> Text
-> ProFileFilterLink
-> Text
-> Text
-> ManagementProFileFilterLinksUpdate
managementProFileFilterLinksUpdate pMpffluWebPropertyId_ pMpffluProFileId_ pMpffluPayload_ pMpffluAccountId_ pMpffluLinkId_ =
ManagementProFileFilterLinksUpdate'
{ _mpffluWebPropertyId = pMpffluWebPropertyId_
, _mpffluProFileId = pMpffluProFileId_
, _mpffluPayload = pMpffluPayload_
, _mpffluAccountId = pMpffluAccountId_
, _mpffluLinkId = pMpffluLinkId_
}
mpffluWebPropertyId :: Lens' ManagementProFileFilterLinksUpdate Text
mpffluWebPropertyId
= lens _mpffluWebPropertyId
(\ s a -> s{_mpffluWebPropertyId = a})
mpffluProFileId :: Lens' ManagementProFileFilterLinksUpdate Text
mpffluProFileId
= lens _mpffluProFileId
(\ s a -> s{_mpffluProFileId = a})
mpffluPayload :: Lens' ManagementProFileFilterLinksUpdate ProFileFilterLink
mpffluPayload
= lens _mpffluPayload
(\ s a -> s{_mpffluPayload = a})
mpffluAccountId :: Lens' ManagementProFileFilterLinksUpdate Text
mpffluAccountId
= lens _mpffluAccountId
(\ s a -> s{_mpffluAccountId = a})
mpffluLinkId :: Lens' ManagementProFileFilterLinksUpdate Text
mpffluLinkId
= lens _mpffluLinkId (\ s a -> s{_mpffluLinkId = a})
instance GoogleRequest
ManagementProFileFilterLinksUpdate where
type Rs ManagementProFileFilterLinksUpdate =
ProFileFilterLink
type Scopes ManagementProFileFilterLinksUpdate =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementProFileFilterLinksUpdate'{..}
= go _mpffluAccountId _mpffluWebPropertyId
_mpffluProFileId
_mpffluLinkId
(Just AltJSON)
_mpffluPayload
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileFilterLinksUpdateResource)
mempty