{-# 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.Logs.List
(
BillingAccountsLogsListResource
, billingAccountsLogsList
, BillingAccountsLogsList
, ballParent
, ballXgafv
, ballUploadProtocol
, ballAccessToken
, ballUploadType
, ballPageToken
, ballPageSize
, ballCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsLogsListResource =
"v2" :>
Capture "parent" Text :>
"logs" :>
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] ListLogsResponse
data BillingAccountsLogsList = BillingAccountsLogsList'
{ _ballParent :: !Text
, _ballXgafv :: !(Maybe Xgafv)
, _ballUploadProtocol :: !(Maybe Text)
, _ballAccessToken :: !(Maybe Text)
, _ballUploadType :: !(Maybe Text)
, _ballPageToken :: !(Maybe Text)
, _ballPageSize :: !(Maybe (Textual Int32))
, _ballCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsLogsList
:: Text
-> BillingAccountsLogsList
billingAccountsLogsList pBallParent_ =
BillingAccountsLogsList'
{ _ballParent = pBallParent_
, _ballXgafv = Nothing
, _ballUploadProtocol = Nothing
, _ballAccessToken = Nothing
, _ballUploadType = Nothing
, _ballPageToken = Nothing
, _ballPageSize = Nothing
, _ballCallback = Nothing
}
ballParent :: Lens' BillingAccountsLogsList Text
ballParent
= lens _ballParent (\ s a -> s{_ballParent = a})
ballXgafv :: Lens' BillingAccountsLogsList (Maybe Xgafv)
ballXgafv
= lens _ballXgafv (\ s a -> s{_ballXgafv = a})
ballUploadProtocol :: Lens' BillingAccountsLogsList (Maybe Text)
ballUploadProtocol
= lens _ballUploadProtocol
(\ s a -> s{_ballUploadProtocol = a})
ballAccessToken :: Lens' BillingAccountsLogsList (Maybe Text)
ballAccessToken
= lens _ballAccessToken
(\ s a -> s{_ballAccessToken = a})
ballUploadType :: Lens' BillingAccountsLogsList (Maybe Text)
ballUploadType
= lens _ballUploadType
(\ s a -> s{_ballUploadType = a})
ballPageToken :: Lens' BillingAccountsLogsList (Maybe Text)
ballPageToken
= lens _ballPageToken
(\ s a -> s{_ballPageToken = a})
ballPageSize :: Lens' BillingAccountsLogsList (Maybe Int32)
ballPageSize
= lens _ballPageSize (\ s a -> s{_ballPageSize = a})
. mapping _Coerce
ballCallback :: Lens' BillingAccountsLogsList (Maybe Text)
ballCallback
= lens _ballCallback (\ s a -> s{_ballCallback = a})
instance GoogleRequest BillingAccountsLogsList where
type Rs BillingAccountsLogsList = ListLogsResponse
type Scopes BillingAccountsLogsList =
'["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 BillingAccountsLogsList'{..}
= go _ballParent _ballXgafv _ballUploadProtocol
_ballAccessToken
_ballUploadType
_ballPageToken
_ballPageSize
_ballCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsLogsListResource)
mempty