{-# 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.Logging.Projects.Exclusions.Delete
(
ProjectsExclusionsDeleteResource
, projectsExclusionsDelete
, ProjectsExclusionsDelete
, pedXgafv
, pedUploadProtocol
, pedAccessToken
, pedUploadType
, pedName
, pedCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsExclusionsDeleteResource =
"v2" :>
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 ProjectsExclusionsDelete = ProjectsExclusionsDelete'
{ _pedXgafv :: !(Maybe Xgafv)
, _pedUploadProtocol :: !(Maybe Text)
, _pedAccessToken :: !(Maybe Text)
, _pedUploadType :: !(Maybe Text)
, _pedName :: !Text
, _pedCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsExclusionsDelete
:: Text
-> ProjectsExclusionsDelete
projectsExclusionsDelete pPedName_ =
ProjectsExclusionsDelete'
{ _pedXgafv = Nothing
, _pedUploadProtocol = Nothing
, _pedAccessToken = Nothing
, _pedUploadType = Nothing
, _pedName = pPedName_
, _pedCallback = Nothing
}
pedXgafv :: Lens' ProjectsExclusionsDelete (Maybe Xgafv)
pedXgafv = lens _pedXgafv (\ s a -> s{_pedXgafv = a})
pedUploadProtocol :: Lens' ProjectsExclusionsDelete (Maybe Text)
pedUploadProtocol
= lens _pedUploadProtocol
(\ s a -> s{_pedUploadProtocol = a})
pedAccessToken :: Lens' ProjectsExclusionsDelete (Maybe Text)
pedAccessToken
= lens _pedAccessToken
(\ s a -> s{_pedAccessToken = a})
pedUploadType :: Lens' ProjectsExclusionsDelete (Maybe Text)
pedUploadType
= lens _pedUploadType
(\ s a -> s{_pedUploadType = a})
pedName :: Lens' ProjectsExclusionsDelete Text
pedName = lens _pedName (\ s a -> s{_pedName = a})
pedCallback :: Lens' ProjectsExclusionsDelete (Maybe Text)
pedCallback
= lens _pedCallback (\ s a -> s{_pedCallback = a})
instance GoogleRequest ProjectsExclusionsDelete where
type Rs ProjectsExclusionsDelete = Empty
type Scopes ProjectsExclusionsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient ProjectsExclusionsDelete'{..}
= go _pedName _pedXgafv _pedUploadProtocol
_pedAccessToken
_pedUploadType
_pedCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsExclusionsDeleteResource)
mempty