{-# 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.Task.Delete
(
TaskDeleteResource
, taskDelete
, TaskDelete
, tdTaskId
, tdTableId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TaskDeleteResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"tasks" :>
Capture "taskId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data TaskDelete = TaskDelete'
{ _tdTaskId :: !Text
, _tdTableId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
taskDelete
:: Text
-> Text
-> TaskDelete
taskDelete pTdTaskId_ pTdTableId_ =
TaskDelete'
{ _tdTaskId = pTdTaskId_
, _tdTableId = pTdTableId_
}
tdTaskId :: Lens' TaskDelete Text
tdTaskId = lens _tdTaskId (\ s a -> s{_tdTaskId = a})
tdTableId :: Lens' TaskDelete Text
tdTableId
= lens _tdTableId (\ s a -> s{_tdTableId = a})
instance GoogleRequest TaskDelete where
type Rs TaskDelete = ()
type Scopes TaskDelete =
'["https://www.googleapis.com/auth/fusiontables"]
requestClient TaskDelete'{..}
= go _tdTableId _tdTaskId (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy TaskDeleteResource)
mempty