{-# 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.Organizations.Logs.Delete
(
OrganizationsLogsDeleteResource
, organizationsLogsDelete
, OrganizationsLogsDelete
, oldXgafv
, oldUploadProtocol
, oldAccessToken
, oldUploadType
, oldLogName
, oldCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type OrganizationsLogsDeleteResource =
"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 OrganizationsLogsDelete = OrganizationsLogsDelete'
{ _oldXgafv :: !(Maybe Xgafv)
, _oldUploadProtocol :: !(Maybe Text)
, _oldAccessToken :: !(Maybe Text)
, _oldUploadType :: !(Maybe Text)
, _oldLogName :: !Text
, _oldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsLogsDelete
:: Text
-> OrganizationsLogsDelete
organizationsLogsDelete pOldLogName_ =
OrganizationsLogsDelete'
{ _oldXgafv = Nothing
, _oldUploadProtocol = Nothing
, _oldAccessToken = Nothing
, _oldUploadType = Nothing
, _oldLogName = pOldLogName_
, _oldCallback = Nothing
}
oldXgafv :: Lens' OrganizationsLogsDelete (Maybe Xgafv)
oldXgafv = lens _oldXgafv (\ s a -> s{_oldXgafv = a})
oldUploadProtocol :: Lens' OrganizationsLogsDelete (Maybe Text)
oldUploadProtocol
= lens _oldUploadProtocol
(\ s a -> s{_oldUploadProtocol = a})
oldAccessToken :: Lens' OrganizationsLogsDelete (Maybe Text)
oldAccessToken
= lens _oldAccessToken
(\ s a -> s{_oldAccessToken = a})
oldUploadType :: Lens' OrganizationsLogsDelete (Maybe Text)
oldUploadType
= lens _oldUploadType
(\ s a -> s{_oldUploadType = a})
oldLogName :: Lens' OrganizationsLogsDelete Text
oldLogName
= lens _oldLogName (\ s a -> s{_oldLogName = a})
oldCallback :: Lens' OrganizationsLogsDelete (Maybe Text)
oldCallback
= lens _oldCallback (\ s a -> s{_oldCallback = a})
instance GoogleRequest OrganizationsLogsDelete where
type Rs OrganizationsLogsDelete = Empty
type Scopes OrganizationsLogsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient OrganizationsLogsDelete'{..}
= go _oldLogName _oldXgafv _oldUploadProtocol
_oldAccessToken
_oldUploadType
_oldCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy OrganizationsLogsDeleteResource)
mempty