{-# 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.AdSense.Accounts.Alerts.Delete
(
AccountsAlertsDeleteResource
, accountsAlertsDelete
, AccountsAlertsDelete
, aadAlertId
, aadAccountId
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type AccountsAlertsDeleteResource =
"adsense" :>
"v1.4" :>
"accounts" :>
Capture "accountId" Text :>
"alerts" :>
Capture "alertId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data AccountsAlertsDelete = AccountsAlertsDelete'
{ _aadAlertId :: !Text
, _aadAccountId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsAlertsDelete
:: Text
-> Text
-> AccountsAlertsDelete
accountsAlertsDelete pAadAlertId_ pAadAccountId_ =
AccountsAlertsDelete'
{ _aadAlertId = pAadAlertId_
, _aadAccountId = pAadAccountId_
}
aadAlertId :: Lens' AccountsAlertsDelete Text
aadAlertId
= lens _aadAlertId (\ s a -> s{_aadAlertId = a})
aadAccountId :: Lens' AccountsAlertsDelete Text
aadAccountId
= lens _aadAccountId (\ s a -> s{_aadAccountId = a})
instance GoogleRequest AccountsAlertsDelete where
type Rs AccountsAlertsDelete = ()
type Scopes AccountsAlertsDelete =
'["https://www.googleapis.com/auth/adsense"]
requestClient AccountsAlertsDelete'{..}
= go _aadAccountId _aadAlertId (Just AltJSON)
adSenseService
where go
= buildClient
(Proxy :: Proxy AccountsAlertsDeleteResource)
mempty