{-# 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.Filters.Delete
(
ManagementFiltersDeleteResource
, managementFiltersDelete
, ManagementFiltersDelete
, mfdFilterId
, mfdAccountId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementFiltersDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"filters" :>
Capture "filterId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Filter
data ManagementFiltersDelete = ManagementFiltersDelete'
{ _mfdFilterId :: !Text
, _mfdAccountId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementFiltersDelete
:: Text
-> Text
-> ManagementFiltersDelete
managementFiltersDelete pMfdFilterId_ pMfdAccountId_ =
ManagementFiltersDelete'
{ _mfdFilterId = pMfdFilterId_
, _mfdAccountId = pMfdAccountId_
}
mfdFilterId :: Lens' ManagementFiltersDelete Text
mfdFilterId
= lens _mfdFilterId (\ s a -> s{_mfdFilterId = a})
mfdAccountId :: Lens' ManagementFiltersDelete Text
mfdAccountId
= lens _mfdAccountId (\ s a -> s{_mfdAccountId = a})
instance GoogleRequest ManagementFiltersDelete where
type Rs ManagementFiltersDelete = Filter
type Scopes ManagementFiltersDelete =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementFiltersDelete'{..}
= go _mfdAccountId _mfdFilterId (Just AltJSON)
analyticsService
where go
= buildClient
(Proxy :: Proxy ManagementFiltersDeleteResource)
mempty