{-# 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.Get
(
BillingAccountsExclusionsGetResource
, billingAccountsExclusionsGet
, BillingAccountsExclusionsGet
, baegXgafv
, baegUploadProtocol
, baegAccessToken
, baegUploadType
, baegName
, baegCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsExclusionsGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] LogExclusion
data BillingAccountsExclusionsGet = BillingAccountsExclusionsGet'
{ _baegXgafv :: !(Maybe Xgafv)
, _baegUploadProtocol :: !(Maybe Text)
, _baegAccessToken :: !(Maybe Text)
, _baegUploadType :: !(Maybe Text)
, _baegName :: !Text
, _baegCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsExclusionsGet
:: Text
-> BillingAccountsExclusionsGet
billingAccountsExclusionsGet pBaegName_ =
BillingAccountsExclusionsGet'
{ _baegXgafv = Nothing
, _baegUploadProtocol = Nothing
, _baegAccessToken = Nothing
, _baegUploadType = Nothing
, _baegName = pBaegName_
, _baegCallback = Nothing
}
baegXgafv :: Lens' BillingAccountsExclusionsGet (Maybe Xgafv)
baegXgafv
= lens _baegXgafv (\ s a -> s{_baegXgafv = a})
baegUploadProtocol :: Lens' BillingAccountsExclusionsGet (Maybe Text)
baegUploadProtocol
= lens _baegUploadProtocol
(\ s a -> s{_baegUploadProtocol = a})
baegAccessToken :: Lens' BillingAccountsExclusionsGet (Maybe Text)
baegAccessToken
= lens _baegAccessToken
(\ s a -> s{_baegAccessToken = a})
baegUploadType :: Lens' BillingAccountsExclusionsGet (Maybe Text)
baegUploadType
= lens _baegUploadType
(\ s a -> s{_baegUploadType = a})
baegName :: Lens' BillingAccountsExclusionsGet Text
baegName = lens _baegName (\ s a -> s{_baegName = a})
baegCallback :: Lens' BillingAccountsExclusionsGet (Maybe Text)
baegCallback
= lens _baegCallback (\ s a -> s{_baegCallback = a})
instance GoogleRequest BillingAccountsExclusionsGet
where
type Rs BillingAccountsExclusionsGet = LogExclusion
type Scopes BillingAccountsExclusionsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"]
requestClient BillingAccountsExclusionsGet'{..}
= go _baegName _baegXgafv _baegUploadProtocol
_baegAccessToken
_baegUploadType
_baegCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsExclusionsGetResource)
mempty