{-# 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.Get
(
TableGetResource
, tableGet
, TableGet
, tgTableId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TableGetResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Table
newtype TableGet = TableGet'
{ _tgTableId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
tableGet
:: Text
-> TableGet
tableGet pTgTableId_ =
TableGet'
{ _tgTableId = pTgTableId_
}
tgTableId :: Lens' TableGet Text
tgTableId
= lens _tgTableId (\ s a -> s{_tgTableId = a})
instance GoogleRequest TableGet where
type Rs TableGet = Table
type Scopes TableGet =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient TableGet'{..}
= go _tgTableId (Just AltJSON) fusionTablesService
where go
= buildClient (Proxy :: Proxy TableGetResource)
mempty