{-# 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.AlertCenter.Alerts.Delete
(
AlertsDeleteResource
, alertsDelete
, AlertsDelete
, adXgafv
, adUploadProtocol
, adAccessToken
, adAlertId
, adUploadType
, adCustomerId
, adCallback
) where
import Network.Google.AlertCenter.Types
import Network.Google.Prelude
type AlertsDeleteResource =
"v1beta1" :>
"alerts" :>
Capture "alertId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "customerId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data AlertsDelete = AlertsDelete'
{ _adXgafv :: !(Maybe Xgafv)
, _adUploadProtocol :: !(Maybe Text)
, _adAccessToken :: !(Maybe Text)
, _adAlertId :: !Text
, _adUploadType :: !(Maybe Text)
, _adCustomerId :: !(Maybe Text)
, _adCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
alertsDelete
:: Text
-> AlertsDelete
alertsDelete pAdAlertId_ =
AlertsDelete'
{ _adXgafv = Nothing
, _adUploadProtocol = Nothing
, _adAccessToken = Nothing
, _adAlertId = pAdAlertId_
, _adUploadType = Nothing
, _adCustomerId = Nothing
, _adCallback = Nothing
}
adXgafv :: Lens' AlertsDelete (Maybe Xgafv)
adXgafv = lens _adXgafv (\ s a -> s{_adXgafv = a})
adUploadProtocol :: Lens' AlertsDelete (Maybe Text)
adUploadProtocol
= lens _adUploadProtocol
(\ s a -> s{_adUploadProtocol = a})
adAccessToken :: Lens' AlertsDelete (Maybe Text)
adAccessToken
= lens _adAccessToken
(\ s a -> s{_adAccessToken = a})
adAlertId :: Lens' AlertsDelete Text
adAlertId
= lens _adAlertId (\ s a -> s{_adAlertId = a})
adUploadType :: Lens' AlertsDelete (Maybe Text)
adUploadType
= lens _adUploadType (\ s a -> s{_adUploadType = a})
adCustomerId :: Lens' AlertsDelete (Maybe Text)
adCustomerId
= lens _adCustomerId (\ s a -> s{_adCustomerId = a})
adCallback :: Lens' AlertsDelete (Maybe Text)
adCallback
= lens _adCallback (\ s a -> s{_adCallback = a})
instance GoogleRequest AlertsDelete where
type Rs AlertsDelete = Empty
type Scopes AlertsDelete =
'["https://www.googleapis.com/auth/apps.alerts"]
requestClient AlertsDelete'{..}
= go _adAlertId _adXgafv _adUploadProtocol
_adAccessToken
_adUploadType
_adCustomerId
_adCallback
(Just AltJSON)
alertCenterService
where go
= buildClient (Proxy :: Proxy AlertsDeleteResource)
mempty