{-# 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.URLCrawlErrorsSamples.MarkAsFixed
(
URLCrawlErrorsSamplesMarkAsFixedResource
, urlCrawlErrorsSamplesMarkAsFixed
, URLCrawlErrorsSamplesMarkAsFixed
, ucesmafPlatform
, ucesmafCategory
, ucesmafSiteURL
, ucesmafURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type URLCrawlErrorsSamplesMarkAsFixedResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
"urlCrawlErrorsSamples" :>
Capture "url" Text :>
QueryParam "category"
URLCrawlErrorsSamplesMarkAsFixedCategory
:>
QueryParam "platform"
URLCrawlErrorsSamplesMarkAsFixedPlatform
:> QueryParam "alt" AltJSON :> Delete '[JSON] ()
data URLCrawlErrorsSamplesMarkAsFixed = URLCrawlErrorsSamplesMarkAsFixed'
{ _ucesmafPlatform :: !URLCrawlErrorsSamplesMarkAsFixedPlatform
, _ucesmafCategory :: !URLCrawlErrorsSamplesMarkAsFixedCategory
, _ucesmafSiteURL :: !Text
, _ucesmafURL :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
urlCrawlErrorsSamplesMarkAsFixed
:: URLCrawlErrorsSamplesMarkAsFixedPlatform
-> URLCrawlErrorsSamplesMarkAsFixedCategory
-> Text
-> Text
-> URLCrawlErrorsSamplesMarkAsFixed
urlCrawlErrorsSamplesMarkAsFixed pUcesmafPlatform_ pUcesmafCategory_ pUcesmafSiteURL_ pUcesmafURL_ =
URLCrawlErrorsSamplesMarkAsFixed'
{ _ucesmafPlatform = pUcesmafPlatform_
, _ucesmafCategory = pUcesmafCategory_
, _ucesmafSiteURL = pUcesmafSiteURL_
, _ucesmafURL = pUcesmafURL_
}
ucesmafPlatform :: Lens' URLCrawlErrorsSamplesMarkAsFixed URLCrawlErrorsSamplesMarkAsFixedPlatform
ucesmafPlatform
= lens _ucesmafPlatform
(\ s a -> s{_ucesmafPlatform = a})
ucesmafCategory :: Lens' URLCrawlErrorsSamplesMarkAsFixed URLCrawlErrorsSamplesMarkAsFixedCategory
ucesmafCategory
= lens _ucesmafCategory
(\ s a -> s{_ucesmafCategory = a})
ucesmafSiteURL :: Lens' URLCrawlErrorsSamplesMarkAsFixed Text
ucesmafSiteURL
= lens _ucesmafSiteURL
(\ s a -> s{_ucesmafSiteURL = a})
ucesmafURL :: Lens' URLCrawlErrorsSamplesMarkAsFixed Text
ucesmafURL
= lens _ucesmafURL (\ s a -> s{_ucesmafURL = a})
instance GoogleRequest
URLCrawlErrorsSamplesMarkAsFixed where
type Rs URLCrawlErrorsSamplesMarkAsFixed = ()
type Scopes URLCrawlErrorsSamplesMarkAsFixed =
'["https://www.googleapis.com/auth/webmasters"]
requestClient URLCrawlErrorsSamplesMarkAsFixed'{..}
= go _ucesmafSiteURL _ucesmafURL
(Just _ucesmafCategory)
(Just _ucesmafPlatform)
(Just AltJSON)
webmasterToolsService
where go
= buildClient
(Proxy ::
Proxy URLCrawlErrorsSamplesMarkAsFixedResource)
mempty