{-# 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.PretargetingConfig.List
(
PretargetingConfigListResource
, pretargetingConfigList'
, PretargetingConfigList'
, pclAccountId
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type PretargetingConfigListResource =
"adexchangebuyer" :>
"v1.4" :>
"pretargetingconfigs" :>
Capture "accountId" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] PretargetingConfigList
newtype PretargetingConfigList' = PretargetingConfigList''
{ _pclAccountId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
pretargetingConfigList'
:: Int64
-> PretargetingConfigList'
pretargetingConfigList' pPclAccountId_ =
PretargetingConfigList''
{ _pclAccountId = _Coerce # pPclAccountId_
}
pclAccountId :: Lens' PretargetingConfigList' Int64
pclAccountId
= lens _pclAccountId (\ s a -> s{_pclAccountId = a})
. _Coerce
instance GoogleRequest PretargetingConfigList' where
type Rs PretargetingConfigList' =
PretargetingConfigList
type Scopes PretargetingConfigList' =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient PretargetingConfigList''{..}
= go _pclAccountId (Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy PretargetingConfigListResource)
mempty