{-# 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.Logs.Delete
(
LogsDeleteResource
, logsDelete
, LogsDelete
, ldXgafv
, ldUploadProtocol
, ldAccessToken
, ldUploadType
, ldLogName
, ldCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type LogsDeleteResource =
"v2" :>
Capture "logName" 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 LogsDelete = LogsDelete'
{ _ldXgafv :: !(Maybe Xgafv)
, _ldUploadProtocol :: !(Maybe Text)
, _ldAccessToken :: !(Maybe Text)
, _ldUploadType :: !(Maybe Text)
, _ldLogName :: !Text
, _ldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
logsDelete
:: Text
-> LogsDelete
logsDelete pLdLogName_ =
LogsDelete'
{ _ldXgafv = Nothing
, _ldUploadProtocol = Nothing
, _ldAccessToken = Nothing
, _ldUploadType = Nothing
, _ldLogName = pLdLogName_
, _ldCallback = Nothing
}
ldXgafv :: Lens' LogsDelete (Maybe Xgafv)
ldXgafv = lens _ldXgafv (\ s a -> s{_ldXgafv = a})
ldUploadProtocol :: Lens' LogsDelete (Maybe Text)
ldUploadProtocol
= lens _ldUploadProtocol
(\ s a -> s{_ldUploadProtocol = a})
ldAccessToken :: Lens' LogsDelete (Maybe Text)
ldAccessToken
= lens _ldAccessToken
(\ s a -> s{_ldAccessToken = a})
ldUploadType :: Lens' LogsDelete (Maybe Text)
ldUploadType
= lens _ldUploadType (\ s a -> s{_ldUploadType = a})
ldLogName :: Lens' LogsDelete Text
ldLogName
= lens _ldLogName (\ s a -> s{_ldLogName = a})
ldCallback :: Lens' LogsDelete (Maybe Text)
ldCallback
= lens _ldCallback (\ s a -> s{_ldCallback = a})
instance GoogleRequest LogsDelete where
type Rs LogsDelete = Empty
type Scopes LogsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient LogsDelete'{..}
= go _ldLogName _ldXgafv _ldUploadProtocol
_ldAccessToken
_ldUploadType
_ldCallback
(Just AltJSON)
loggingService
where go
= buildClient (Proxy :: Proxy LogsDeleteResource)
mempty