{-# 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.Savedadstyles.List
(
SavedadstylesListResource
, savedadstylesList
, SavedadstylesList
, slPageToken
, slMaxResults
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type SavedadstylesListResource =
"adsense" :>
"v1.4" :>
"savedadstyles" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] SavedAdStyles
data SavedadstylesList = SavedadstylesList'
{ _slPageToken :: !(Maybe Text)
, _slMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
savedadstylesList
:: SavedadstylesList
savedadstylesList =
SavedadstylesList'
{ _slPageToken = Nothing
, _slMaxResults = Nothing
}
slPageToken :: Lens' SavedadstylesList (Maybe Text)
slPageToken
= lens _slPageToken (\ s a -> s{_slPageToken = a})
slMaxResults :: Lens' SavedadstylesList (Maybe Int32)
slMaxResults
= lens _slMaxResults (\ s a -> s{_slMaxResults = a})
. mapping _Coerce
instance GoogleRequest SavedadstylesList where
type Rs SavedadstylesList = SavedAdStyles
type Scopes SavedadstylesList =
'["https://www.googleapis.com/auth/adsense",
"https://www.googleapis.com/auth/adsense.readonly"]
requestClient SavedadstylesList'{..}
= go _slPageToken _slMaxResults (Just AltJSON)
adSenseService
where go
= buildClient
(Proxy :: Proxy SavedadstylesListResource)
mempty