{-# 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.RemarketingAudience.Delete
(
ManagementRemarketingAudienceDeleteResource
, managementRemarketingAudienceDelete
, ManagementRemarketingAudienceDelete
, mradWebPropertyId
, mradAccountId
, mradRemarketingAudienceId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementRemarketingAudienceDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"remarketingAudiences" :>
Capture "remarketingAudienceId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementRemarketingAudienceDelete = ManagementRemarketingAudienceDelete'
{ _mradWebPropertyId :: !Text
, _mradAccountId :: !Text
, _mradRemarketingAudienceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementRemarketingAudienceDelete
:: Text
-> Text
-> Text
-> ManagementRemarketingAudienceDelete
managementRemarketingAudienceDelete pMradWebPropertyId_ pMradAccountId_ pMradRemarketingAudienceId_ =
ManagementRemarketingAudienceDelete'
{ _mradWebPropertyId = pMradWebPropertyId_
, _mradAccountId = pMradAccountId_
, _mradRemarketingAudienceId = pMradRemarketingAudienceId_
}
mradWebPropertyId :: Lens' ManagementRemarketingAudienceDelete Text
mradWebPropertyId
= lens _mradWebPropertyId
(\ s a -> s{_mradWebPropertyId = a})
mradAccountId :: Lens' ManagementRemarketingAudienceDelete Text
mradAccountId
= lens _mradAccountId
(\ s a -> s{_mradAccountId = a})
mradRemarketingAudienceId :: Lens' ManagementRemarketingAudienceDelete Text
mradRemarketingAudienceId
= lens _mradRemarketingAudienceId
(\ s a -> s{_mradRemarketingAudienceId = a})
instance GoogleRequest
ManagementRemarketingAudienceDelete where
type Rs ManagementRemarketingAudienceDelete = ()
type Scopes ManagementRemarketingAudienceDelete =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient
ManagementRemarketingAudienceDelete'{..}
= go _mradAccountId _mradWebPropertyId
_mradRemarketingAudienceId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementRemarketingAudienceDeleteResource)
mempty