{-# 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.WebPropertyUserLinks.Delete
(
ManagementWebPropertyUserLinksDeleteResource
, managementWebPropertyUserLinksDelete
, ManagementWebPropertyUserLinksDelete
, mwpuldWebPropertyId
, mwpuldAccountId
, mwpuldLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementWebPropertyUserLinksDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"entityUserLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementWebPropertyUserLinksDelete = ManagementWebPropertyUserLinksDelete'
{ _mwpuldWebPropertyId :: !Text
, _mwpuldAccountId :: !Text
, _mwpuldLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementWebPropertyUserLinksDelete
:: Text
-> Text
-> Text
-> ManagementWebPropertyUserLinksDelete
managementWebPropertyUserLinksDelete pMwpuldWebPropertyId_ pMwpuldAccountId_ pMwpuldLinkId_ =
ManagementWebPropertyUserLinksDelete'
{ _mwpuldWebPropertyId = pMwpuldWebPropertyId_
, _mwpuldAccountId = pMwpuldAccountId_
, _mwpuldLinkId = pMwpuldLinkId_
}
mwpuldWebPropertyId :: Lens' ManagementWebPropertyUserLinksDelete Text
mwpuldWebPropertyId
= lens _mwpuldWebPropertyId
(\ s a -> s{_mwpuldWebPropertyId = a})
mwpuldAccountId :: Lens' ManagementWebPropertyUserLinksDelete Text
mwpuldAccountId
= lens _mwpuldAccountId
(\ s a -> s{_mwpuldAccountId = a})
mwpuldLinkId :: Lens' ManagementWebPropertyUserLinksDelete Text
mwpuldLinkId
= lens _mwpuldLinkId (\ s a -> s{_mwpuldLinkId = a})
instance GoogleRequest
ManagementWebPropertyUserLinksDelete where
type Rs ManagementWebPropertyUserLinksDelete = ()
type Scopes ManagementWebPropertyUserLinksDelete =
'["https://www.googleapis.com/auth/analytics.manage.users"]
requestClient
ManagementWebPropertyUserLinksDelete'{..}
= go _mwpuldAccountId _mwpuldWebPropertyId
_mwpuldLinkId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementWebPropertyUserLinksDeleteResource)
mempty