{-# 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.Alerts.Delete
(
AlertsDeleteResource
, alertsDelete
, AlertsDelete
, adAlertId
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type AlertsDeleteResource =
"adsense" :>
"v1.4" :>
"alerts" :>
Capture "alertId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype AlertsDelete = AlertsDelete'
{ _adAlertId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
alertsDelete
:: Text
-> AlertsDelete
alertsDelete pAdAlertId_ =
AlertsDelete'
{ _adAlertId = pAdAlertId_
}
adAlertId :: Lens' AlertsDelete Text
adAlertId
= lens _adAlertId (\ s a -> s{_adAlertId = a})
instance GoogleRequest AlertsDelete where
type Rs AlertsDelete = ()
type Scopes AlertsDelete =
'["https://www.googleapis.com/auth/adsense"]
requestClient AlertsDelete'{..}
= go _adAlertId (Just AltJSON) adSenseService
where go
= buildClient (Proxy :: Proxy AlertsDeleteResource)
mempty