{-# 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.AccountUserLinks.Delete
(
ManagementAccountUserLinksDeleteResource
, managementAccountUserLinksDelete
, ManagementAccountUserLinksDelete
, mauldAccountId
, mauldLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementAccountUserLinksDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"entityUserLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementAccountUserLinksDelete = ManagementAccountUserLinksDelete'
{ _mauldAccountId :: !Text
, _mauldLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementAccountUserLinksDelete
:: Text
-> Text
-> ManagementAccountUserLinksDelete
managementAccountUserLinksDelete pMauldAccountId_ pMauldLinkId_ =
ManagementAccountUserLinksDelete'
{ _mauldAccountId = pMauldAccountId_
, _mauldLinkId = pMauldLinkId_
}
mauldAccountId :: Lens' ManagementAccountUserLinksDelete Text
mauldAccountId
= lens _mauldAccountId
(\ s a -> s{_mauldAccountId = a})
mauldLinkId :: Lens' ManagementAccountUserLinksDelete Text
mauldLinkId
= lens _mauldLinkId (\ s a -> s{_mauldLinkId = a})
instance GoogleRequest
ManagementAccountUserLinksDelete where
type Rs ManagementAccountUserLinksDelete = ()
type Scopes ManagementAccountUserLinksDelete =
'["https://www.googleapis.com/auth/analytics.manage.users"]
requestClient ManagementAccountUserLinksDelete'{..}
= go _mauldAccountId _mauldLinkId (Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementAccountUserLinksDeleteResource)
mempty