{-# 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.ProFileUserLinks.Delete
(
ManagementProFileUserLinksDeleteResource
, managementProFileUserLinksDelete
, ManagementProFileUserLinksDelete
, mpfuldWebPropertyId
, mpfuldProFileId
, mpfuldAccountId
, mpfuldLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileUserLinksDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"entityUserLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementProFileUserLinksDelete = ManagementProFileUserLinksDelete'
{ _mpfuldWebPropertyId :: !Text
, _mpfuldProFileId :: !Text
, _mpfuldAccountId :: !Text
, _mpfuldLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileUserLinksDelete
:: Text
-> Text
-> Text
-> Text
-> ManagementProFileUserLinksDelete
managementProFileUserLinksDelete pMpfuldWebPropertyId_ pMpfuldProFileId_ pMpfuldAccountId_ pMpfuldLinkId_ =
ManagementProFileUserLinksDelete'
{ _mpfuldWebPropertyId = pMpfuldWebPropertyId_
, _mpfuldProFileId = pMpfuldProFileId_
, _mpfuldAccountId = pMpfuldAccountId_
, _mpfuldLinkId = pMpfuldLinkId_
}
mpfuldWebPropertyId :: Lens' ManagementProFileUserLinksDelete Text
mpfuldWebPropertyId
= lens _mpfuldWebPropertyId
(\ s a -> s{_mpfuldWebPropertyId = a})
mpfuldProFileId :: Lens' ManagementProFileUserLinksDelete Text
mpfuldProFileId
= lens _mpfuldProFileId
(\ s a -> s{_mpfuldProFileId = a})
mpfuldAccountId :: Lens' ManagementProFileUserLinksDelete Text
mpfuldAccountId
= lens _mpfuldAccountId
(\ s a -> s{_mpfuldAccountId = a})
mpfuldLinkId :: Lens' ManagementProFileUserLinksDelete Text
mpfuldLinkId
= lens _mpfuldLinkId (\ s a -> s{_mpfuldLinkId = a})
instance GoogleRequest
ManagementProFileUserLinksDelete where
type Rs ManagementProFileUserLinksDelete = ()
type Scopes ManagementProFileUserLinksDelete =
'["https://www.googleapis.com/auth/analytics.manage.users"]
requestClient ManagementProFileUserLinksDelete'{..}
= go _mpfuldAccountId _mpfuldWebPropertyId
_mpfuldProFileId
_mpfuldLinkId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileUserLinksDeleteResource)
mempty