{-# 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.Analytics.Management.Uploads.List
(
ManagementUploadsListResource
, managementUploadsList
, ManagementUploadsList
, mulWebPropertyId
, mulCustomDataSourceId
, mulAccountId
, mulStartIndex
, mulMaxResults
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementUploadsListResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"customDataSources" :>
Capture "customDataSourceId" Text :>
"uploads" :>
QueryParam "start-index" (Textual Int32) :>
QueryParam "max-results" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] Uploads
data ManagementUploadsList = ManagementUploadsList'
{ _mulWebPropertyId :: !Text
, _mulCustomDataSourceId :: !Text
, _mulAccountId :: !Text
, _mulStartIndex :: !(Maybe (Textual Int32))
, _mulMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
managementUploadsList
:: Text
-> Text
-> Text
-> ManagementUploadsList
managementUploadsList pMulWebPropertyId_ pMulCustomDataSourceId_ pMulAccountId_ =
ManagementUploadsList'
{ _mulWebPropertyId = pMulWebPropertyId_
, _mulCustomDataSourceId = pMulCustomDataSourceId_
, _mulAccountId = pMulAccountId_
, _mulStartIndex = Nothing
, _mulMaxResults = Nothing
}
mulWebPropertyId :: Lens' ManagementUploadsList Text
mulWebPropertyId
= lens _mulWebPropertyId
(\ s a -> s{_mulWebPropertyId = a})
mulCustomDataSourceId :: Lens' ManagementUploadsList Text
mulCustomDataSourceId
= lens _mulCustomDataSourceId
(\ s a -> s{_mulCustomDataSourceId = a})
mulAccountId :: Lens' ManagementUploadsList Text
mulAccountId
= lens _mulAccountId (\ s a -> s{_mulAccountId = a})
mulStartIndex :: Lens' ManagementUploadsList (Maybe Int32)
mulStartIndex
= lens _mulStartIndex
(\ s a -> s{_mulStartIndex = a})
. mapping _Coerce
mulMaxResults :: Lens' ManagementUploadsList (Maybe Int32)
mulMaxResults
= lens _mulMaxResults
(\ s a -> s{_mulMaxResults = a})
. mapping _Coerce
instance GoogleRequest ManagementUploadsList where
type Rs ManagementUploadsList = Uploads
type Scopes ManagementUploadsList =
'["https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient ManagementUploadsList'{..}
= go _mulAccountId _mulWebPropertyId
_mulCustomDataSourceId
_mulStartIndex
_mulMaxResults
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy :: Proxy ManagementUploadsListResource)
mempty