{-# 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.Logs.Delete
(
ProjectsLogsDeleteResource
, projectsLogsDelete
, ProjectsLogsDelete
, pldXgafv
, pldUploadProtocol
, pldAccessToken
, pldUploadType
, pldLogName
, pldCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsLogsDeleteResource =
"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 ProjectsLogsDelete = ProjectsLogsDelete'
{ _pldXgafv :: !(Maybe Xgafv)
, _pldUploadProtocol :: !(Maybe Text)
, _pldAccessToken :: !(Maybe Text)
, _pldUploadType :: !(Maybe Text)
, _pldLogName :: !Text
, _pldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLogsDelete
:: Text
-> ProjectsLogsDelete
projectsLogsDelete pPldLogName_ =
ProjectsLogsDelete'
{ _pldXgafv = Nothing
, _pldUploadProtocol = Nothing
, _pldAccessToken = Nothing
, _pldUploadType = Nothing
, _pldLogName = pPldLogName_
, _pldCallback = Nothing
}
pldXgafv :: Lens' ProjectsLogsDelete (Maybe Xgafv)
pldXgafv = lens _pldXgafv (\ s a -> s{_pldXgafv = a})
pldUploadProtocol :: Lens' ProjectsLogsDelete (Maybe Text)
pldUploadProtocol
= lens _pldUploadProtocol
(\ s a -> s{_pldUploadProtocol = a})
pldAccessToken :: Lens' ProjectsLogsDelete (Maybe Text)
pldAccessToken
= lens _pldAccessToken
(\ s a -> s{_pldAccessToken = a})
pldUploadType :: Lens' ProjectsLogsDelete (Maybe Text)
pldUploadType
= lens _pldUploadType
(\ s a -> s{_pldUploadType = a})
pldLogName :: Lens' ProjectsLogsDelete Text
pldLogName
= lens _pldLogName (\ s a -> s{_pldLogName = a})
pldCallback :: Lens' ProjectsLogsDelete (Maybe Text)
pldCallback
= lens _pldCallback (\ s a -> s{_pldCallback = a})
instance GoogleRequest ProjectsLogsDelete where
type Rs ProjectsLogsDelete = Empty
type Scopes ProjectsLogsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient ProjectsLogsDelete'{..}
= go _pldLogName _pldXgafv _pldUploadProtocol
_pldAccessToken
_pldUploadType
_pldCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsLogsDeleteResource)
mempty