{-# 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.Style.Delete
(
StyleDeleteResource
, styleDelete
, StyleDelete
, sdStyleId
, sdTableId
) where
import Network.Google.FusionTables.Types
import Network.Google.Prelude
type StyleDeleteResource =
"fusiontables" :>
"v2" :>
"tables" :>
Capture "tableId" Text :>
"styles" :>
Capture "styleId" (Textual Int32) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data StyleDelete = StyleDelete'
{ _sdStyleId :: !(Textual Int32)
, _sdTableId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
styleDelete
:: Int32
-> Text
-> StyleDelete
styleDelete pSdStyleId_ pSdTableId_ =
StyleDelete'
{ _sdStyleId = _Coerce # pSdStyleId_
, _sdTableId = pSdTableId_
}
sdStyleId :: Lens' StyleDelete Int32
sdStyleId
= lens _sdStyleId (\ s a -> s{_sdStyleId = a}) .
_Coerce
sdTableId :: Lens' StyleDelete Text
sdTableId
= lens _sdTableId (\ s a -> s{_sdTableId = a})
instance GoogleRequest StyleDelete where
type Rs StyleDelete = ()
type Scopes StyleDelete =
'["https://www.googleapis.com/auth/fusiontables"]
requestClient StyleDelete'{..}
= go _sdTableId _sdStyleId (Just AltJSON)
fusionTablesService
where go
= buildClient (Proxy :: Proxy StyleDeleteResource)
mempty