{-# 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.PubproFiles.List
(
PubproFilesListResource
, pubproFilesList
, PubproFilesList
, pflAccountId
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type PubproFilesListResource =
"adexchangebuyer" :>
"v1.4" :>
"publisher" :>
Capture "accountId" (Textual Int32) :>
"profiles" :>
QueryParam "alt" AltJSON :>
Get '[JSON] GetPublisherProFilesByAccountIdResponse
newtype PubproFilesList = PubproFilesList'
{ _pflAccountId :: Textual Int32
} deriving (Eq,Show,Data,Typeable,Generic)
pubproFilesList
:: Int32
-> PubproFilesList
pubproFilesList pPflAccountId_ =
PubproFilesList'
{ _pflAccountId = _Coerce # pPflAccountId_
}
pflAccountId :: Lens' PubproFilesList Int32
pflAccountId
= lens _pflAccountId (\ s a -> s{_pflAccountId = a})
. _Coerce
instance GoogleRequest PubproFilesList where
type Rs PubproFilesList =
GetPublisherProFilesByAccountIdResponse
type Scopes PubproFilesList =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient PubproFilesList'{..}
= go _pflAccountId (Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy PubproFilesListResource)
mempty