{-# 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.WebPropertyUserLinks.List
(
ManagementWebPropertyUserLinksListResource
, managementWebPropertyUserLinksList
, ManagementWebPropertyUserLinksList
, mwpullWebPropertyId
, mwpullAccountId
, mwpullStartIndex
, mwpullMaxResults
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementWebPropertyUserLinksListResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"entityUserLinks" :>
QueryParam "start-index" (Textual Int32) :>
QueryParam "max-results" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] EntityUserLinks
data ManagementWebPropertyUserLinksList = ManagementWebPropertyUserLinksList'
{ _mwpullWebPropertyId :: !Text
, _mwpullAccountId :: !Text
, _mwpullStartIndex :: !(Maybe (Textual Int32))
, _mwpullMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
managementWebPropertyUserLinksList
:: Text
-> Text
-> ManagementWebPropertyUserLinksList
managementWebPropertyUserLinksList pMwpullWebPropertyId_ pMwpullAccountId_ =
ManagementWebPropertyUserLinksList'
{ _mwpullWebPropertyId = pMwpullWebPropertyId_
, _mwpullAccountId = pMwpullAccountId_
, _mwpullStartIndex = Nothing
, _mwpullMaxResults = Nothing
}
mwpullWebPropertyId :: Lens' ManagementWebPropertyUserLinksList Text
mwpullWebPropertyId
= lens _mwpullWebPropertyId
(\ s a -> s{_mwpullWebPropertyId = a})
mwpullAccountId :: Lens' ManagementWebPropertyUserLinksList Text
mwpullAccountId
= lens _mwpullAccountId
(\ s a -> s{_mwpullAccountId = a})
mwpullStartIndex :: Lens' ManagementWebPropertyUserLinksList (Maybe Int32)
mwpullStartIndex
= lens _mwpullStartIndex
(\ s a -> s{_mwpullStartIndex = a})
. mapping _Coerce
mwpullMaxResults :: Lens' ManagementWebPropertyUserLinksList (Maybe Int32)
mwpullMaxResults
= lens _mwpullMaxResults
(\ s a -> s{_mwpullMaxResults = a})
. mapping _Coerce
instance GoogleRequest
ManagementWebPropertyUserLinksList where
type Rs ManagementWebPropertyUserLinksList =
EntityUserLinks
type Scopes ManagementWebPropertyUserLinksList =
'["https://www.googleapis.com/auth/analytics.manage.users",
"https://www.googleapis.com/auth/analytics.manage.users.readonly"]
requestClient ManagementWebPropertyUserLinksList'{..}
= go _mwpullAccountId _mwpullWebPropertyId
_mwpullStartIndex
_mwpullMaxResults
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementWebPropertyUserLinksListResource)
mempty