{-# 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.RefetchSheet
(
TableRefetchSheetResource
, tableRefetchSheet
, TableRefetchSheet
, trsTableId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TableRefetchSheetResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"refetch" :>
QueryParam "alt" AltJSON :> Post '[JSON] Task
newtype TableRefetchSheet = TableRefetchSheet'
{ _trsTableId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
tableRefetchSheet
:: Text
-> TableRefetchSheet
tableRefetchSheet pTrsTableId_ =
TableRefetchSheet'
{ _trsTableId = pTrsTableId_
}
trsTableId :: Lens' TableRefetchSheet Text
trsTableId
= lens _trsTableId (\ s a -> s{_trsTableId = a})
instance GoogleRequest TableRefetchSheet where
type Rs TableRefetchSheet = Task
type Scopes TableRefetchSheet =
'["https://www.googleapis.com/auth/fusiontables"]
requestClient TableRefetchSheet'{..}
= go _trsTableId (Just AltJSON) fusionTablesService
where go
= buildClient
(Proxy :: Proxy TableRefetchSheetResource)
mempty