{-# 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.Table.List
(
TableListResource
, tableList'
, TableList'
, tPageToken
, tMaxResults
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TableListResource =
"fusiontables" :>
"v2" :>
"tables" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] TableList
data TableList' = TableList''
{ _tPageToken :: !(Maybe Text)
, _tMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
tableList'
:: TableList'
tableList' =
TableList''
{ _tPageToken = Nothing
, _tMaxResults = Nothing
}
tPageToken :: Lens' TableList' (Maybe Text)
tPageToken
= lens _tPageToken (\ s a -> s{_tPageToken = a})
tMaxResults :: Lens' TableList' (Maybe Word32)
tMaxResults
= lens _tMaxResults (\ s a -> s{_tMaxResults = a}) .
mapping _Coerce
instance GoogleRequest TableList' where
type Rs TableList' = TableList
type Scopes TableList' =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient TableList''{..}
= go _tPageToken _tMaxResults (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy TableListResource)
mempty