{-# 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
-- | Retrieves entities in SDF format.
--
-- /See:/ 'sdfDownload' smart constructor.
newtype SdfDownload = SdfDownload'
{ _sdPayload :: DownloadRequest
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'SdfDownload' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sdPayload'
sdfDownload
:: DownloadRequest -- ^ 'sdPayload'
-> SdfDownload
sdfDownload pSdPayload_ =
SdfDownload'
{ _sdPayload = pSdPayload_
}
-- | Multipart request metadata.
sdPayload :: Lens' SdfDownload DownloadRequest
sdPayload
= lens _sdPayload (\ s a -> s{_sdPayload = a})
instance GoogleRequest SdfDownload where
type Rs SdfDownload = DownloadResponse
type Scopes SdfDownload = '[]
requestClient SdfDownload'{..}
= go (Just AltJSON) _sdPayload doubleClickBidsService
where go
= buildClient (Proxy :: Proxy SdfDownloadResource)
mempty