{-# 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.Column.Get
(
ColumnGetResource
, columnGet
, ColumnGet
, cgTableId
, cgColumnId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type ColumnGetResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"columns" :>
Capture "columnId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Column
data ColumnGet = ColumnGet'
{ _cgTableId :: !Text
, _cgColumnId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
columnGet
:: Text
-> Text
-> ColumnGet
columnGet pCgTableId_ pCgColumnId_ =
ColumnGet'
{ _cgTableId = pCgTableId_
, _cgColumnId = pCgColumnId_
}
cgTableId :: Lens' ColumnGet Text
cgTableId
= lens _cgTableId (\ s a -> s{_cgTableId = a})
cgColumnId :: Lens' ColumnGet Text
cgColumnId
= lens _cgColumnId (\ s a -> s{_cgColumnId = a})
instance GoogleRequest ColumnGet where
type Rs ColumnGet = Column
type Scopes ColumnGet =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient ColumnGet'{..}
= go _cgTableId _cgColumnId (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy ColumnGetResource)
mempty