{-# 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.Exclusions.Delete
(
ExclusionsDeleteResource
, exclusionsDelete
, ExclusionsDelete
, edXgafv
, edUploadProtocol
, edAccessToken
, edUploadType
, edName
, edCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ExclusionsDeleteResource =
"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 ExclusionsDelete = ExclusionsDelete'
{ _edXgafv :: !(Maybe Xgafv)
, _edUploadProtocol :: !(Maybe Text)
, _edAccessToken :: !(Maybe Text)
, _edUploadType :: !(Maybe Text)
, _edName :: !Text
, _edCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
exclusionsDelete
:: Text
-> ExclusionsDelete
exclusionsDelete pEdName_ =
ExclusionsDelete'
{ _edXgafv = Nothing
, _edUploadProtocol = Nothing
, _edAccessToken = Nothing
, _edUploadType = Nothing
, _edName = pEdName_
, _edCallback = Nothing
}
edXgafv :: Lens' ExclusionsDelete (Maybe Xgafv)
edXgafv = lens _edXgafv (\ s a -> s{_edXgafv = a})
edUploadProtocol :: Lens' ExclusionsDelete (Maybe Text)
edUploadProtocol
= lens _edUploadProtocol
(\ s a -> s{_edUploadProtocol = a})
edAccessToken :: Lens' ExclusionsDelete (Maybe Text)
edAccessToken
= lens _edAccessToken
(\ s a -> s{_edAccessToken = a})
edUploadType :: Lens' ExclusionsDelete (Maybe Text)
edUploadType
= lens _edUploadType (\ s a -> s{_edUploadType = a})
edName :: Lens' ExclusionsDelete Text
edName = lens _edName (\ s a -> s{_edName = a})
edCallback :: Lens' ExclusionsDelete (Maybe Text)
edCallback
= lens _edCallback (\ s a -> s{_edCallback = a})
instance GoogleRequest ExclusionsDelete where
type Rs ExclusionsDelete = Empty
type Scopes ExclusionsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient ExclusionsDelete'{..}
= go _edName _edXgafv _edUploadProtocol
_edAccessToken
_edUploadType
_edCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ExclusionsDeleteResource)
mempty