{-# 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.ProFileUserLinks.List
(
ManagementProFileUserLinksListResource
, managementProFileUserLinksList
, ManagementProFileUserLinksList
, mpfullWebPropertyId
, mpfullProFileId
, mpfullAccountId
, mpfullStartIndex
, mpfullMaxResults
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileUserLinksListResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"entityUserLinks" :>
QueryParam "start-index" (Textual Int32) :>
QueryParam "max-results" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] EntityUserLinks
data ManagementProFileUserLinksList = ManagementProFileUserLinksList'
{ _mpfullWebPropertyId :: !Text
, _mpfullProFileId :: !Text
, _mpfullAccountId :: !Text
, _mpfullStartIndex :: !(Maybe (Textual Int32))
, _mpfullMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileUserLinksList
:: Text
-> Text
-> Text
-> ManagementProFileUserLinksList
managementProFileUserLinksList pMpfullWebPropertyId_ pMpfullProFileId_ pMpfullAccountId_ =
ManagementProFileUserLinksList'
{ _mpfullWebPropertyId = pMpfullWebPropertyId_
, _mpfullProFileId = pMpfullProFileId_
, _mpfullAccountId = pMpfullAccountId_
, _mpfullStartIndex = Nothing
, _mpfullMaxResults = Nothing
}
mpfullWebPropertyId :: Lens' ManagementProFileUserLinksList Text
mpfullWebPropertyId
= lens _mpfullWebPropertyId
(\ s a -> s{_mpfullWebPropertyId = a})
mpfullProFileId :: Lens' ManagementProFileUserLinksList Text
mpfullProFileId
= lens _mpfullProFileId
(\ s a -> s{_mpfullProFileId = a})
mpfullAccountId :: Lens' ManagementProFileUserLinksList Text
mpfullAccountId
= lens _mpfullAccountId
(\ s a -> s{_mpfullAccountId = a})
mpfullStartIndex :: Lens' ManagementProFileUserLinksList (Maybe Int32)
mpfullStartIndex
= lens _mpfullStartIndex
(\ s a -> s{_mpfullStartIndex = a})
. mapping _Coerce
mpfullMaxResults :: Lens' ManagementProFileUserLinksList (Maybe Int32)
mpfullMaxResults
= lens _mpfullMaxResults
(\ s a -> s{_mpfullMaxResults = a})
. mapping _Coerce
instance GoogleRequest ManagementProFileUserLinksList
where
type Rs ManagementProFileUserLinksList =
EntityUserLinks
type Scopes ManagementProFileUserLinksList =
'["https://www.googleapis.com/auth/analytics.manage.users",
"https://www.googleapis.com/auth/analytics.manage.users.readonly"]
requestClient ManagementProFileUserLinksList'{..}
= go _mpfullAccountId _mpfullWebPropertyId
_mpfullProFileId
_mpfullStartIndex
_mpfullMaxResults
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileUserLinksListResource)
mempty