{-# 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.AdExchangeBuyer.PerformanceReport.List
(
PerformanceReportListResource
, performanceReportList'
, PerformanceReportList'
, prlAccountId
, prlPageToken
, prlEndDateTime
, prlMaxResults
, prlStartDateTime
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type PerformanceReportListResource =
"adexchangebuyer" :>
"v1.4" :>
"performancereport" :>
QueryParam "accountId" (Textual Int64) :>
QueryParam "endDateTime" Text :>
QueryParam "startDateTime" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] PerformanceReportList
data PerformanceReportList' = PerformanceReportList''
{ _prlAccountId :: !(Textual Int64)
, _prlPageToken :: !(Maybe Text)
, _prlEndDateTime :: !Text
, _prlMaxResults :: !(Maybe (Textual Word32))
, _prlStartDateTime :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
performanceReportList'
:: Int64
-> Text
-> Text
-> PerformanceReportList'
performanceReportList' pPrlAccountId_ pPrlEndDateTime_ pPrlStartDateTime_ =
PerformanceReportList''
{ _prlAccountId = _Coerce # pPrlAccountId_
, _prlPageToken = Nothing
, _prlEndDateTime = pPrlEndDateTime_
, _prlMaxResults = Nothing
, _prlStartDateTime = pPrlStartDateTime_
}
prlAccountId :: Lens' PerformanceReportList' Int64
prlAccountId
= lens _prlAccountId (\ s a -> s{_prlAccountId = a})
. _Coerce
prlPageToken :: Lens' PerformanceReportList' (Maybe Text)
prlPageToken
= lens _prlPageToken (\ s a -> s{_prlPageToken = a})
prlEndDateTime :: Lens' PerformanceReportList' Text
prlEndDateTime
= lens _prlEndDateTime
(\ s a -> s{_prlEndDateTime = a})
prlMaxResults :: Lens' PerformanceReportList' (Maybe Word32)
prlMaxResults
= lens _prlMaxResults
(\ s a -> s{_prlMaxResults = a})
. mapping _Coerce
prlStartDateTime :: Lens' PerformanceReportList' Text
prlStartDateTime
= lens _prlStartDateTime
(\ s a -> s{_prlStartDateTime = a})
instance GoogleRequest PerformanceReportList' where
type Rs PerformanceReportList' =
PerformanceReportList
type Scopes PerformanceReportList' =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient PerformanceReportList''{..}
= go (Just _prlAccountId) (Just _prlEndDateTime)
(Just _prlStartDateTime)
_prlPageToken
_prlMaxResults
(Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy PerformanceReportListResource)
mempty