{-# 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.Monitoring.Projects.AlertPolicies.Delete
(
ProjectsAlertPoliciesDeleteResource
, projectsAlertPoliciesDelete
, ProjectsAlertPoliciesDelete
, papdXgafv
, papdUploadProtocol
, papdAccessToken
, papdUploadType
, papdName
, papdCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsAlertPoliciesDeleteResource =
"v3" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsAlertPoliciesDelete = ProjectsAlertPoliciesDelete'
{ _papdXgafv :: !(Maybe Xgafv)
, _papdUploadProtocol :: !(Maybe Text)
, _papdAccessToken :: !(Maybe Text)
, _papdUploadType :: !(Maybe Text)
, _papdName :: !Text
, _papdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAlertPoliciesDelete
:: Text
-> ProjectsAlertPoliciesDelete
projectsAlertPoliciesDelete pPapdName_ =
ProjectsAlertPoliciesDelete'
{ _papdXgafv = Nothing
, _papdUploadProtocol = Nothing
, _papdAccessToken = Nothing
, _papdUploadType = Nothing
, _papdName = pPapdName_
, _papdCallback = Nothing
}
papdXgafv :: Lens' ProjectsAlertPoliciesDelete (Maybe Xgafv)
papdXgafv
= lens _papdXgafv (\ s a -> s{_papdXgafv = a})
papdUploadProtocol :: Lens' ProjectsAlertPoliciesDelete (Maybe Text)
papdUploadProtocol
= lens _papdUploadProtocol
(\ s a -> s{_papdUploadProtocol = a})
papdAccessToken :: Lens' ProjectsAlertPoliciesDelete (Maybe Text)
papdAccessToken
= lens _papdAccessToken
(\ s a -> s{_papdAccessToken = a})
papdUploadType :: Lens' ProjectsAlertPoliciesDelete (Maybe Text)
papdUploadType
= lens _papdUploadType
(\ s a -> s{_papdUploadType = a})
papdName :: Lens' ProjectsAlertPoliciesDelete Text
papdName = lens _papdName (\ s a -> s{_papdName = a})
papdCallback :: Lens' ProjectsAlertPoliciesDelete (Maybe Text)
papdCallback
= lens _papdCallback (\ s a -> s{_papdCallback = a})
instance GoogleRequest ProjectsAlertPoliciesDelete
where
type Rs ProjectsAlertPoliciesDelete = Empty
type Scopes ProjectsAlertPoliciesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring"]
requestClient ProjectsAlertPoliciesDelete'{..}
= go _papdName _papdXgafv _papdUploadProtocol
_papdAccessToken
_papdUploadType
_papdCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsAlertPoliciesDeleteResource)
mempty