{-# 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.AdExchangeBuyer.Marketplaceprivateauction.Updateproposal
(
MarketplaceprivateauctionUpdateproposalResource
, marketplaceprivateauctionUpdateproposal
, MarketplaceprivateauctionUpdateproposal
, muPrivateAuctionId
, muPayload
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type MarketplaceprivateauctionUpdateproposalResource
=
"adexchangebuyer" :>
"v1.4" :>
"privateauction" :>
Capture "privateAuctionId" Text :>
"updateproposal" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdatePrivateAuctionProposalRequest
:> Post '[JSON] ()
data MarketplaceprivateauctionUpdateproposal = MarketplaceprivateauctionUpdateproposal'
{ _muPrivateAuctionId :: !Text
, _muPayload :: !UpdatePrivateAuctionProposalRequest
} deriving (Eq,Show,Data,Typeable,Generic)
marketplaceprivateauctionUpdateproposal
:: Text
-> UpdatePrivateAuctionProposalRequest
-> MarketplaceprivateauctionUpdateproposal
marketplaceprivateauctionUpdateproposal pMuPrivateAuctionId_ pMuPayload_ =
MarketplaceprivateauctionUpdateproposal'
{ _muPrivateAuctionId = pMuPrivateAuctionId_
, _muPayload = pMuPayload_
}
muPrivateAuctionId :: Lens' MarketplaceprivateauctionUpdateproposal Text
muPrivateAuctionId
= lens _muPrivateAuctionId
(\ s a -> s{_muPrivateAuctionId = a})
muPayload :: Lens' MarketplaceprivateauctionUpdateproposal UpdatePrivateAuctionProposalRequest
muPayload
= lens _muPayload (\ s a -> s{_muPayload = a})
instance GoogleRequest
MarketplaceprivateauctionUpdateproposal where
type Rs MarketplaceprivateauctionUpdateproposal = ()
type Scopes MarketplaceprivateauctionUpdateproposal =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient
MarketplaceprivateauctionUpdateproposal'{..}
= go _muPrivateAuctionId (Just AltJSON) _muPayload
adExchangeBuyerService
where go
= buildClient
(Proxy ::
Proxy
MarketplaceprivateauctionUpdateproposalResource)
mempty