{-# 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.Content.LiaSettings.List
(
LiaSettingsListResource
, liaSettingsList
, LiaSettingsList
, lslMerchantId
, lslPageToken
, lslMaxResults
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type LiaSettingsListResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"liasettings" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] LiaSettingsListResponse
data LiaSettingsList = LiaSettingsList'
{ _lslMerchantId :: !(Textual Word64)
, _lslPageToken :: !(Maybe Text)
, _lslMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
liaSettingsList
:: Word64
-> LiaSettingsList
liaSettingsList pLslMerchantId_ =
LiaSettingsList'
{ _lslMerchantId = _Coerce # pLslMerchantId_
, _lslPageToken = Nothing
, _lslMaxResults = Nothing
}
lslMerchantId :: Lens' LiaSettingsList Word64
lslMerchantId
= lens _lslMerchantId
(\ s a -> s{_lslMerchantId = a})
. _Coerce
lslPageToken :: Lens' LiaSettingsList (Maybe Text)
lslPageToken
= lens _lslPageToken (\ s a -> s{_lslPageToken = a})
lslMaxResults :: Lens' LiaSettingsList (Maybe Word32)
lslMaxResults
= lens _lslMaxResults
(\ s a -> s{_lslMaxResults = a})
. mapping _Coerce
instance GoogleRequest LiaSettingsList where
type Rs LiaSettingsList = LiaSettingsListResponse
type Scopes LiaSettingsList =
'["https://www.googleapis.com/auth/content"]
requestClient LiaSettingsList'{..}
= go _lslMerchantId _lslPageToken _lslMaxResults
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy :: Proxy LiaSettingsListResource)
mempty