{-# 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.Webmasters.Sitemaps.Delete
(
SitemapsDeleteResource
, sitemapsDelete
, SitemapsDelete
, sdFeedpath
, sdSiteURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type SitemapsDeleteResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
"sitemaps" :>
Capture "feedpath" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data SitemapsDelete = SitemapsDelete'
{ _sdFeedpath :: !Text
, _sdSiteURL :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sitemapsDelete
:: Text
-> Text
-> SitemapsDelete
sitemapsDelete pSdFeedpath_ pSdSiteURL_ =
SitemapsDelete'
{ _sdFeedpath = pSdFeedpath_
, _sdSiteURL = pSdSiteURL_
}
sdFeedpath :: Lens' SitemapsDelete Text
sdFeedpath
= lens _sdFeedpath (\ s a -> s{_sdFeedpath = a})
sdSiteURL :: Lens' SitemapsDelete Text
sdSiteURL
= lens _sdSiteURL (\ s a -> s{_sdSiteURL = a})
instance GoogleRequest SitemapsDelete where
type Rs SitemapsDelete = ()
type Scopes SitemapsDelete =
'["https://www.googleapis.com/auth/webmasters"]
requestClient SitemapsDelete'{..}
= go _sdSiteURL _sdFeedpath (Just AltJSON)
webmasterToolsService
where go
= buildClient (Proxy :: Proxy SitemapsDeleteResource)
mempty