{-# 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.Template.List
(
TemplateListResource
, templateList'
, TemplateList'
, tllPageToken
, tllTableId
, tllMaxResults
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TemplateListResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"templates" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] TemplateList
data TemplateList' = TemplateList''
{ _tllPageToken :: !(Maybe Text)
, _tllTableId :: !Text
, _tllMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
templateList'
:: Text
-> TemplateList'
templateList' pTllTableId_ =
TemplateList''
{ _tllPageToken = Nothing
, _tllTableId = pTllTableId_
, _tllMaxResults = Nothing
}
tllPageToken :: Lens' TemplateList' (Maybe Text)
tllPageToken
= lens _tllPageToken (\ s a -> s{_tllPageToken = a})
tllTableId :: Lens' TemplateList' Text
tllTableId
= lens _tllTableId (\ s a -> s{_tllTableId = a})
tllMaxResults :: Lens' TemplateList' (Maybe Word32)
tllMaxResults
= lens _tllMaxResults
(\ s a -> s{_tllMaxResults = a})
. mapping _Coerce
instance GoogleRequest TemplateList' where
type Rs TemplateList' = TemplateList
type Scopes TemplateList' =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient TemplateList''{..}
= go _tllTableId _tllPageToken _tllMaxResults
(Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy TemplateListResource)
mempty