{-# 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.DirectorySites.List
(
DirectorySitesListResource
, directorySitesList
, DirectorySitesList
, dslSearchString
, dslAcceptsInterstitialPlacements
, dslAcceptsPublisherPaidPlacements
, dslIds
, dslProFileId
, dslSortOrder
, dslActive
, dslCountryId
, dslPageToken
, dslSortField
, dslAcceptsInStreamVideoPlacements
, dslMaxResults
, dslParentId
, dslDfpNetworkCode
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type DirectorySitesListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"directorySites" :>
QueryParam "searchString" Text :>
QueryParam "acceptsInterstitialPlacements" Bool :>
QueryParam "acceptsPublisherPaidPlacements" Bool :>
QueryParams "ids" (Textual Int64) :>
QueryParam "sortOrder" DirectorySitesListSortOrder :>
QueryParam "active" Bool :>
QueryParam "countryId" (Textual Int64) :>
QueryParam "pageToken" Text :>
QueryParam "sortField"
DirectorySitesListSortField
:>
QueryParam "acceptsInStreamVideoPlacements"
Bool
:>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "parentId" (Textual Int64) :>
QueryParam "dfpNetworkCode" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
DirectorySitesListResponse
data DirectorySitesList = DirectorySitesList'
{ _dslSearchString :: !(Maybe Text)
, _dslAcceptsInterstitialPlacements :: !(Maybe Bool)
, _dslAcceptsPublisherPaidPlacements :: !(Maybe Bool)
, _dslIds :: !(Maybe [Textual Int64])
, _dslProFileId :: !(Textual Int64)
, _dslSortOrder :: !DirectorySitesListSortOrder
, _dslActive :: !(Maybe Bool)
, _dslCountryId :: !(Maybe (Textual Int64))
, _dslPageToken :: !(Maybe Text)
, _dslSortField :: !DirectorySitesListSortField
, _dslAcceptsInStreamVideoPlacements :: !(Maybe Bool)
, _dslMaxResults :: !(Textual Int32)
, _dslParentId :: !(Maybe (Textual Int64))
, _dslDfpNetworkCode :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
directorySitesList
:: Int64
-> DirectorySitesList
directorySitesList pDslProFileId_ =
DirectorySitesList'
{ _dslSearchString = Nothing
, _dslAcceptsInterstitialPlacements = Nothing
, _dslAcceptsPublisherPaidPlacements = Nothing
, _dslIds = Nothing
, _dslProFileId = _Coerce # pDslProFileId_
, _dslSortOrder = DSLSOAscending
, _dslActive = Nothing
, _dslCountryId = Nothing
, _dslPageToken = Nothing
, _dslSortField = DSLSFID
, _dslAcceptsInStreamVideoPlacements = Nothing
, _dslMaxResults = 1000
, _dslParentId = Nothing
, _dslDfpNetworkCode = Nothing
}
dslSearchString :: Lens' DirectorySitesList (Maybe Text)
dslSearchString
= lens _dslSearchString
(\ s a -> s{_dslSearchString = a})
dslAcceptsInterstitialPlacements :: Lens' DirectorySitesList (Maybe Bool)
dslAcceptsInterstitialPlacements
= lens _dslAcceptsInterstitialPlacements
(\ s a -> s{_dslAcceptsInterstitialPlacements = a})
dslAcceptsPublisherPaidPlacements :: Lens' DirectorySitesList (Maybe Bool)
dslAcceptsPublisherPaidPlacements
= lens _dslAcceptsPublisherPaidPlacements
(\ s a -> s{_dslAcceptsPublisherPaidPlacements = a})
dslIds :: Lens' DirectorySitesList [Int64]
dslIds
= lens _dslIds (\ s a -> s{_dslIds = a}) . _Default .
_Coerce
dslProFileId :: Lens' DirectorySitesList Int64
dslProFileId
= lens _dslProFileId (\ s a -> s{_dslProFileId = a})
. _Coerce
dslSortOrder :: Lens' DirectorySitesList DirectorySitesListSortOrder
dslSortOrder
= lens _dslSortOrder (\ s a -> s{_dslSortOrder = a})
dslActive :: Lens' DirectorySitesList (Maybe Bool)
dslActive
= lens _dslActive (\ s a -> s{_dslActive = a})
dslCountryId :: Lens' DirectorySitesList (Maybe Int64)
dslCountryId
= lens _dslCountryId (\ s a -> s{_dslCountryId = a})
. mapping _Coerce
dslPageToken :: Lens' DirectorySitesList (Maybe Text)
dslPageToken
= lens _dslPageToken (\ s a -> s{_dslPageToken = a})
dslSortField :: Lens' DirectorySitesList DirectorySitesListSortField
dslSortField
= lens _dslSortField (\ s a -> s{_dslSortField = a})
dslAcceptsInStreamVideoPlacements :: Lens' DirectorySitesList (Maybe Bool)
dslAcceptsInStreamVideoPlacements
= lens _dslAcceptsInStreamVideoPlacements
(\ s a -> s{_dslAcceptsInStreamVideoPlacements = a})
dslMaxResults :: Lens' DirectorySitesList Int32
dslMaxResults
= lens _dslMaxResults
(\ s a -> s{_dslMaxResults = a})
. _Coerce
dslParentId :: Lens' DirectorySitesList (Maybe Int64)
dslParentId
= lens _dslParentId (\ s a -> s{_dslParentId = a}) .
mapping _Coerce
dslDfpNetworkCode :: Lens' DirectorySitesList (Maybe Text)
dslDfpNetworkCode
= lens _dslDfpNetworkCode
(\ s a -> s{_dslDfpNetworkCode = a})
instance GoogleRequest DirectorySitesList where
type Rs DirectorySitesList =
DirectorySitesListResponse
type Scopes DirectorySitesList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient DirectorySitesList'{..}
= go _dslProFileId _dslSearchString
_dslAcceptsInterstitialPlacements
_dslAcceptsPublisherPaidPlacements
(_dslIds ^. _Default)
(Just _dslSortOrder)
_dslActive
_dslCountryId
_dslPageToken
(Just _dslSortField)
_dslAcceptsInStreamVideoPlacements
(Just _dslMaxResults)
_dslParentId
_dslDfpNetworkCode
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy DirectorySitesListResource)
mempty