{-# 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.DoubleClickSearch.SavedColumns.List
(
SavedColumnsListResource
, savedColumnsList
, SavedColumnsList
, sclAgencyId
, sclAdvertiserId
) where
import Network.Google.DoubleClickSearch.Types
import Network.Google.Prelude
type SavedColumnsListResource =
"doubleclicksearch" :>
"v2" :>
"agency" :>
Capture "agencyId" (Textual Int64) :>
"advertiser" :>
Capture "advertiserId" (Textual Int64) :>
"savedcolumns" :>
QueryParam "alt" AltJSON :>
Get '[JSON] SavedColumnList
data SavedColumnsList = SavedColumnsList'
{ _sclAgencyId :: !(Textual Int64)
, _sclAdvertiserId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
savedColumnsList
:: Int64
-> Int64
-> SavedColumnsList
savedColumnsList pSclAgencyId_ pSclAdvertiserId_ =
SavedColumnsList'
{ _sclAgencyId = _Coerce # pSclAgencyId_
, _sclAdvertiserId = _Coerce # pSclAdvertiserId_
}
sclAgencyId :: Lens' SavedColumnsList Int64
sclAgencyId
= lens _sclAgencyId (\ s a -> s{_sclAgencyId = a}) .
_Coerce
sclAdvertiserId :: Lens' SavedColumnsList Int64
sclAdvertiserId
= lens _sclAdvertiserId
(\ s a -> s{_sclAdvertiserId = a})
. _Coerce
instance GoogleRequest SavedColumnsList where
type Rs SavedColumnsList = SavedColumnList
type Scopes SavedColumnsList =
'["https://www.googleapis.com/auth/doubleclicksearch"]
requestClient SavedColumnsList'{..}
= go _sclAgencyId _sclAdvertiserId (Just AltJSON)
doubleClickSearchService
where go
= buildClient
(Proxy :: Proxy SavedColumnsListResource)
mempty