{-# 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.Add
(
SitesAddResource
, sitesAdd
, SitesAdd
, saSiteURL
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type SitesAddResource =
"webmasters" :>
"v3" :>
"sites" :>
Capture "siteUrl" Text :>
QueryParam "alt" AltJSON :> Put '[JSON] ()
newtype SitesAdd = SitesAdd'
{ _saSiteURL :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
sitesAdd
:: Text
-> SitesAdd
sitesAdd pSaSiteURL_ =
SitesAdd'
{ _saSiteURL = pSaSiteURL_
}
saSiteURL :: Lens' SitesAdd Text
saSiteURL
= lens _saSiteURL (\ s a -> s{_saSiteURL = a})
instance GoogleRequest SitesAdd where
type Rs SitesAdd = ()
type Scopes SitesAdd =
'["https://www.googleapis.com/auth/webmasters"]
requestClient SitesAdd'{..}
= go _saSiteURL (Just AltJSON) webmasterToolsService
where go
= buildClient (Proxy :: Proxy SitesAddResource)
mempty