{-# 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.AdSenseHost.AdClients.Get
(
AdClientsGetResource
, adClientsGet
, AdClientsGet
, acgAdClientId
) where
import Network.Google.AdSenseHost.Types
import Network.Google.Prelude
type AdClientsGetResource =
"adsensehost" :>
"v4.1" :>
"adclients" :>
Capture "adClientId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] AdClient
newtype AdClientsGet = AdClientsGet'
{ _acgAdClientId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
adClientsGet
:: Text
-> AdClientsGet
adClientsGet pAcgAdClientId_ =
AdClientsGet'
{ _acgAdClientId = pAcgAdClientId_
}
acgAdClientId :: Lens' AdClientsGet Text
acgAdClientId
= lens _acgAdClientId
(\ s a -> s{_acgAdClientId = a})
instance GoogleRequest AdClientsGet where
type Rs AdClientsGet = AdClient
type Scopes AdClientsGet =
'["https://www.googleapis.com/auth/adsensehost"]
requestClient AdClientsGet'{..}
= go _acgAdClientId (Just AltJSON) adSenseHostService
where go
= buildClient (Proxy :: Proxy AdClientsGetResource)
mempty