{-# 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.Search
(
ProposalsSearchResource
, proposalsSearch
, ProposalsSearch
, pPqlQuery
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type ProposalsSearchResource =
"adexchangebuyer" :>
"v1.4" :>
"proposals" :>
"search" :>
QueryParam "pqlQuery" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GetOrdersResponse
newtype ProposalsSearch = ProposalsSearch'
{ _pPqlQuery :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
proposalsSearch
:: ProposalsSearch
proposalsSearch =
ProposalsSearch'
{ _pPqlQuery = Nothing
}
pPqlQuery :: Lens' ProposalsSearch (Maybe Text)
pPqlQuery
= lens _pPqlQuery (\ s a -> s{_pPqlQuery = a})
instance GoogleRequest ProposalsSearch where
type Rs ProposalsSearch = GetOrdersResponse
type Scopes ProposalsSearch =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient ProposalsSearch'{..}
= go _pPqlQuery (Just AltJSON) adExchangeBuyerService
where go
= buildClient
(Proxy :: Proxy ProposalsSearchResource)
mempty