{-# 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.Delete
(
ManagementProFileFilterLinksDeleteResource
, managementProFileFilterLinksDelete
, ManagementProFileFilterLinksDelete
, mpffldWebPropertyId
, mpffldProFileId
, mpffldAccountId
, mpffldLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileFilterLinksDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"profileFilterLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementProFileFilterLinksDelete = ManagementProFileFilterLinksDelete'
{ _mpffldWebPropertyId :: !Text
, _mpffldProFileId :: !Text
, _mpffldAccountId :: !Text
, _mpffldLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileFilterLinksDelete
:: Text
-> Text
-> Text
-> Text
-> ManagementProFileFilterLinksDelete
managementProFileFilterLinksDelete pMpffldWebPropertyId_ pMpffldProFileId_ pMpffldAccountId_ pMpffldLinkId_ =
ManagementProFileFilterLinksDelete'
{ _mpffldWebPropertyId = pMpffldWebPropertyId_
, _mpffldProFileId = pMpffldProFileId_
, _mpffldAccountId = pMpffldAccountId_
, _mpffldLinkId = pMpffldLinkId_
}
mpffldWebPropertyId :: Lens' ManagementProFileFilterLinksDelete Text
mpffldWebPropertyId
= lens _mpffldWebPropertyId
(\ s a -> s{_mpffldWebPropertyId = a})
mpffldProFileId :: Lens' ManagementProFileFilterLinksDelete Text
mpffldProFileId
= lens _mpffldProFileId
(\ s a -> s{_mpffldProFileId = a})
mpffldAccountId :: Lens' ManagementProFileFilterLinksDelete Text
mpffldAccountId
= lens _mpffldAccountId
(\ s a -> s{_mpffldAccountId = a})
mpffldLinkId :: Lens' ManagementProFileFilterLinksDelete Text
mpffldLinkId
= lens _mpffldLinkId (\ s a -> s{_mpffldLinkId = a})
instance GoogleRequest
ManagementProFileFilterLinksDelete where
type Rs ManagementProFileFilterLinksDelete = ()
type Scopes ManagementProFileFilterLinksDelete =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementProFileFilterLinksDelete'{..}
= go _mpffldAccountId _mpffldWebPropertyId
_mpffldProFileId
_mpffldLinkId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileFilterLinksDeleteResource)
mempty