{-# 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.Get
(
FloodlightConfigurationsGetResource
, floodlightConfigurationsGet
, FloodlightConfigurationsGet
, fcgProFileId
, fcgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightConfigurationsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightConfigurations" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] FloodlightConfiguration
data FloodlightConfigurationsGet = FloodlightConfigurationsGet'
{ _fcgProFileId :: !(Textual Int64)
, _fcgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightConfigurationsGet
:: Int64
-> Int64
-> FloodlightConfigurationsGet
floodlightConfigurationsGet pFcgProFileId_ pFcgId_ =
FloodlightConfigurationsGet'
{ _fcgProFileId = _Coerce # pFcgProFileId_
, _fcgId = _Coerce # pFcgId_
}
fcgProFileId :: Lens' FloodlightConfigurationsGet Int64
fcgProFileId
= lens _fcgProFileId (\ s a -> s{_fcgProFileId = a})
. _Coerce
fcgId :: Lens' FloodlightConfigurationsGet Int64
fcgId
= lens _fcgId (\ s a -> s{_fcgId = a}) . _Coerce
instance GoogleRequest FloodlightConfigurationsGet
where
type Rs FloodlightConfigurationsGet =
FloodlightConfiguration
type Scopes FloodlightConfigurationsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightConfigurationsGet'{..}
= go _fcgProFileId _fcgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightConfigurationsGetResource)
mempty