{-# 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.SiteVerification.WebResource.Delete
(
WebResourceDeleteResource
, webResourceDelete
, WebResourceDelete
, wrdId
) where
import Network.Google.Prelude
import Network.Google.SiteVerification.Types
type WebResourceDeleteResource =
"siteVerification" :>
"v1" :>
"webResource" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype WebResourceDelete = WebResourceDelete'
{ _wrdId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
webResourceDelete
:: Text
-> WebResourceDelete
webResourceDelete pWrdId_ =
WebResourceDelete'
{ _wrdId = pWrdId_
}
wrdId :: Lens' WebResourceDelete Text
wrdId = lens _wrdId (\ s a -> s{_wrdId = a})
instance GoogleRequest WebResourceDelete where
type Rs WebResourceDelete = ()
type Scopes WebResourceDelete =
'["https://www.googleapis.com/auth/siteverification"]
requestClient WebResourceDelete'{..}
= go _wrdId (Just AltJSON) siteVerificationService
where go
= buildClient
(Proxy :: Proxy WebResourceDeleteResource)
mempty