{-# 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.AdSense.Accounts.URLChannels.List
(
AccountsURLChannelsListResource
, accountsURLChannelsList
, AccountsURLChannelsList
, auclAdClientId
, auclAccountId
, auclPageToken
, auclMaxResults
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type AccountsURLChannelsListResource =
"adsense" :>
"v1.4" :>
"accounts" :>
Capture "accountId" Text :>
"adclients" :>
Capture "adClientId" Text :>
"urlchannels" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] URLChannels
data AccountsURLChannelsList = AccountsURLChannelsList'
{ _auclAdClientId :: !Text
, _auclAccountId :: !Text
, _auclPageToken :: !(Maybe Text)
, _auclMaxResults :: !(Maybe (Textual Int32))
} 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 Int32)
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/adsense",
"https://www.googleapis.com/auth/adsense.readonly"]
requestClient AccountsURLChannelsList'{..}
= go _auclAccountId _auclAdClientId _auclPageToken
_auclMaxResults
(Just AltJSON)
adSenseService
where go
= buildClient
(Proxy :: Proxy AccountsURLChannelsListResource)
mempty