{-# 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.List
(
BillingAccountsExclusionsListResource
, billingAccountsExclusionsList
, BillingAccountsExclusionsList
, baelParent
, baelXgafv
, baelUploadProtocol
, baelAccessToken
, baelUploadType
, baelPageToken
, baelPageSize
, baelCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsExclusionsListResource =
"v2" :>
Capture "parent" Text :>
"exclusions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListExclusionsResponse
data BillingAccountsExclusionsList = BillingAccountsExclusionsList'
{ _baelParent :: !Text
, _baelXgafv :: !(Maybe Xgafv)
, _baelUploadProtocol :: !(Maybe Text)
, _baelAccessToken :: !(Maybe Text)
, _baelUploadType :: !(Maybe Text)
, _baelPageToken :: !(Maybe Text)
, _baelPageSize :: !(Maybe (Textual Int32))
, _baelCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsExclusionsList
:: Text
-> BillingAccountsExclusionsList
billingAccountsExclusionsList pBaelParent_ =
BillingAccountsExclusionsList'
{ _baelParent = pBaelParent_
, _baelXgafv = Nothing
, _baelUploadProtocol = Nothing
, _baelAccessToken = Nothing
, _baelUploadType = Nothing
, _baelPageToken = Nothing
, _baelPageSize = Nothing
, _baelCallback = Nothing
}
baelParent :: Lens' BillingAccountsExclusionsList Text
baelParent
= lens _baelParent (\ s a -> s{_baelParent = a})
baelXgafv :: Lens' BillingAccountsExclusionsList (Maybe Xgafv)
baelXgafv
= lens _baelXgafv (\ s a -> s{_baelXgafv = a})
baelUploadProtocol :: Lens' BillingAccountsExclusionsList (Maybe Text)
baelUploadProtocol
= lens _baelUploadProtocol
(\ s a -> s{_baelUploadProtocol = a})
baelAccessToken :: Lens' BillingAccountsExclusionsList (Maybe Text)
baelAccessToken
= lens _baelAccessToken
(\ s a -> s{_baelAccessToken = a})
baelUploadType :: Lens' BillingAccountsExclusionsList (Maybe Text)
baelUploadType
= lens _baelUploadType
(\ s a -> s{_baelUploadType = a})
baelPageToken :: Lens' BillingAccountsExclusionsList (Maybe Text)
baelPageToken
= lens _baelPageToken
(\ s a -> s{_baelPageToken = a})
baelPageSize :: Lens' BillingAccountsExclusionsList (Maybe Int32)
baelPageSize
= lens _baelPageSize (\ s a -> s{_baelPageSize = a})
. mapping _Coerce
baelCallback :: Lens' BillingAccountsExclusionsList (Maybe Text)
baelCallback
= lens _baelCallback (\ s a -> s{_baelCallback = a})
instance GoogleRequest BillingAccountsExclusionsList
where
type Rs BillingAccountsExclusionsList =
ListExclusionsResponse
type Scopes BillingAccountsExclusionsList =
'["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 BillingAccountsExclusionsList'{..}
= go _baelParent _baelXgafv _baelUploadProtocol
_baelAccessToken
_baelUploadType
_baelPageToken
_baelPageSize
_baelCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy ::
Proxy BillingAccountsExclusionsListResource)
mempty