{-# 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] ()
-- | Removes a site from the set of the user\'s Search Console sites.
--
-- /See:/ 'sitesDelete' smart constructor.
newtype SitesDelete = SitesDelete'
{ _sSiteURL :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'SitesDelete' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sSiteURL'
sitesDelete
:: Text -- ^ 'sSiteURL'
-> SitesDelete
sitesDelete pSSiteURL_ =
SitesDelete'
{ _sSiteURL = pSSiteURL_
}
-- | The URI of the property as defined in Search Console. Examples:
-- http:\/\/www.example.com\/ or android-app:\/\/com.example\/
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