{-# 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.DoubleClickBidManager.Sdf.Download
(
SdfDownloadResource
, sdfDownload
, SdfDownload
, sdPayload
) where
import Network.Google.DoubleClickBids.Types
import Network.Google.Prelude
type SdfDownloadResource =
"doubleclickbidmanager" :>
"v1" :>
"sdf" :>
"download" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] DownloadRequest :>
Post '[JSON] DownloadResponse
newtype SdfDownload = SdfDownload'
{ _sdPayload :: DownloadRequest
} deriving (Eq,Show,Data,Typeable,Generic)
sdfDownload
:: DownloadRequest
-> SdfDownload
sdfDownload pSdPayload_ =
SdfDownload'
{ _sdPayload = pSdPayload_
}
sdPayload :: Lens' SdfDownload DownloadRequest
sdPayload
= lens _sdPayload (\ s a -> s{_sdPayload = a})
instance GoogleRequest SdfDownload where
type Rs SdfDownload = DownloadResponse
type Scopes SdfDownload =
'["https://www.googleapis.com/auth/doubleclickbidmanager"]
requestClient SdfDownload'{..}
= go (Just AltJSON) _sdPayload doubleClickBidsService
where go
= buildClient (Proxy :: Proxy SdfDownloadResource)
mempty