{-# 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.DFAReporting.AccountActiveAdSummaries.Get
(
AccountActiveAdSummariesGetResource
, accountActiveAdSummariesGet
, AccountActiveAdSummariesGet
, aaasgProFileId
, aaasgSummaryAccountId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AccountActiveAdSummariesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"accountActiveAdSummaries" :>
Capture "summaryAccountId" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] AccountActiveAdSummary
data AccountActiveAdSummariesGet = AccountActiveAdSummariesGet'
{ _aaasgProFileId :: !(Textual Int64)
, _aaasgSummaryAccountId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
accountActiveAdSummariesGet
:: Int64
-> Int64
-> AccountActiveAdSummariesGet
accountActiveAdSummariesGet pAaasgProFileId_ pAaasgSummaryAccountId_ =
AccountActiveAdSummariesGet'
{ _aaasgProFileId = _Coerce # pAaasgProFileId_
, _aaasgSummaryAccountId = _Coerce # pAaasgSummaryAccountId_
}
aaasgProFileId :: Lens' AccountActiveAdSummariesGet Int64
aaasgProFileId
= lens _aaasgProFileId
(\ s a -> s{_aaasgProFileId = a})
. _Coerce
aaasgSummaryAccountId :: Lens' AccountActiveAdSummariesGet Int64
aaasgSummaryAccountId
= lens _aaasgSummaryAccountId
(\ s a -> s{_aaasgSummaryAccountId = a})
. _Coerce
instance GoogleRequest AccountActiveAdSummariesGet
where
type Rs AccountActiveAdSummariesGet =
AccountActiveAdSummary
type Scopes AccountActiveAdSummariesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AccountActiveAdSummariesGet'{..}
= go _aaasgProFileId _aaasgSummaryAccountId
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy AccountActiveAdSummariesGetResource)
mempty