{-# 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.MarketplaceNotes.List
(
MarketplaceNotesListResource
, marketplaceNotesList
, MarketplaceNotesList
, mnlProposalId
, mnlPqlQuery
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type MarketplaceNotesListResource =
"adexchangebuyer" :>
"v1.4" :>
"proposals" :>
Capture "proposalId" Text :>
"notes" :>
QueryParam "pqlQuery" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GetOrderNotesResponse
data MarketplaceNotesList = MarketplaceNotesList'
{ _mnlProposalId :: !Text
, _mnlPqlQuery :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
marketplaceNotesList
:: Text
-> MarketplaceNotesList
marketplaceNotesList pMnlProposalId_ =
MarketplaceNotesList'
{ _mnlProposalId = pMnlProposalId_
, _mnlPqlQuery = Nothing
}
mnlProposalId :: Lens' MarketplaceNotesList Text
mnlProposalId
= lens _mnlProposalId
(\ s a -> s{_mnlProposalId = a})
mnlPqlQuery :: Lens' MarketplaceNotesList (Maybe Text)
mnlPqlQuery
= lens _mnlPqlQuery (\ s a -> s{_mnlPqlQuery = a})
instance GoogleRequest MarketplaceNotesList where
type Rs MarketplaceNotesList = GetOrderNotesResponse
type Scopes MarketplaceNotesList =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient MarketplaceNotesList'{..}
= go _mnlProposalId _mnlPqlQuery (Just AltJSON)
adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy MarketplaceNotesListResource)
mempty