{-# 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.Reports.Get
(
ReportsGetResource
, reportsGet
, ReportsGet
, rgReportId
) where
import Network.Google.DoubleClickSearch.Types
import Network.Google.Prelude
type ReportsGetResource =
"doubleclicksearch" :>
"v2" :>
"reports" :>
Capture "reportId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Report
newtype ReportsGet = ReportsGet'
{ _rgReportId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
reportsGet
:: Text
-> ReportsGet
reportsGet pRgReportId_ =
ReportsGet'
{ _rgReportId = pRgReportId_
}
rgReportId :: Lens' ReportsGet Text
rgReportId
= lens _rgReportId (\ s a -> s{_rgReportId = a})
instance GoogleRequest ReportsGet where
type Rs ReportsGet = Report
type Scopes ReportsGet =
'["https://www.googleapis.com/auth/doubleclicksearch"]
requestClient ReportsGet'{..}
= go _rgReportId (Just AltJSON)
doubleClickSearchService
where go
= buildClient (Proxy :: Proxy ReportsGetResource)
mempty