{-# 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.AdExchangeSeller.Accounts.URLChannels.List
(
AccountsURLChannelsListResource
, accountsURLChannelsList
, AccountsURLChannelsList
, auclAdClientId
, auclAccountId
, auclPageToken
, auclMaxResults
) where
import Network.Google.AdExchangeSeller.Types
import Network.Google.Prelude
type AccountsURLChannelsListResource =
"adexchangeseller" :>
"v2.0" :>
"accounts" :>
Capture "accountId" Text :>
"adclients" :>
Capture "adClientId" Text :>
"urlchannels" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] URLChannels
data AccountsURLChannelsList = AccountsURLChannelsList'
{ _auclAdClientId :: !Text
, _auclAccountId :: !Text
, _auclPageToken :: !(Maybe Text)
, _auclMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
accountsURLChannelsList
:: Text
-> Text
-> AccountsURLChannelsList
accountsURLChannelsList pAuclAdClientId_ pAuclAccountId_ =
AccountsURLChannelsList'
{ _auclAdClientId = pAuclAdClientId_
, _auclAccountId = pAuclAccountId_
, _auclPageToken = Nothing
, _auclMaxResults = Nothing
}
auclAdClientId :: Lens' AccountsURLChannelsList Text
auclAdClientId
= lens _auclAdClientId
(\ s a -> s{_auclAdClientId = a})
auclAccountId :: Lens' AccountsURLChannelsList Text
auclAccountId
= lens _auclAccountId
(\ s a -> s{_auclAccountId = a})
auclPageToken :: Lens' AccountsURLChannelsList (Maybe Text)
auclPageToken
= lens _auclPageToken
(\ s a -> s{_auclPageToken = a})
auclMaxResults :: Lens' AccountsURLChannelsList (Maybe Word32)
auclMaxResults
= lens _auclMaxResults
(\ s a -> s{_auclMaxResults = a})
. mapping _Coerce
instance GoogleRequest AccountsURLChannelsList where
type Rs AccountsURLChannelsList = URLChannels
type Scopes AccountsURLChannelsList =
'["https://www.googleapis.com/auth/adexchange.seller",
"https://www.googleapis.com/auth/adexchange.seller.readonly"]
requestClient AccountsURLChannelsList'{..}
= go _auclAccountId _auclAdClientId _auclPageToken
_auclMaxResults
(Just AltJSON)
adExchangeSellerService
where go
= buildClient
(Proxy :: Proxy AccountsURLChannelsListResource)
mempty