{-# 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.ProFiles.Delete
(
ManagementProFilesDeleteResource
, managementProFilesDelete
, ManagementProFilesDelete
, mpfdWebPropertyId
, mpfdProFileId
, mpfdAccountId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFilesDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementProFilesDelete = ManagementProFilesDelete'
{ _mpfdWebPropertyId :: !Text
, _mpfdProFileId :: !Text
, _mpfdAccountId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFilesDelete
:: Text
-> Text
-> Text
-> ManagementProFilesDelete
managementProFilesDelete pMpfdWebPropertyId_ pMpfdProFileId_ pMpfdAccountId_ =
ManagementProFilesDelete'
{ _mpfdWebPropertyId = pMpfdWebPropertyId_
, _mpfdProFileId = pMpfdProFileId_
, _mpfdAccountId = pMpfdAccountId_
}
mpfdWebPropertyId :: Lens' ManagementProFilesDelete Text
mpfdWebPropertyId
= lens _mpfdWebPropertyId
(\ s a -> s{_mpfdWebPropertyId = a})
mpfdProFileId :: Lens' ManagementProFilesDelete Text
mpfdProFileId
= lens _mpfdProFileId
(\ s a -> s{_mpfdProFileId = a})
mpfdAccountId :: Lens' ManagementProFilesDelete Text
mpfdAccountId
= lens _mpfdAccountId
(\ s a -> s{_mpfdAccountId = a})
instance GoogleRequest ManagementProFilesDelete where
type Rs ManagementProFilesDelete = ()
type Scopes ManagementProFilesDelete =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementProFilesDelete'{..}
= go _mpfdAccountId _mpfdWebPropertyId _mpfdProFileId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy :: Proxy ManagementProFilesDeleteResource)
mempty