{-# 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.Exclusions.Delete
(
BillingAccountsExclusionsDeleteResource
, billingAccountsExclusionsDelete
, BillingAccountsExclusionsDelete
, baedXgafv
, baedUploadProtocol
, baedAccessToken
, baedUploadType
, baedName
, baedCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsExclusionsDeleteResource =
"v2" :>
Capture "name" 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 BillingAccountsExclusionsDelete = BillingAccountsExclusionsDelete'
{ _baedXgafv :: !(Maybe Xgafv)
, _baedUploadProtocol :: !(Maybe Text)
, _baedAccessToken :: !(Maybe Text)
, _baedUploadType :: !(Maybe Text)
, _baedName :: !Text
, _baedCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsExclusionsDelete
:: Text
-> BillingAccountsExclusionsDelete
billingAccountsExclusionsDelete pBaedName_ =
BillingAccountsExclusionsDelete'
{ _baedXgafv = Nothing
, _baedUploadProtocol = Nothing
, _baedAccessToken = Nothing
, _baedUploadType = Nothing
, _baedName = pBaedName_
, _baedCallback = Nothing
}
baedXgafv :: Lens' BillingAccountsExclusionsDelete (Maybe Xgafv)
baedXgafv
= lens _baedXgafv (\ s a -> s{_baedXgafv = a})
baedUploadProtocol :: Lens' BillingAccountsExclusionsDelete (Maybe Text)
baedUploadProtocol
= lens _baedUploadProtocol
(\ s a -> s{_baedUploadProtocol = a})
baedAccessToken :: Lens' BillingAccountsExclusionsDelete (Maybe Text)
baedAccessToken
= lens _baedAccessToken
(\ s a -> s{_baedAccessToken = a})
baedUploadType :: Lens' BillingAccountsExclusionsDelete (Maybe Text)
baedUploadType
= lens _baedUploadType
(\ s a -> s{_baedUploadType = a})
baedName :: Lens' BillingAccountsExclusionsDelete Text
baedName = lens _baedName (\ s a -> s{_baedName = a})
baedCallback :: Lens' BillingAccountsExclusionsDelete (Maybe Text)
baedCallback
= lens _baedCallback (\ s a -> s{_baedCallback = a})
instance GoogleRequest
BillingAccountsExclusionsDelete where
type Rs BillingAccountsExclusionsDelete = Empty
type Scopes BillingAccountsExclusionsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient BillingAccountsExclusionsDelete'{..}
= go _baedName _baedXgafv _baedUploadProtocol
_baedAccessToken
_baedUploadType
_baedCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy ::
Proxy BillingAccountsExclusionsDeleteResource)
mempty