{-# 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.Patch
(
ManagementProFileFilterLinksPatchResource
, managementProFileFilterLinksPatch
, ManagementProFileFilterLinksPatch
, mpfflpWebPropertyId
, mpfflpProFileId
, mpfflpPayload
, mpfflpAccountId
, mpfflpLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileFilterLinksPatchResource =
"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 :>
Patch '[JSON] ProFileFilterLink
data ManagementProFileFilterLinksPatch = ManagementProFileFilterLinksPatch'
{ _mpfflpWebPropertyId :: !Text
, _mpfflpProFileId :: !Text
, _mpfflpPayload :: !ProFileFilterLink
, _mpfflpAccountId :: !Text
, _mpfflpLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileFilterLinksPatch
:: Text
-> Text
-> ProFileFilterLink
-> Text
-> Text
-> ManagementProFileFilterLinksPatch
managementProFileFilterLinksPatch pMpfflpWebPropertyId_ pMpfflpProFileId_ pMpfflpPayload_ pMpfflpAccountId_ pMpfflpLinkId_ =
ManagementProFileFilterLinksPatch'
{ _mpfflpWebPropertyId = pMpfflpWebPropertyId_
, _mpfflpProFileId = pMpfflpProFileId_
, _mpfflpPayload = pMpfflpPayload_
, _mpfflpAccountId = pMpfflpAccountId_
, _mpfflpLinkId = pMpfflpLinkId_
}
mpfflpWebPropertyId :: Lens' ManagementProFileFilterLinksPatch Text
mpfflpWebPropertyId
= lens _mpfflpWebPropertyId
(\ s a -> s{_mpfflpWebPropertyId = a})
mpfflpProFileId :: Lens' ManagementProFileFilterLinksPatch Text
mpfflpProFileId
= lens _mpfflpProFileId
(\ s a -> s{_mpfflpProFileId = a})
mpfflpPayload :: Lens' ManagementProFileFilterLinksPatch ProFileFilterLink
mpfflpPayload
= lens _mpfflpPayload
(\ s a -> s{_mpfflpPayload = a})
mpfflpAccountId :: Lens' ManagementProFileFilterLinksPatch Text
mpfflpAccountId
= lens _mpfflpAccountId
(\ s a -> s{_mpfflpAccountId = a})
mpfflpLinkId :: Lens' ManagementProFileFilterLinksPatch Text
mpfflpLinkId
= lens _mpfflpLinkId (\ s a -> s{_mpfflpLinkId = a})
instance GoogleRequest
ManagementProFileFilterLinksPatch where
type Rs ManagementProFileFilterLinksPatch =
ProFileFilterLink
type Scopes ManagementProFileFilterLinksPatch =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementProFileFilterLinksPatch'{..}
= go _mpfflpAccountId _mpfflpWebPropertyId
_mpfflpProFileId
_mpfflpLinkId
(Just AltJSON)
_mpfflpPayload
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileFilterLinksPatchResource)
mempty