{-# 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.NotificationChannels.Delete
(
ProjectsNotificationChannelsDeleteResource
, projectsNotificationChannelsDelete
, ProjectsNotificationChannelsDelete
, pncdXgafv
, pncdUploadProtocol
, pncdForce
, pncdAccessToken
, pncdUploadType
, pncdName
, pncdCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsNotificationChannelsDeleteResource =
"v3" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "force" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsNotificationChannelsDelete = ProjectsNotificationChannelsDelete'
{ _pncdXgafv :: !(Maybe Xgafv)
, _pncdUploadProtocol :: !(Maybe Text)
, _pncdForce :: !(Maybe Bool)
, _pncdAccessToken :: !(Maybe Text)
, _pncdUploadType :: !(Maybe Text)
, _pncdName :: !Text
, _pncdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotificationChannelsDelete
:: Text
-> ProjectsNotificationChannelsDelete
projectsNotificationChannelsDelete pPncdName_ =
ProjectsNotificationChannelsDelete'
{ _pncdXgafv = Nothing
, _pncdUploadProtocol = Nothing
, _pncdForce = Nothing
, _pncdAccessToken = Nothing
, _pncdUploadType = Nothing
, _pncdName = pPncdName_
, _pncdCallback = Nothing
}
pncdXgafv :: Lens' ProjectsNotificationChannelsDelete (Maybe Xgafv)
pncdXgafv
= lens _pncdXgafv (\ s a -> s{_pncdXgafv = a})
pncdUploadProtocol :: Lens' ProjectsNotificationChannelsDelete (Maybe Text)
pncdUploadProtocol
= lens _pncdUploadProtocol
(\ s a -> s{_pncdUploadProtocol = a})
pncdForce :: Lens' ProjectsNotificationChannelsDelete (Maybe Bool)
pncdForce
= lens _pncdForce (\ s a -> s{_pncdForce = a})
pncdAccessToken :: Lens' ProjectsNotificationChannelsDelete (Maybe Text)
pncdAccessToken
= lens _pncdAccessToken
(\ s a -> s{_pncdAccessToken = a})
pncdUploadType :: Lens' ProjectsNotificationChannelsDelete (Maybe Text)
pncdUploadType
= lens _pncdUploadType
(\ s a -> s{_pncdUploadType = a})
pncdName :: Lens' ProjectsNotificationChannelsDelete Text
pncdName = lens _pncdName (\ s a -> s{_pncdName = a})
pncdCallback :: Lens' ProjectsNotificationChannelsDelete (Maybe Text)
pncdCallback
= lens _pncdCallback (\ s a -> s{_pncdCallback = a})
instance GoogleRequest
ProjectsNotificationChannelsDelete where
type Rs ProjectsNotificationChannelsDelete = Empty
type Scopes ProjectsNotificationChannelsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring"]
requestClient ProjectsNotificationChannelsDelete'{..}
= go _pncdName _pncdXgafv _pncdUploadProtocol
_pncdForce
_pncdAccessToken
_pncdUploadType
_pncdCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy ::
Proxy ProjectsNotificationChannelsDeleteResource)
mempty