{-# 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.Lineitems.Uploadlineitems
(
LineitemsUploadlineitemsResource
, lineitemsUploadlineitems
, LineitemsUploadlineitems
, luPayload
) where
import Network.Google.DoubleClickBids.Types
import Network.Google.Prelude
type LineitemsUploadlineitemsResource =
"doubleclickbidmanager" :>
"v1" :>
"lineitems" :>
"uploadlineitems" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UploadLineItemsRequest :>
Post '[JSON] UploadLineItemsResponse
newtype LineitemsUploadlineitems = LineitemsUploadlineitems'
{ _luPayload :: UploadLineItemsRequest
} deriving (Eq,Show,Data,Typeable,Generic)
lineitemsUploadlineitems
:: UploadLineItemsRequest
-> LineitemsUploadlineitems
lineitemsUploadlineitems pLuPayload_ =
LineitemsUploadlineitems'
{ _luPayload = pLuPayload_
}
luPayload :: Lens' LineitemsUploadlineitems UploadLineItemsRequest
luPayload
= lens _luPayload (\ s a -> s{_luPayload = a})
instance GoogleRequest LineitemsUploadlineitems where
type Rs LineitemsUploadlineitems =
UploadLineItemsResponse
type Scopes LineitemsUploadlineitems =
'["https://www.googleapis.com/auth/doubleclickbidmanager"]
requestClient LineitemsUploadlineitems'{..}
= go (Just AltJSON) _luPayload doubleClickBidsService
where go
= buildClient
(Proxy :: Proxy LineitemsUploadlineitemsResource)
mempty