{-# 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.FusionTables.Style.List
(
StyleListResource
, styleList
, StyleList
, slPageToken
, slTableId
, slMaxResults
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type StyleListResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"styles" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] StyleSettingList
data StyleList = StyleList'
{ _slPageToken :: !(Maybe Text)
, _slTableId :: !Text
, _slMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
styleList
:: Text
-> StyleList
styleList pSlTableId_ =
StyleList'
{ _slPageToken = Nothing
, _slTableId = pSlTableId_
, _slMaxResults = Nothing
}
slPageToken :: Lens' StyleList (Maybe Text)
slPageToken
= lens _slPageToken (\ s a -> s{_slPageToken = a})
slTableId :: Lens' StyleList Text
slTableId
= lens _slTableId (\ s a -> s{_slTableId = a})
slMaxResults :: Lens' StyleList (Maybe Word32)
slMaxResults
= lens _slMaxResults (\ s a -> s{_slMaxResults = a})
. mapping _Coerce
instance GoogleRequest StyleList where
type Rs StyleList = StyleSettingList
type Scopes StyleList =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient StyleList'{..}
= go _slTableId _slPageToken _slMaxResults
(Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy StyleListResource)
mempty