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