{-# 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.BillingAccounts.Logs.Delete
(
BillingAccountsLogsDeleteResource
, billingAccountsLogsDelete
, BillingAccountsLogsDelete
, baldXgafv
, baldUploadProtocol
, baldAccessToken
, baldUploadType
, baldLogName
, baldCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsLogsDeleteResource =
"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 BillingAccountsLogsDelete = BillingAccountsLogsDelete'
{ _baldXgafv :: !(Maybe Xgafv)
, _baldUploadProtocol :: !(Maybe Text)
, _baldAccessToken :: !(Maybe Text)
, _baldUploadType :: !(Maybe Text)
, _baldLogName :: !Text
, _baldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsLogsDelete
:: Text
-> BillingAccountsLogsDelete
billingAccountsLogsDelete pBaldLogName_ =
BillingAccountsLogsDelete'
{ _baldXgafv = Nothing
, _baldUploadProtocol = Nothing
, _baldAccessToken = Nothing
, _baldUploadType = Nothing
, _baldLogName = pBaldLogName_
, _baldCallback = Nothing
}
baldXgafv :: Lens' BillingAccountsLogsDelete (Maybe Xgafv)
baldXgafv
= lens _baldXgafv (\ s a -> s{_baldXgafv = a})
baldUploadProtocol :: Lens' BillingAccountsLogsDelete (Maybe Text)
baldUploadProtocol
= lens _baldUploadProtocol
(\ s a -> s{_baldUploadProtocol = a})
baldAccessToken :: Lens' BillingAccountsLogsDelete (Maybe Text)
baldAccessToken
= lens _baldAccessToken
(\ s a -> s{_baldAccessToken = a})
baldUploadType :: Lens' BillingAccountsLogsDelete (Maybe Text)
baldUploadType
= lens _baldUploadType
(\ s a -> s{_baldUploadType = a})
baldLogName :: Lens' BillingAccountsLogsDelete Text
baldLogName
= lens _baldLogName (\ s a -> s{_baldLogName = a})
baldCallback :: Lens' BillingAccountsLogsDelete (Maybe Text)
baldCallback
= lens _baldCallback (\ s a -> s{_baldCallback = a})
instance GoogleRequest BillingAccountsLogsDelete
where
type Rs BillingAccountsLogsDelete = Empty
type Scopes BillingAccountsLogsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient BillingAccountsLogsDelete'{..}
= go _baldLogName _baldXgafv _baldUploadProtocol
_baldAccessToken
_baldUploadType
_baldCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsLogsDeleteResource)
mempty