{-# 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.AdSenseHost.AdClients.List
(
AdClientsListResource
, adClientsList
, AdClientsList
, aclPageToken
, aclMaxResults
) where
import Network.Google.AdSenseHost.Types
import Network.Google.Prelude
type AdClientsListResource =
"adsensehost" :>
"v4.1" :>
"adclients" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] AdClients
data AdClientsList = AdClientsList'
{ _aclPageToken :: !(Maybe Text)
, _aclMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
adClientsList
:: AdClientsList
adClientsList =
AdClientsList'
{ _aclPageToken = Nothing
, _aclMaxResults = Nothing
}
aclPageToken :: Lens' AdClientsList (Maybe Text)
aclPageToken
= lens _aclPageToken (\ s a -> s{_aclPageToken = a})
aclMaxResults :: Lens' AdClientsList (Maybe Word32)
aclMaxResults
= lens _aclMaxResults
(\ s a -> s{_aclMaxResults = a})
. mapping _Coerce
instance GoogleRequest AdClientsList where
type Rs AdClientsList = AdClients
type Scopes AdClientsList =
'["https://www.googleapis.com/auth/adsensehost"]
requestClient AdClientsList'{..}
= go _aclPageToken _aclMaxResults (Just AltJSON)
adSenseHostService
where go
= buildClient (Proxy :: Proxy AdClientsListResource)
mempty