{-# 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.List
(
URLCrawlErrorsSamplesListResource
, urlCrawlErrorsSamplesList
, URLCrawlErrorsSamplesList
, uceslPlatform
, uceslCategory
, uceslSiteURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type URLCrawlErrorsSamplesListResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
"urlCrawlErrorsSamples" :>
QueryParam "category"
URLCrawlErrorsSamplesListCategory
:>
QueryParam "platform"
URLCrawlErrorsSamplesListPlatform
:>
QueryParam "alt" AltJSON :>
Get '[JSON] URLCrawlErrorsSamplesListResponse
data URLCrawlErrorsSamplesList = URLCrawlErrorsSamplesList'
{ _uceslPlatform :: !URLCrawlErrorsSamplesListPlatform
, _uceslCategory :: !URLCrawlErrorsSamplesListCategory
, _uceslSiteURL :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
urlCrawlErrorsSamplesList
:: URLCrawlErrorsSamplesListPlatform
-> URLCrawlErrorsSamplesListCategory
-> Text
-> URLCrawlErrorsSamplesList
urlCrawlErrorsSamplesList pUceslPlatform_ pUceslCategory_ pUceslSiteURL_ =
URLCrawlErrorsSamplesList'
{ _uceslPlatform = pUceslPlatform_
, _uceslCategory = pUceslCategory_
, _uceslSiteURL = pUceslSiteURL_
}
uceslPlatform :: Lens' URLCrawlErrorsSamplesList URLCrawlErrorsSamplesListPlatform
uceslPlatform
= lens _uceslPlatform
(\ s a -> s{_uceslPlatform = a})
uceslCategory :: Lens' URLCrawlErrorsSamplesList URLCrawlErrorsSamplesListCategory
uceslCategory
= lens _uceslCategory
(\ s a -> s{_uceslCategory = a})
uceslSiteURL :: Lens' URLCrawlErrorsSamplesList Text
uceslSiteURL
= lens _uceslSiteURL (\ s a -> s{_uceslSiteURL = a})
instance GoogleRequest URLCrawlErrorsSamplesList
where
type Rs URLCrawlErrorsSamplesList =
URLCrawlErrorsSamplesListResponse
type Scopes URLCrawlErrorsSamplesList =
'["https://www.googleapis.com/auth/webmasters",
"https://www.googleapis.com/auth/webmasters.readonly"]
requestClient URLCrawlErrorsSamplesList'{..}
= go _uceslSiteURL (Just _uceslCategory)
(Just _uceslPlatform)
(Just AltJSON)
webmasterToolsService
where go
= buildClient
(Proxy :: Proxy URLCrawlErrorsSamplesListResource)
mempty