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