{-# 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.FloodlightActivities.Get
(
FloodlightActivitiesGetResource
, floodlightActivitiesGet
, FloodlightActivitiesGet
, fProFileId
, fId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightActivitiesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightActivities" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] FloodlightActivity
data FloodlightActivitiesGet = FloodlightActivitiesGet'
{ _fProFileId :: !(Textual Int64)
, _fId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightActivitiesGet
:: Int64
-> Int64
-> FloodlightActivitiesGet
floodlightActivitiesGet pFProFileId_ pFId_ =
FloodlightActivitiesGet'
{ _fProFileId = _Coerce # pFProFileId_
, _fId = _Coerce # pFId_
}
fProFileId :: Lens' FloodlightActivitiesGet Int64
fProFileId
= lens _fProFileId (\ s a -> s{_fProFileId = a}) .
_Coerce
fId :: Lens' FloodlightActivitiesGet Int64
fId = lens _fId (\ s a -> s{_fId = a}) . _Coerce
instance GoogleRequest FloodlightActivitiesGet where
type Rs FloodlightActivitiesGet = FloodlightActivity
type Scopes FloodlightActivitiesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightActivitiesGet'{..}
= go _fProFileId _fId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightActivitiesGetResource)
mempty