{-# 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.Patch
(
BillingAccountsExclusionsPatchResource
, billingAccountsExclusionsPatch
, BillingAccountsExclusionsPatch
, baepXgafv
, baepUploadProtocol
, baepUpdateMask
, baepAccessToken
, baepUploadType
, baepPayload
, baepName
, baepCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsExclusionsPatchResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] LogExclusion :>
Patch '[JSON] LogExclusion
data BillingAccountsExclusionsPatch = BillingAccountsExclusionsPatch'
{ _baepXgafv :: !(Maybe Xgafv)
, _baepUploadProtocol :: !(Maybe Text)
, _baepUpdateMask :: !(Maybe GFieldMask)
, _baepAccessToken :: !(Maybe Text)
, _baepUploadType :: !(Maybe Text)
, _baepPayload :: !LogExclusion
, _baepName :: !Text
, _baepCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsExclusionsPatch
:: LogExclusion
-> Text
-> BillingAccountsExclusionsPatch
billingAccountsExclusionsPatch pBaepPayload_ pBaepName_ =
BillingAccountsExclusionsPatch'
{ _baepXgafv = Nothing
, _baepUploadProtocol = Nothing
, _baepUpdateMask = Nothing
, _baepAccessToken = Nothing
, _baepUploadType = Nothing
, _baepPayload = pBaepPayload_
, _baepName = pBaepName_
, _baepCallback = Nothing
}
baepXgafv :: Lens' BillingAccountsExclusionsPatch (Maybe Xgafv)
baepXgafv
= lens _baepXgafv (\ s a -> s{_baepXgafv = a})
baepUploadProtocol :: Lens' BillingAccountsExclusionsPatch (Maybe Text)
baepUploadProtocol
= lens _baepUploadProtocol
(\ s a -> s{_baepUploadProtocol = a})
baepUpdateMask :: Lens' BillingAccountsExclusionsPatch (Maybe GFieldMask)
baepUpdateMask
= lens _baepUpdateMask
(\ s a -> s{_baepUpdateMask = a})
baepAccessToken :: Lens' BillingAccountsExclusionsPatch (Maybe Text)
baepAccessToken
= lens _baepAccessToken
(\ s a -> s{_baepAccessToken = a})
baepUploadType :: Lens' BillingAccountsExclusionsPatch (Maybe Text)
baepUploadType
= lens _baepUploadType
(\ s a -> s{_baepUploadType = a})
baepPayload :: Lens' BillingAccountsExclusionsPatch LogExclusion
baepPayload
= lens _baepPayload (\ s a -> s{_baepPayload = a})
baepName :: Lens' BillingAccountsExclusionsPatch Text
baepName = lens _baepName (\ s a -> s{_baepName = a})
baepCallback :: Lens' BillingAccountsExclusionsPatch (Maybe Text)
baepCallback
= lens _baepCallback (\ s a -> s{_baepCallback = a})
instance GoogleRequest BillingAccountsExclusionsPatch
where
type Rs BillingAccountsExclusionsPatch = LogExclusion
type Scopes BillingAccountsExclusionsPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient BillingAccountsExclusionsPatch'{..}
= go _baepName _baepXgafv _baepUploadProtocol
_baepUpdateMask
_baepAccessToken
_baepUploadType
_baepCallback
(Just AltJSON)
_baepPayload
loggingService
where go
= buildClient
(Proxy ::
Proxy BillingAccountsExclusionsPatchResource)
mempty