{-# 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.Get
(
ManagementUploadsGetResource
, managementUploadsGet
, ManagementUploadsGet
, mugWebPropertyId
, mugCustomDataSourceId
, mugAccountId
, mugUploadId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementUploadsGetResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"customDataSources" :>
Capture "customDataSourceId" Text :>
"uploads" :>
Capture "uploadId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Upload
data ManagementUploadsGet = ManagementUploadsGet'
{ _mugWebPropertyId :: !Text
, _mugCustomDataSourceId :: !Text
, _mugAccountId :: !Text
, _mugUploadId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementUploadsGet
:: Text
-> Text
-> Text
-> Text
-> ManagementUploadsGet
managementUploadsGet pMugWebPropertyId_ pMugCustomDataSourceId_ pMugAccountId_ pMugUploadId_ =
ManagementUploadsGet'
{ _mugWebPropertyId = pMugWebPropertyId_
, _mugCustomDataSourceId = pMugCustomDataSourceId_
, _mugAccountId = pMugAccountId_
, _mugUploadId = pMugUploadId_
}
mugWebPropertyId :: Lens' ManagementUploadsGet Text
mugWebPropertyId
= lens _mugWebPropertyId
(\ s a -> s{_mugWebPropertyId = a})
mugCustomDataSourceId :: Lens' ManagementUploadsGet Text
mugCustomDataSourceId
= lens _mugCustomDataSourceId
(\ s a -> s{_mugCustomDataSourceId = a})
mugAccountId :: Lens' ManagementUploadsGet Text
mugAccountId
= lens _mugAccountId (\ s a -> s{_mugAccountId = a})
mugUploadId :: Lens' ManagementUploadsGet Text
mugUploadId
= lens _mugUploadId (\ s a -> s{_mugUploadId = a})
instance GoogleRequest ManagementUploadsGet where
type Rs ManagementUploadsGet = Upload
type Scopes ManagementUploadsGet =
'["https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient ManagementUploadsGet'{..}
= go _mugAccountId _mugWebPropertyId
_mugCustomDataSourceId
_mugUploadId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy :: Proxy ManagementUploadsGetResource)
mempty