{-# 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.List
(
FloodlightActivitiesListResource
, floodlightActivitiesList
, FloodlightActivitiesList
, falTagString
, falFloodlightActivityGroupTagString
, falFloodlightConfigurationId
, falAdvertiserId
, falSearchString
, falIds
, falProFileId
, falFloodlightActivityGroupIds
, falSortOrder
, falFloodlightActivityGroupType
, falFloodlightActivityGroupName
, falPageToken
, falSortField
, falMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightActivitiesListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightActivities" :>
QueryParam "tagString" Text :>
QueryParam "floodlightActivityGroupTagString" Text :>
QueryParam "floodlightConfigurationId"
(Textual Int64)
:>
QueryParam "advertiserId" (Textual Int64) :>
QueryParam "searchString" Text :>
QueryParams "ids" (Textual Int64) :>
QueryParams "floodlightActivityGroupIds"
(Textual Int64)
:>
QueryParam "sortOrder"
FloodlightActivitiesListSortOrder
:>
QueryParam "floodlightActivityGroupType"
FloodlightActivitiesListFloodlightActivityGroupType
:>
QueryParam "floodlightActivityGroupName" Text
:>
QueryParam "pageToken" Text :>
QueryParam "sortField"
FloodlightActivitiesListSortField
:>
QueryParam "maxResults" (Textual Int32)
:>
QueryParam "alt" AltJSON :>
Get '[JSON]
FloodlightActivitiesListResponse
data FloodlightActivitiesList = FloodlightActivitiesList'
{ _falTagString :: !(Maybe Text)
, _falFloodlightActivityGroupTagString :: !(Maybe Text)
, _falFloodlightConfigurationId :: !(Maybe (Textual Int64))
, _falAdvertiserId :: !(Maybe (Textual Int64))
, _falSearchString :: !(Maybe Text)
, _falIds :: !(Maybe [Textual Int64])
, _falProFileId :: !(Textual Int64)
, _falFloodlightActivityGroupIds :: !(Maybe [Textual Int64])
, _falSortOrder :: !FloodlightActivitiesListSortOrder
, _falFloodlightActivityGroupType :: !(Maybe FloodlightActivitiesListFloodlightActivityGroupType)
, _falFloodlightActivityGroupName :: !(Maybe Text)
, _falPageToken :: !(Maybe Text)
, _falSortField :: !FloodlightActivitiesListSortField
, _falMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightActivitiesList
:: Int64
-> FloodlightActivitiesList
floodlightActivitiesList pFalProFileId_ =
FloodlightActivitiesList'
{ _falTagString = Nothing
, _falFloodlightActivityGroupTagString = Nothing
, _falFloodlightConfigurationId = Nothing
, _falAdvertiserId = Nothing
, _falSearchString = Nothing
, _falIds = Nothing
, _falProFileId = _Coerce # pFalProFileId_
, _falFloodlightActivityGroupIds = Nothing
, _falSortOrder = FALSOAscending
, _falFloodlightActivityGroupType = Nothing
, _falFloodlightActivityGroupName = Nothing
, _falPageToken = Nothing
, _falSortField = FALSFID
, _falMaxResults = 1000
}
falTagString :: Lens' FloodlightActivitiesList (Maybe Text)
falTagString
= lens _falTagString (\ s a -> s{_falTagString = a})
falFloodlightActivityGroupTagString :: Lens' FloodlightActivitiesList (Maybe Text)
falFloodlightActivityGroupTagString
= lens _falFloodlightActivityGroupTagString
(\ s a ->
s{_falFloodlightActivityGroupTagString = a})
falFloodlightConfigurationId :: Lens' FloodlightActivitiesList (Maybe Int64)
falFloodlightConfigurationId
= lens _falFloodlightConfigurationId
(\ s a -> s{_falFloodlightConfigurationId = a})
. mapping _Coerce
falAdvertiserId :: Lens' FloodlightActivitiesList (Maybe Int64)
falAdvertiserId
= lens _falAdvertiserId
(\ s a -> s{_falAdvertiserId = a})
. mapping _Coerce
falSearchString :: Lens' FloodlightActivitiesList (Maybe Text)
falSearchString
= lens _falSearchString
(\ s a -> s{_falSearchString = a})
falIds :: Lens' FloodlightActivitiesList [Int64]
falIds
= lens _falIds (\ s a -> s{_falIds = a}) . _Default .
_Coerce
falProFileId :: Lens' FloodlightActivitiesList Int64
falProFileId
= lens _falProFileId (\ s a -> s{_falProFileId = a})
. _Coerce
falFloodlightActivityGroupIds :: Lens' FloodlightActivitiesList [Int64]
falFloodlightActivityGroupIds
= lens _falFloodlightActivityGroupIds
(\ s a -> s{_falFloodlightActivityGroupIds = a})
. _Default
. _Coerce
falSortOrder :: Lens' FloodlightActivitiesList FloodlightActivitiesListSortOrder
falSortOrder
= lens _falSortOrder (\ s a -> s{_falSortOrder = a})
falFloodlightActivityGroupType :: Lens' FloodlightActivitiesList (Maybe FloodlightActivitiesListFloodlightActivityGroupType)
falFloodlightActivityGroupType
= lens _falFloodlightActivityGroupType
(\ s a -> s{_falFloodlightActivityGroupType = a})
falFloodlightActivityGroupName :: Lens' FloodlightActivitiesList (Maybe Text)
falFloodlightActivityGroupName
= lens _falFloodlightActivityGroupName
(\ s a -> s{_falFloodlightActivityGroupName = a})
falPageToken :: Lens' FloodlightActivitiesList (Maybe Text)
falPageToken
= lens _falPageToken (\ s a -> s{_falPageToken = a})
falSortField :: Lens' FloodlightActivitiesList FloodlightActivitiesListSortField
falSortField
= lens _falSortField (\ s a -> s{_falSortField = a})
falMaxResults :: Lens' FloodlightActivitiesList Int32
falMaxResults
= lens _falMaxResults
(\ s a -> s{_falMaxResults = a})
. _Coerce
instance GoogleRequest FloodlightActivitiesList where
type Rs FloodlightActivitiesList =
FloodlightActivitiesListResponse
type Scopes FloodlightActivitiesList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightActivitiesList'{..}
= go _falProFileId _falTagString
_falFloodlightActivityGroupTagString
_falFloodlightConfigurationId
_falAdvertiserId
_falSearchString
(_falIds ^. _Default)
(_falFloodlightActivityGroupIds ^. _Default)
(Just _falSortOrder)
_falFloodlightActivityGroupType
_falFloodlightActivityGroupName
_falPageToken
(Just _falSortField)
(Just _falMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightActivitiesListResource)
mempty