{-# 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.Sites.Delete
(
SitesDeleteResource
, sitesDelete
, SitesDelete
, sSiteURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type SitesDeleteResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype SitesDelete = SitesDelete'
{ _sSiteURL :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
sitesDelete
:: Text
-> SitesDelete
sitesDelete pSSiteURL_ =
SitesDelete'
{ _sSiteURL = pSSiteURL_
}
sSiteURL :: Lens' SitesDelete Text
sSiteURL = lens _sSiteURL (\ s a -> s{_sSiteURL = a})
instance GoogleRequest SitesDelete where
type Rs SitesDelete = ()
type Scopes SitesDelete =
'["https://www.googleapis.com/auth/webmasters"]
requestClient SitesDelete'{..}
= go _sSiteURL (Just AltJSON) webmasterToolsService
where go
= buildClient (Proxy :: Proxy SitesDeleteResource)
mempty