{-# 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.Partners.Analytics.List
(
AnalyticsListResource
, analyticsList
, AnalyticsList
, alXgafv
, alUploadProtocol
, alAccessToken
, alUploadType
, alRequestMetadataPartnersSessionId
, alRequestMetadataLocale
, alRequestMetadataExperimentIds
, alRequestMetadataUserOverridesIPAddress
, alPageToken
, alRequestMetadataTrafficSourceTrafficSubId
, alPageSize
, alRequestMetadataUserOverridesUserId
, alRequestMetadataTrafficSourceTrafficSourceId
, alCallback
) where
import Network.Google.Partners.Types
import Network.Google.Prelude
type AnalyticsListResource =
"v2" :>
"analytics" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "requestMetadata.partnersSessionId" Text
:>
QueryParam "requestMetadata.locale" Text :>
QueryParams "requestMetadata.experimentIds" Text :>
QueryParam "requestMetadata.userOverrides.ipAddress"
Text
:>
QueryParam "pageToken" Text :>
QueryParam
"requestMetadata.trafficSource.trafficSubId"
Text
:>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "requestMetadata.userOverrides.userId"
Text
:>
QueryParam
"requestMetadata.trafficSource.trafficSourceId"
Text
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAnalyticsResponse
data AnalyticsList = AnalyticsList'
{ _alXgafv :: !(Maybe Xgafv)
, _alUploadProtocol :: !(Maybe Text)
, _alAccessToken :: !(Maybe Text)
, _alUploadType :: !(Maybe Text)
, _alRequestMetadataPartnersSessionId :: !(Maybe Text)
, _alRequestMetadataLocale :: !(Maybe Text)
, _alRequestMetadataExperimentIds :: !(Maybe [Text])
, _alRequestMetadataUserOverridesIPAddress :: !(Maybe Text)
, _alPageToken :: !(Maybe Text)
, _alRequestMetadataTrafficSourceTrafficSubId :: !(Maybe Text)
, _alPageSize :: !(Maybe (Textual Int32))
, _alRequestMetadataUserOverridesUserId :: !(Maybe Text)
, _alRequestMetadataTrafficSourceTrafficSourceId :: !(Maybe Text)
, _alCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
analyticsList
:: AnalyticsList
analyticsList =
AnalyticsList'
{ _alXgafv = Nothing
, _alUploadProtocol = Nothing
, _alAccessToken = Nothing
, _alUploadType = Nothing
, _alRequestMetadataPartnersSessionId = Nothing
, _alRequestMetadataLocale = Nothing
, _alRequestMetadataExperimentIds = Nothing
, _alRequestMetadataUserOverridesIPAddress = Nothing
, _alPageToken = Nothing
, _alRequestMetadataTrafficSourceTrafficSubId = Nothing
, _alPageSize = Nothing
, _alRequestMetadataUserOverridesUserId = Nothing
, _alRequestMetadataTrafficSourceTrafficSourceId = Nothing
, _alCallback = Nothing
}
alXgafv :: Lens' AnalyticsList (Maybe Xgafv)
alXgafv = lens _alXgafv (\ s a -> s{_alXgafv = a})
alUploadProtocol :: Lens' AnalyticsList (Maybe Text)
alUploadProtocol
= lens _alUploadProtocol
(\ s a -> s{_alUploadProtocol = a})
alAccessToken :: Lens' AnalyticsList (Maybe Text)
alAccessToken
= lens _alAccessToken
(\ s a -> s{_alAccessToken = a})
alUploadType :: Lens' AnalyticsList (Maybe Text)
alUploadType
= lens _alUploadType (\ s a -> s{_alUploadType = a})
alRequestMetadataPartnersSessionId :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataPartnersSessionId
= lens _alRequestMetadataPartnersSessionId
(\ s a -> s{_alRequestMetadataPartnersSessionId = a})
alRequestMetadataLocale :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataLocale
= lens _alRequestMetadataLocale
(\ s a -> s{_alRequestMetadataLocale = a})
alRequestMetadataExperimentIds :: Lens' AnalyticsList [Text]
alRequestMetadataExperimentIds
= lens _alRequestMetadataExperimentIds
(\ s a -> s{_alRequestMetadataExperimentIds = a})
. _Default
. _Coerce
alRequestMetadataUserOverridesIPAddress :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataUserOverridesIPAddress
= lens _alRequestMetadataUserOverridesIPAddress
(\ s a ->
s{_alRequestMetadataUserOverridesIPAddress = a})
alPageToken :: Lens' AnalyticsList (Maybe Text)
alPageToken
= lens _alPageToken (\ s a -> s{_alPageToken = a})
alRequestMetadataTrafficSourceTrafficSubId :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataTrafficSourceTrafficSubId
= lens _alRequestMetadataTrafficSourceTrafficSubId
(\ s a ->
s{_alRequestMetadataTrafficSourceTrafficSubId = a})
alPageSize :: Lens' AnalyticsList (Maybe Int32)
alPageSize
= lens _alPageSize (\ s a -> s{_alPageSize = a}) .
mapping _Coerce
alRequestMetadataUserOverridesUserId :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataUserOverridesUserId
= lens _alRequestMetadataUserOverridesUserId
(\ s a ->
s{_alRequestMetadataUserOverridesUserId = a})
alRequestMetadataTrafficSourceTrafficSourceId :: Lens' AnalyticsList (Maybe Text)
alRequestMetadataTrafficSourceTrafficSourceId
= lens _alRequestMetadataTrafficSourceTrafficSourceId
(\ s a ->
s{_alRequestMetadataTrafficSourceTrafficSourceId =
a})
alCallback :: Lens' AnalyticsList (Maybe Text)
alCallback
= lens _alCallback (\ s a -> s{_alCallback = a})
instance GoogleRequest AnalyticsList where
type Rs AnalyticsList = ListAnalyticsResponse
type Scopes AnalyticsList = '[]
requestClient AnalyticsList'{..}
= go _alXgafv _alUploadProtocol _alAccessToken
_alUploadType
_alRequestMetadataPartnersSessionId
_alRequestMetadataLocale
(_alRequestMetadataExperimentIds ^. _Default)
_alRequestMetadataUserOverridesIPAddress
_alPageToken
_alRequestMetadataTrafficSourceTrafficSubId
_alPageSize
_alRequestMetadataUserOverridesUserId
_alRequestMetadataTrafficSourceTrafficSourceId
_alCallback
(Just AltJSON)
partnersService
where go
= buildClient (Proxy :: Proxy AnalyticsListResource)
mempty