{-# 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.Folders.Exclusions.Delete
(
FoldersExclusionsDeleteResource
, foldersExclusionsDelete
, FoldersExclusionsDelete
, fedXgafv
, fedUploadProtocol
, fedAccessToken
, fedUploadType
, fedName
, fedCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersExclusionsDeleteResource =
"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 FoldersExclusionsDelete = FoldersExclusionsDelete'
{ _fedXgafv :: !(Maybe Xgafv)
, _fedUploadProtocol :: !(Maybe Text)
, _fedAccessToken :: !(Maybe Text)
, _fedUploadType :: !(Maybe Text)
, _fedName :: !Text
, _fedCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersExclusionsDelete
:: Text
-> FoldersExclusionsDelete
foldersExclusionsDelete pFedName_ =
FoldersExclusionsDelete'
{ _fedXgafv = Nothing
, _fedUploadProtocol = Nothing
, _fedAccessToken = Nothing
, _fedUploadType = Nothing
, _fedName = pFedName_
, _fedCallback = Nothing
}
fedXgafv :: Lens' FoldersExclusionsDelete (Maybe Xgafv)
fedXgafv = lens _fedXgafv (\ s a -> s{_fedXgafv = a})
fedUploadProtocol :: Lens' FoldersExclusionsDelete (Maybe Text)
fedUploadProtocol
= lens _fedUploadProtocol
(\ s a -> s{_fedUploadProtocol = a})
fedAccessToken :: Lens' FoldersExclusionsDelete (Maybe Text)
fedAccessToken
= lens _fedAccessToken
(\ s a -> s{_fedAccessToken = a})
fedUploadType :: Lens' FoldersExclusionsDelete (Maybe Text)
fedUploadType
= lens _fedUploadType
(\ s a -> s{_fedUploadType = a})
fedName :: Lens' FoldersExclusionsDelete Text
fedName = lens _fedName (\ s a -> s{_fedName = a})
fedCallback :: Lens' FoldersExclusionsDelete (Maybe Text)
fedCallback
= lens _fedCallback (\ s a -> s{_fedCallback = a})
instance GoogleRequest FoldersExclusionsDelete where
type Rs FoldersExclusionsDelete = Empty
type Scopes FoldersExclusionsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient FoldersExclusionsDelete'{..}
= go _fedName _fedXgafv _fedUploadProtocol
_fedAccessToken
_fedUploadType
_fedCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersExclusionsDeleteResource)
mempty