{-# 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.List
(
FloodlightActivityGroupsListResource
, floodlightActivityGroupsList
, FloodlightActivityGroupsList
, faglFloodlightConfigurationId
, faglAdvertiserId
, faglSearchString
, faglIds
, faglProFileId
, faglSortOrder
, faglPageToken
, faglSortField
, faglType
, faglMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightActivityGroupsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightActivityGroups" :>
QueryParam "floodlightConfigurationId"
(Textual Int64)
:>
QueryParam "advertiserId" (Textual Int64) :>
QueryParam "searchString" Text :>
QueryParams "ids" (Textual Int64) :>
QueryParam "sortOrder"
FloodlightActivityGroupsListSortOrder
:>
QueryParam "pageToken" Text :>
QueryParam "sortField"
FloodlightActivityGroupsListSortField
:>
QueryParam "type" FloodlightActivityGroupsListType
:>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON]
FloodlightActivityGroupsListResponse
data FloodlightActivityGroupsList = FloodlightActivityGroupsList'
{ _faglFloodlightConfigurationId :: !(Maybe (Textual Int64))
, _faglAdvertiserId :: !(Maybe (Textual Int64))
, _faglSearchString :: !(Maybe Text)
, _faglIds :: !(Maybe [Textual Int64])
, _faglProFileId :: !(Textual Int64)
, _faglSortOrder :: !FloodlightActivityGroupsListSortOrder
, _faglPageToken :: !(Maybe Text)
, _faglSortField :: !FloodlightActivityGroupsListSortField
, _faglType :: !(Maybe FloodlightActivityGroupsListType)
, _faglMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightActivityGroupsList
:: Int64
-> FloodlightActivityGroupsList
floodlightActivityGroupsList pFaglProFileId_ =
FloodlightActivityGroupsList'
{ _faglFloodlightConfigurationId = Nothing
, _faglAdvertiserId = Nothing
, _faglSearchString = Nothing
, _faglIds = Nothing
, _faglProFileId = _Coerce # pFaglProFileId_
, _faglSortOrder = FAGLSOAscending
, _faglPageToken = Nothing
, _faglSortField = FAGLSFID
, _faglType = Nothing
, _faglMaxResults = 1000
}
faglFloodlightConfigurationId :: Lens' FloodlightActivityGroupsList (Maybe Int64)
faglFloodlightConfigurationId
= lens _faglFloodlightConfigurationId
(\ s a -> s{_faglFloodlightConfigurationId = a})
. mapping _Coerce
faglAdvertiserId :: Lens' FloodlightActivityGroupsList (Maybe Int64)
faglAdvertiserId
= lens _faglAdvertiserId
(\ s a -> s{_faglAdvertiserId = a})
. mapping _Coerce
faglSearchString :: Lens' FloodlightActivityGroupsList (Maybe Text)
faglSearchString
= lens _faglSearchString
(\ s a -> s{_faglSearchString = a})
faglIds :: Lens' FloodlightActivityGroupsList [Int64]
faglIds
= lens _faglIds (\ s a -> s{_faglIds = a}) . _Default
. _Coerce
faglProFileId :: Lens' FloodlightActivityGroupsList Int64
faglProFileId
= lens _faglProFileId
(\ s a -> s{_faglProFileId = a})
. _Coerce
faglSortOrder :: Lens' FloodlightActivityGroupsList FloodlightActivityGroupsListSortOrder
faglSortOrder
= lens _faglSortOrder
(\ s a -> s{_faglSortOrder = a})
faglPageToken :: Lens' FloodlightActivityGroupsList (Maybe Text)
faglPageToken
= lens _faglPageToken
(\ s a -> s{_faglPageToken = a})
faglSortField :: Lens' FloodlightActivityGroupsList FloodlightActivityGroupsListSortField
faglSortField
= lens _faglSortField
(\ s a -> s{_faglSortField = a})
faglType :: Lens' FloodlightActivityGroupsList (Maybe FloodlightActivityGroupsListType)
faglType = lens _faglType (\ s a -> s{_faglType = a})
faglMaxResults :: Lens' FloodlightActivityGroupsList Int32
faglMaxResults
= lens _faglMaxResults
(\ s a -> s{_faglMaxResults = a})
. _Coerce
instance GoogleRequest FloodlightActivityGroupsList
where
type Rs FloodlightActivityGroupsList =
FloodlightActivityGroupsListResponse
type Scopes FloodlightActivityGroupsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightActivityGroupsList'{..}
= go _faglProFileId _faglFloodlightConfigurationId
_faglAdvertiserId
_faglSearchString
(_faglIds ^. _Default)
(Just _faglSortOrder)
_faglPageToken
(Just _faglSortField)
_faglType
(Just _faglMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightActivityGroupsListResource)
mempty