{-# 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.DFAReporting.Browsers.List
(
BrowsersListResource
, browsersList
, BrowsersList
, blProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type BrowsersListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"browsers" :>
QueryParam "alt" AltJSON :>
Get '[JSON] BrowsersListResponse
newtype BrowsersList = BrowsersList'
{ _blProFileId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
browsersList
:: Int64
-> BrowsersList
browsersList pBlProFileId_ =
BrowsersList'
{ _blProFileId = _Coerce # pBlProFileId_
}
blProFileId :: Lens' BrowsersList Int64
blProFileId
= lens _blProFileId (\ s a -> s{_blProFileId = a}) .
_Coerce
instance GoogleRequest BrowsersList where
type Rs BrowsersList = BrowsersListResponse
type Scopes BrowsersList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient BrowsersList'{..}
= go _blProFileId (Just AltJSON) dFAReportingService
where go
= buildClient (Proxy :: Proxy BrowsersListResource)
mempty