{-# 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.Get
(
LiaSettingsGetResource
, liaSettingsGet
, LiaSettingsGet
, lsgMerchantId
, lsgAccountId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type LiaSettingsGetResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"liasettings" :>
Capture "accountId" (Textual Word64) :>
QueryParam "alt" AltJSON :> Get '[JSON] LiaSettings
data LiaSettingsGet = LiaSettingsGet'
{ _lsgMerchantId :: !(Textual Word64)
, _lsgAccountId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
liaSettingsGet
:: Word64
-> Word64
-> LiaSettingsGet
liaSettingsGet pLsgMerchantId_ pLsgAccountId_ =
LiaSettingsGet'
{ _lsgMerchantId = _Coerce # pLsgMerchantId_
, _lsgAccountId = _Coerce # pLsgAccountId_
}
lsgMerchantId :: Lens' LiaSettingsGet Word64
lsgMerchantId
= lens _lsgMerchantId
(\ s a -> s{_lsgMerchantId = a})
. _Coerce
lsgAccountId :: Lens' LiaSettingsGet Word64
lsgAccountId
= lens _lsgAccountId (\ s a -> s{_lsgAccountId = a})
. _Coerce
instance GoogleRequest LiaSettingsGet where
type Rs LiaSettingsGet = LiaSettings
type Scopes LiaSettingsGet =
'["https://www.googleapis.com/auth/content"]
requestClient LiaSettingsGet'{..}
= go _lsgMerchantId _lsgAccountId (Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy LiaSettingsGetResource)
mempty