{-# 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.CloudErrorReporting.Projects.DeleteEvents
(
ProjectsDeleteEventsResource
, projectsDeleteEvents
, ProjectsDeleteEvents
, pdeXgafv
, pdeUploadProtocol
, pdeAccessToken
, pdeUploadType
, pdeProjectName
, pdeCallback
) where
import Network.Google.CloudErrorReporting.Types
import Network.Google.Prelude
type ProjectsDeleteEventsResource =
"v1beta1" :>
Capture "projectName" Text :>
"events" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] DeleteEventsResponse
data ProjectsDeleteEvents = ProjectsDeleteEvents'
{ _pdeXgafv :: !(Maybe Xgafv)
, _pdeUploadProtocol :: !(Maybe Text)
, _pdeAccessToken :: !(Maybe Text)
, _pdeUploadType :: !(Maybe Text)
, _pdeProjectName :: !Text
, _pdeCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeleteEvents
:: Text
-> ProjectsDeleteEvents
projectsDeleteEvents pPdeProjectName_ =
ProjectsDeleteEvents'
{ _pdeXgafv = Nothing
, _pdeUploadProtocol = Nothing
, _pdeAccessToken = Nothing
, _pdeUploadType = Nothing
, _pdeProjectName = pPdeProjectName_
, _pdeCallback = Nothing
}
pdeXgafv :: Lens' ProjectsDeleteEvents (Maybe Xgafv)
pdeXgafv = lens _pdeXgafv (\ s a -> s{_pdeXgafv = a})
pdeUploadProtocol :: Lens' ProjectsDeleteEvents (Maybe Text)
pdeUploadProtocol
= lens _pdeUploadProtocol
(\ s a -> s{_pdeUploadProtocol = a})
pdeAccessToken :: Lens' ProjectsDeleteEvents (Maybe Text)
pdeAccessToken
= lens _pdeAccessToken
(\ s a -> s{_pdeAccessToken = a})
pdeUploadType :: Lens' ProjectsDeleteEvents (Maybe Text)
pdeUploadType
= lens _pdeUploadType
(\ s a -> s{_pdeUploadType = a})
pdeProjectName :: Lens' ProjectsDeleteEvents Text
pdeProjectName
= lens _pdeProjectName
(\ s a -> s{_pdeProjectName = a})
pdeCallback :: Lens' ProjectsDeleteEvents (Maybe Text)
pdeCallback
= lens _pdeCallback (\ s a -> s{_pdeCallback = a})
instance GoogleRequest ProjectsDeleteEvents where
type Rs ProjectsDeleteEvents = DeleteEventsResponse
type Scopes ProjectsDeleteEvents =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDeleteEvents'{..}
= go _pdeProjectName _pdeXgafv _pdeUploadProtocol
_pdeAccessToken
_pdeUploadType
_pdeCallback
(Just AltJSON)
cloudErrorReportingService
where go
= buildClient
(Proxy :: Proxy ProjectsDeleteEventsResource)
mempty