{-# 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.ShippingSettings.List
(
ShippingSettingsListResource
, shippingSettingsList
, ShippingSettingsList
, sslMerchantId
, sslPageToken
, sslMaxResults
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ShippingSettingsListResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"shippingsettings" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] ShippingSettingsListResponse
data ShippingSettingsList = ShippingSettingsList'
{ _sslMerchantId :: !(Textual Word64)
, _sslPageToken :: !(Maybe Text)
, _sslMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
shippingSettingsList
:: Word64
-> ShippingSettingsList
shippingSettingsList pSslMerchantId_ =
ShippingSettingsList'
{ _sslMerchantId = _Coerce # pSslMerchantId_
, _sslPageToken = Nothing
, _sslMaxResults = Nothing
}
sslMerchantId :: Lens' ShippingSettingsList Word64
sslMerchantId
= lens _sslMerchantId
(\ s a -> s{_sslMerchantId = a})
. _Coerce
sslPageToken :: Lens' ShippingSettingsList (Maybe Text)
sslPageToken
= lens _sslPageToken (\ s a -> s{_sslPageToken = a})
sslMaxResults :: Lens' ShippingSettingsList (Maybe Word32)
sslMaxResults
= lens _sslMaxResults
(\ s a -> s{_sslMaxResults = a})
. mapping _Coerce
instance GoogleRequest ShippingSettingsList where
type Rs ShippingSettingsList =
ShippingSettingsListResponse
type Scopes ShippingSettingsList =
'["https://www.googleapis.com/auth/content"]
requestClient ShippingSettingsList'{..}
= go _sslMerchantId _sslPageToken _sslMaxResults
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy :: Proxy ShippingSettingsListResource)
mempty