{-# 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.FloodlightConfigurations.List
(
FloodlightConfigurationsListResource
, floodlightConfigurationsList
, FloodlightConfigurationsList
, fclIds
, fclProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightConfigurationsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightConfigurations" :>
QueryParams "ids" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] FloodlightConfigurationsListResponse
data FloodlightConfigurationsList = FloodlightConfigurationsList'
{ _fclIds :: !(Maybe [Textual Int64])
, _fclProFileId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightConfigurationsList
:: Int64
-> FloodlightConfigurationsList
floodlightConfigurationsList pFclProFileId_ =
FloodlightConfigurationsList'
{ _fclIds = Nothing
, _fclProFileId = _Coerce # pFclProFileId_
}
fclIds :: Lens' FloodlightConfigurationsList [Int64]
fclIds
= lens _fclIds (\ s a -> s{_fclIds = a}) . _Default .
_Coerce
fclProFileId :: Lens' FloodlightConfigurationsList Int64
fclProFileId
= lens _fclProFileId (\ s a -> s{_fclProFileId = a})
. _Coerce
instance GoogleRequest FloodlightConfigurationsList
where
type Rs FloodlightConfigurationsList =
FloodlightConfigurationsListResponse
type Scopes FloodlightConfigurationsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightConfigurationsList'{..}
= go _fclProFileId (_fclIds ^. _Default)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightConfigurationsListResource)
mempty