{-# 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.Proposals.Setupcomplete
(
ProposalsSetupcompleteResource
, proposalsSetupcomplete
, ProposalsSetupcomplete
, psProposalId
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type ProposalsSetupcompleteResource =
"adexchangebuyer" :>
"v1.4" :>
"proposals" :>
Capture "proposalId" Text :>
"setupcomplete" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype ProposalsSetupcomplete = ProposalsSetupcomplete'
{ _psProposalId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
proposalsSetupcomplete
:: Text
-> ProposalsSetupcomplete
proposalsSetupcomplete pPsProposalId_ =
ProposalsSetupcomplete'
{ _psProposalId = pPsProposalId_
}
psProposalId :: Lens' ProposalsSetupcomplete Text
psProposalId
= lens _psProposalId (\ s a -> s{_psProposalId = a})
instance GoogleRequest ProposalsSetupcomplete where
type Rs ProposalsSetupcomplete = ()
type Scopes ProposalsSetupcomplete =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient ProposalsSetupcomplete'{..}
= go _psProposalId (Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy ProposalsSetupcompleteResource)
mempty