{-# 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.AccountUserLinks.List
(
ManagementAccountUserLinksListResource
, managementAccountUserLinksList
, ManagementAccountUserLinksList
, maullAccountId
, maullStartIndex
, maullMaxResults
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementAccountUserLinksListResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"entityUserLinks" :>
QueryParam "start-index" (Textual Int32) :>
QueryParam "max-results" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] EntityUserLinks
data ManagementAccountUserLinksList = ManagementAccountUserLinksList'
{ _maullAccountId :: !Text
, _maullStartIndex :: !(Maybe (Textual Int32))
, _maullMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
managementAccountUserLinksList
:: Text
-> ManagementAccountUserLinksList
managementAccountUserLinksList pMaullAccountId_ =
ManagementAccountUserLinksList'
{ _maullAccountId = pMaullAccountId_
, _maullStartIndex = Nothing
, _maullMaxResults = Nothing
}
maullAccountId :: Lens' ManagementAccountUserLinksList Text
maullAccountId
= lens _maullAccountId
(\ s a -> s{_maullAccountId = a})
maullStartIndex :: Lens' ManagementAccountUserLinksList (Maybe Int32)
maullStartIndex
= lens _maullStartIndex
(\ s a -> s{_maullStartIndex = a})
. mapping _Coerce
maullMaxResults :: Lens' ManagementAccountUserLinksList (Maybe Int32)
maullMaxResults
= lens _maullMaxResults
(\ s a -> s{_maullMaxResults = a})
. mapping _Coerce
instance GoogleRequest ManagementAccountUserLinksList
where
type Rs ManagementAccountUserLinksList =
EntityUserLinks
type Scopes ManagementAccountUserLinksList =
'["https://www.googleapis.com/auth/analytics.manage.users",
"https://www.googleapis.com/auth/analytics.manage.users.readonly"]
requestClient ManagementAccountUserLinksList'{..}
= go _maullAccountId _maullStartIndex
_maullMaxResults
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementAccountUserLinksListResource)
mempty