{-# 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.Delete
(
ColumnDeleteResource
, columnDelete
, ColumnDelete
, cdTableId
, cdColumnId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type ColumnDeleteResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"columns" :>
Capture "columnId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ColumnDelete = ColumnDelete'
{ _cdTableId :: !Text
, _cdColumnId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
columnDelete
:: Text
-> Text
-> ColumnDelete
columnDelete pCdTableId_ pCdColumnId_ =
ColumnDelete'
{ _cdTableId = pCdTableId_
, _cdColumnId = pCdColumnId_
}
cdTableId :: Lens' ColumnDelete Text
cdTableId
= lens _cdTableId (\ s a -> s{_cdTableId = a})
cdColumnId :: Lens' ColumnDelete Text
cdColumnId
= lens _cdColumnId (\ s a -> s{_cdColumnId = a})
instance GoogleRequest ColumnDelete where
type Rs ColumnDelete = ()
type Scopes ColumnDelete =
'["https://www.googleapis.com/auth/fusiontables"]
requestClient ColumnDelete'{..}
= go _cdTableId _cdColumnId (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy ColumnDeleteResource)
mempty