{-# 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.Template.Delete
(
TemplateDeleteResource
, templateDelete
, TemplateDelete
, tTemplateId
, tTableId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type TemplateDeleteResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"templates" :>
Capture "templateId" (Textual Int32) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data TemplateDelete = TemplateDelete'
{ _tTemplateId :: !(Textual Int32)
, _tTableId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
templateDelete
:: Int32
-> Text
-> TemplateDelete
templateDelete pTTemplateId_ pTTableId_ =
TemplateDelete'
{ _tTemplateId = _Coerce # pTTemplateId_
, _tTableId = pTTableId_
}
tTemplateId :: Lens' TemplateDelete Int32
tTemplateId
= lens _tTemplateId (\ s a -> s{_tTemplateId = a}) .
_Coerce
tTableId :: Lens' TemplateDelete Text
tTableId = lens _tTableId (\ s a -> s{_tTableId = a})
instance GoogleRequest TemplateDelete where
type Rs TemplateDelete = ()
type Scopes TemplateDelete =
'["https://www.googleapis.com/auth/fusiontables"]
requestClient TemplateDelete'{..}
= go _tTableId _tTemplateId (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy TemplateDeleteResource)
mempty