{-# 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.ProFileFilterLinks.Get
(
ManagementProFileFilterLinksGetResource
, managementProFileFilterLinksGet
, ManagementProFileFilterLinksGet
, mpfflgWebPropertyId
, mpfflgProFileId
, mpfflgAccountId
, mpfflgLinkId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementProFileFilterLinksGetResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"profileFilterLinks" :>
Capture "linkId" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ProFileFilterLink
data ManagementProFileFilterLinksGet = ManagementProFileFilterLinksGet'
{ _mpfflgWebPropertyId :: !Text
, _mpfflgProFileId :: !Text
, _mpfflgAccountId :: !Text
, _mpfflgLinkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementProFileFilterLinksGet
:: Text
-> Text
-> Text
-> Text
-> ManagementProFileFilterLinksGet
managementProFileFilterLinksGet pMpfflgWebPropertyId_ pMpfflgProFileId_ pMpfflgAccountId_ pMpfflgLinkId_ =
ManagementProFileFilterLinksGet'
{ _mpfflgWebPropertyId = pMpfflgWebPropertyId_
, _mpfflgProFileId = pMpfflgProFileId_
, _mpfflgAccountId = pMpfflgAccountId_
, _mpfflgLinkId = pMpfflgLinkId_
}
mpfflgWebPropertyId :: Lens' ManagementProFileFilterLinksGet Text
mpfflgWebPropertyId
= lens _mpfflgWebPropertyId
(\ s a -> s{_mpfflgWebPropertyId = a})
mpfflgProFileId :: Lens' ManagementProFileFilterLinksGet Text
mpfflgProFileId
= lens _mpfflgProFileId
(\ s a -> s{_mpfflgProFileId = a})
mpfflgAccountId :: Lens' ManagementProFileFilterLinksGet Text
mpfflgAccountId
= lens _mpfflgAccountId
(\ s a -> s{_mpfflgAccountId = a})
mpfflgLinkId :: Lens' ManagementProFileFilterLinksGet Text
mpfflgLinkId
= lens _mpfflgLinkId (\ s a -> s{_mpfflgLinkId = a})
instance GoogleRequest
ManagementProFileFilterLinksGet where
type Rs ManagementProFileFilterLinksGet =
ProFileFilterLink
type Scopes ManagementProFileFilterLinksGet =
'["https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient ManagementProFileFilterLinksGet'{..}
= go _mpfflgAccountId _mpfflgWebPropertyId
_mpfflgProFileId
_mpfflgLinkId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementProFileFilterLinksGetResource)
mempty