{-# 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.Sinks.Delete
(
BillingAccountsSinksDeleteResource
, billingAccountsSinksDelete
, BillingAccountsSinksDelete
, basdXgafv
, basdUploadProtocol
, basdAccessToken
, basdUploadType
, basdSinkName
, basdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsSinksDeleteResource =
"v2" :>
Capture "sinkName" 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 BillingAccountsSinksDelete = BillingAccountsSinksDelete'
{ _basdXgafv :: !(Maybe Xgafv)
, _basdUploadProtocol :: !(Maybe Text)
, _basdAccessToken :: !(Maybe Text)
, _basdUploadType :: !(Maybe Text)
, _basdSinkName :: !Text
, _basdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsSinksDelete
:: Text
-> BillingAccountsSinksDelete
billingAccountsSinksDelete pBasdSinkName_ =
BillingAccountsSinksDelete'
{ _basdXgafv = Nothing
, _basdUploadProtocol = Nothing
, _basdAccessToken = Nothing
, _basdUploadType = Nothing
, _basdSinkName = pBasdSinkName_
, _basdCallback = Nothing
}
basdXgafv :: Lens' BillingAccountsSinksDelete (Maybe Xgafv)
basdXgafv
= lens _basdXgafv (\ s a -> s{_basdXgafv = a})
basdUploadProtocol :: Lens' BillingAccountsSinksDelete (Maybe Text)
basdUploadProtocol
= lens _basdUploadProtocol
(\ s a -> s{_basdUploadProtocol = a})
basdAccessToken :: Lens' BillingAccountsSinksDelete (Maybe Text)
basdAccessToken
= lens _basdAccessToken
(\ s a -> s{_basdAccessToken = a})
basdUploadType :: Lens' BillingAccountsSinksDelete (Maybe Text)
basdUploadType
= lens _basdUploadType
(\ s a -> s{_basdUploadType = a})
basdSinkName :: Lens' BillingAccountsSinksDelete Text
basdSinkName
= lens _basdSinkName (\ s a -> s{_basdSinkName = a})
basdCallback :: Lens' BillingAccountsSinksDelete (Maybe Text)
basdCallback
= lens _basdCallback (\ s a -> s{_basdCallback = a})
instance GoogleRequest BillingAccountsSinksDelete
where
type Rs BillingAccountsSinksDelete = Empty
type Scopes BillingAccountsSinksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient BillingAccountsSinksDelete'{..}
= go _basdSinkName _basdXgafv _basdUploadProtocol
_basdAccessToken
_basdUploadType
_basdCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsSinksDeleteResource)
mempty