{-# 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.FloodlightActivityGroups.Get
(
FloodlightActivityGroupsGetResource
, floodlightActivityGroupsGet
, FloodlightActivityGroupsGet
, faggProFileId
, faggId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightActivityGroupsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightActivityGroups" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] FloodlightActivityGroup
data FloodlightActivityGroupsGet = FloodlightActivityGroupsGet'
{ _faggProFileId :: !(Textual Int64)
, _faggId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightActivityGroupsGet
:: Int64
-> Int64
-> FloodlightActivityGroupsGet
floodlightActivityGroupsGet pFaggProFileId_ pFaggId_ =
FloodlightActivityGroupsGet'
{ _faggProFileId = _Coerce # pFaggProFileId_
, _faggId = _Coerce # pFaggId_
}
faggProFileId :: Lens' FloodlightActivityGroupsGet Int64
faggProFileId
= lens _faggProFileId
(\ s a -> s{_faggProFileId = a})
. _Coerce
faggId :: Lens' FloodlightActivityGroupsGet Int64
faggId
= lens _faggId (\ s a -> s{_faggId = a}) . _Coerce
instance GoogleRequest FloodlightActivityGroupsGet
where
type Rs FloodlightActivityGroupsGet =
FloodlightActivityGroup
type Scopes FloodlightActivityGroupsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightActivityGroupsGet'{..}
= go _faggProFileId _faggId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightActivityGroupsGetResource)
mempty