{-# 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.Files.List
(
FilesListResource
, filesList
, FilesList
, flProFileId
, flSortOrder
, flScope
, flPageToken
, flSortField
, flMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FilesListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"files" :>
QueryParam "sortOrder" FilesListSortOrder :>
QueryParam "scope" FilesListScope :>
QueryParam "pageToken" Text :>
QueryParam "sortField" FilesListSortField :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] FileList
data FilesList = FilesList'
{ _flProFileId :: !(Textual Int64)
, _flSortOrder :: !FilesListSortOrder
, _flScope :: !FilesListScope
, _flPageToken :: !(Maybe Text)
, _flSortField :: !FilesListSortField
, _flMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
filesList
:: Int64
-> FilesList
filesList pFlProFileId_ =
FilesList'
{ _flProFileId = _Coerce # pFlProFileId_
, _flSortOrder = FLSODescending
, _flScope = FLSMine
, _flPageToken = Nothing
, _flSortField = FLSFLastModifiedTime
, _flMaxResults = 10
}
flProFileId :: Lens' FilesList Int64
flProFileId
= lens _flProFileId (\ s a -> s{_flProFileId = a}) .
_Coerce
flSortOrder :: Lens' FilesList FilesListSortOrder
flSortOrder
= lens _flSortOrder (\ s a -> s{_flSortOrder = a})
flScope :: Lens' FilesList FilesListScope
flScope = lens _flScope (\ s a -> s{_flScope = a})
flPageToken :: Lens' FilesList (Maybe Text)
flPageToken
= lens _flPageToken (\ s a -> s{_flPageToken = a})
flSortField :: Lens' FilesList FilesListSortField
flSortField
= lens _flSortField (\ s a -> s{_flSortField = a})
flMaxResults :: Lens' FilesList Int32
flMaxResults
= lens _flMaxResults (\ s a -> s{_flMaxResults = a})
. _Coerce
instance GoogleRequest FilesList where
type Rs FilesList = FileList
type Scopes FilesList =
'["https://www.googleapis.com/auth/dfareporting"]
requestClient FilesList'{..}
= go _flProFileId (Just _flSortOrder) (Just _flScope)
_flPageToken
(Just _flSortField)
(Just _flMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy FilesListResource)
mempty