{-# 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.Get
(
URLCrawlErrorsSamplesGetResource
, urlCrawlErrorsSamplesGet
, URLCrawlErrorsSamplesGet
, ucesgPlatform
, ucesgCategory
, ucesgSiteURL
, ucesgURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type URLCrawlErrorsSamplesGetResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
"urlCrawlErrorsSamples" :>
Capture "url" Text :>
QueryParam "category"
URLCrawlErrorsSamplesGetCategory
:>
QueryParam "platform"
URLCrawlErrorsSamplesGetPlatform
:>
QueryParam "alt" AltJSON :>
Get '[JSON] URLCrawlErrorsSample
data URLCrawlErrorsSamplesGet = URLCrawlErrorsSamplesGet'
{ _ucesgPlatform :: !URLCrawlErrorsSamplesGetPlatform
, _ucesgCategory :: !URLCrawlErrorsSamplesGetCategory
, _ucesgSiteURL :: !Text
, _ucesgURL :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
urlCrawlErrorsSamplesGet
:: URLCrawlErrorsSamplesGetPlatform
-> URLCrawlErrorsSamplesGetCategory
-> Text
-> Text
-> URLCrawlErrorsSamplesGet
urlCrawlErrorsSamplesGet pUcesgPlatform_ pUcesgCategory_ pUcesgSiteURL_ pUcesgURL_ =
URLCrawlErrorsSamplesGet'
{ _ucesgPlatform = pUcesgPlatform_
, _ucesgCategory = pUcesgCategory_
, _ucesgSiteURL = pUcesgSiteURL_
, _ucesgURL = pUcesgURL_
}
ucesgPlatform :: Lens' URLCrawlErrorsSamplesGet URLCrawlErrorsSamplesGetPlatform
ucesgPlatform
= lens _ucesgPlatform
(\ s a -> s{_ucesgPlatform = a})
ucesgCategory :: Lens' URLCrawlErrorsSamplesGet URLCrawlErrorsSamplesGetCategory
ucesgCategory
= lens _ucesgCategory
(\ s a -> s{_ucesgCategory = a})
ucesgSiteURL :: Lens' URLCrawlErrorsSamplesGet Text
ucesgSiteURL
= lens _ucesgSiteURL (\ s a -> s{_ucesgSiteURL = a})
ucesgURL :: Lens' URLCrawlErrorsSamplesGet Text
ucesgURL = lens _ucesgURL (\ s a -> s{_ucesgURL = a})
instance GoogleRequest URLCrawlErrorsSamplesGet where
type Rs URLCrawlErrorsSamplesGet =
URLCrawlErrorsSample
type Scopes URLCrawlErrorsSamplesGet =
'["https://www.googleapis.com/auth/webmasters",
"https://www.googleapis.com/auth/webmasters.readonly"]
requestClient URLCrawlErrorsSamplesGet'{..}
= go _ucesgSiteURL _ucesgURL (Just _ucesgCategory)
(Just _ucesgPlatform)
(Just AltJSON)
webmasterToolsService
where go
= buildClient
(Proxy :: Proxy URLCrawlErrorsSamplesGetResource)
mempty