{-# 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.WebPropertyAdWordsLinks.List
(
ManagementWebPropertyAdWordsLinksListResource
, managementWebPropertyAdWordsLinksList
, ManagementWebPropertyAdWordsLinksList
, mwpawllWebPropertyId
, mwpawllAccountId
, mwpawllStartIndex
, mwpawllMaxResults
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementWebPropertyAdWordsLinksListResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"entityAdWordsLinks" :>
QueryParam "start-index" (Textual Int32) :>
QueryParam "max-results" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] EntityAdWordsLinks
data ManagementWebPropertyAdWordsLinksList = ManagementWebPropertyAdWordsLinksList'
{ _mwpawllWebPropertyId :: !Text
, _mwpawllAccountId :: !Text
, _mwpawllStartIndex :: !(Maybe (Textual Int32))
, _mwpawllMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
managementWebPropertyAdWordsLinksList
:: Text
-> Text
-> ManagementWebPropertyAdWordsLinksList
managementWebPropertyAdWordsLinksList pMwpawllWebPropertyId_ pMwpawllAccountId_ =
ManagementWebPropertyAdWordsLinksList'
{ _mwpawllWebPropertyId = pMwpawllWebPropertyId_
, _mwpawllAccountId = pMwpawllAccountId_
, _mwpawllStartIndex = Nothing
, _mwpawllMaxResults = Nothing
}
mwpawllWebPropertyId :: Lens' ManagementWebPropertyAdWordsLinksList Text
mwpawllWebPropertyId
= lens _mwpawllWebPropertyId
(\ s a -> s{_mwpawllWebPropertyId = a})
mwpawllAccountId :: Lens' ManagementWebPropertyAdWordsLinksList Text
mwpawllAccountId
= lens _mwpawllAccountId
(\ s a -> s{_mwpawllAccountId = a})
mwpawllStartIndex :: Lens' ManagementWebPropertyAdWordsLinksList (Maybe Int32)
mwpawllStartIndex
= lens _mwpawllStartIndex
(\ s a -> s{_mwpawllStartIndex = a})
. mapping _Coerce
mwpawllMaxResults :: Lens' ManagementWebPropertyAdWordsLinksList (Maybe Int32)
mwpawllMaxResults
= lens _mwpawllMaxResults
(\ s a -> s{_mwpawllMaxResults = a})
. mapping _Coerce
instance GoogleRequest
ManagementWebPropertyAdWordsLinksList where
type Rs ManagementWebPropertyAdWordsLinksList =
EntityAdWordsLinks
type Scopes ManagementWebPropertyAdWordsLinksList =
'["https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient
ManagementWebPropertyAdWordsLinksList'{..}
= go _mwpawllAccountId _mwpawllWebPropertyId
_mwpawllStartIndex
_mwpawllMaxResults
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementWebPropertyAdWordsLinksListResource)
mempty