{-# 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.List
(
ColumnListResource
, columnList'
, ColumnList'
, clPageToken
, clTableId
, clMaxResults
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type ColumnListResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"columns" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] ColumnList
data ColumnList' = ColumnList''
{ _clPageToken :: !(Maybe Text)
, _clTableId :: !Text
, _clMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
columnList'
:: Text
-> ColumnList'
columnList' pClTableId_ =
ColumnList''
{ _clPageToken = Nothing
, _clTableId = pClTableId_
, _clMaxResults = Nothing
}
clPageToken :: Lens' ColumnList' (Maybe Text)
clPageToken
= lens _clPageToken (\ s a -> s{_clPageToken = a})
clTableId :: Lens' ColumnList' Text
clTableId
= lens _clTableId (\ s a -> s{_clTableId = a})
clMaxResults :: Lens' ColumnList' (Maybe Word32)
clMaxResults
= lens _clMaxResults (\ s a -> s{_clMaxResults = a})
. mapping _Coerce
instance GoogleRequest ColumnList' where
type Rs ColumnList' = ColumnList
type Scopes ColumnList' =
'["https://www.googleapis.com/auth/fusiontables",
"https://www.googleapis.com/auth/fusiontables.readonly"]
requestClient ColumnList''{..}
= go _clTableId _clPageToken _clMaxResults
(Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy ColumnListResource)
mempty