{-# 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.UnSampledReports.Get
(
ManagementUnSampledReportsGetResource
, managementUnSampledReportsGet
, ManagementUnSampledReportsGet
, musrgWebPropertyId
, musrgProFileId
, musrgAccountId
, musrgUnSampledReportId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementUnSampledReportsGetResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"unsampledReports" :>
Capture "unsampledReportId" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] UnSampledReport
data ManagementUnSampledReportsGet = ManagementUnSampledReportsGet'
{ _musrgWebPropertyId :: !Text
, _musrgProFileId :: !Text
, _musrgAccountId :: !Text
, _musrgUnSampledReportId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementUnSampledReportsGet
:: Text
-> Text
-> Text
-> Text
-> ManagementUnSampledReportsGet
managementUnSampledReportsGet pMusrgWebPropertyId_ pMusrgProFileId_ pMusrgAccountId_ pMusrgUnSampledReportId_ =
ManagementUnSampledReportsGet'
{ _musrgWebPropertyId = pMusrgWebPropertyId_
, _musrgProFileId = pMusrgProFileId_
, _musrgAccountId = pMusrgAccountId_
, _musrgUnSampledReportId = pMusrgUnSampledReportId_
}
musrgWebPropertyId :: Lens' ManagementUnSampledReportsGet Text
musrgWebPropertyId
= lens _musrgWebPropertyId
(\ s a -> s{_musrgWebPropertyId = a})
musrgProFileId :: Lens' ManagementUnSampledReportsGet Text
musrgProFileId
= lens _musrgProFileId
(\ s a -> s{_musrgProFileId = a})
musrgAccountId :: Lens' ManagementUnSampledReportsGet Text
musrgAccountId
= lens _musrgAccountId
(\ s a -> s{_musrgAccountId = a})
musrgUnSampledReportId :: Lens' ManagementUnSampledReportsGet Text
musrgUnSampledReportId
= lens _musrgUnSampledReportId
(\ s a -> s{_musrgUnSampledReportId = a})
instance GoogleRequest ManagementUnSampledReportsGet
where
type Rs ManagementUnSampledReportsGet =
UnSampledReport
type Scopes ManagementUnSampledReportsGet =
'["https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient ManagementUnSampledReportsGet'{..}
= go _musrgAccountId _musrgWebPropertyId
_musrgProFileId
_musrgUnSampledReportId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementUnSampledReportsGetResource)
mempty