{-# 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.AdSense.Savedadstyles.Get
(
SavedadstylesGetResource
, savedadstylesGet
, SavedadstylesGet
, sgSavedAdStyleId
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type SavedadstylesGetResource =
"adsense" :>
"v1.4" :>
"savedadstyles" :>
Capture "savedAdStyleId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] SavedAdStyle
newtype SavedadstylesGet = SavedadstylesGet'
{ _sgSavedAdStyleId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
savedadstylesGet
:: Text
-> SavedadstylesGet
savedadstylesGet pSgSavedAdStyleId_ =
SavedadstylesGet'
{ _sgSavedAdStyleId = pSgSavedAdStyleId_
}
sgSavedAdStyleId :: Lens' SavedadstylesGet Text
sgSavedAdStyleId
= lens _sgSavedAdStyleId
(\ s a -> s{_sgSavedAdStyleId = a})
instance GoogleRequest SavedadstylesGet where
type Rs SavedadstylesGet = SavedAdStyle
type Scopes SavedadstylesGet =
'["https://www.googleapis.com/auth/adsense",
"https://www.googleapis.com/auth/adsense.readonly"]
requestClient SavedadstylesGet'{..}
= go _sgSavedAdStyleId (Just AltJSON) adSenseService
where go
= buildClient
(Proxy :: Proxy SavedadstylesGetResource)
mempty