{-# 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.GetAccessiblegmbAccounts
(
LiaSettingsGetAccessiblegmbAccountsResource
, liaSettingsGetAccessiblegmbAccounts
, LiaSettingsGetAccessiblegmbAccounts
, lsgaaMerchantId
, lsgaaAccountId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type LiaSettingsGetAccessiblegmbAccountsResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"liasettings" :>
Capture "accountId" (Textual Word64) :>
"accessiblegmbaccounts" :>
QueryParam "alt" AltJSON :>
Get '[JSON]
LiaSettingsGetAccessibleGmbAccountsResponse
data LiaSettingsGetAccessiblegmbAccounts = LiaSettingsGetAccessiblegmbAccounts'
{ _lsgaaMerchantId :: !(Textual Word64)
, _lsgaaAccountId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
liaSettingsGetAccessiblegmbAccounts
:: Word64
-> Word64
-> LiaSettingsGetAccessiblegmbAccounts
liaSettingsGetAccessiblegmbAccounts pLsgaaMerchantId_ pLsgaaAccountId_ =
LiaSettingsGetAccessiblegmbAccounts'
{ _lsgaaMerchantId = _Coerce # pLsgaaMerchantId_
, _lsgaaAccountId = _Coerce # pLsgaaAccountId_
}
lsgaaMerchantId :: Lens' LiaSettingsGetAccessiblegmbAccounts Word64
lsgaaMerchantId
= lens _lsgaaMerchantId
(\ s a -> s{_lsgaaMerchantId = a})
. _Coerce
lsgaaAccountId :: Lens' LiaSettingsGetAccessiblegmbAccounts Word64
lsgaaAccountId
= lens _lsgaaAccountId
(\ s a -> s{_lsgaaAccountId = a})
. _Coerce
instance GoogleRequest
LiaSettingsGetAccessiblegmbAccounts where
type Rs LiaSettingsGetAccessiblegmbAccounts =
LiaSettingsGetAccessibleGmbAccountsResponse
type Scopes LiaSettingsGetAccessiblegmbAccounts =
'["https://www.googleapis.com/auth/content"]
requestClient
LiaSettingsGetAccessiblegmbAccounts'{..}
= go _lsgaaMerchantId _lsgaaAccountId (Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy ::
Proxy LiaSettingsGetAccessiblegmbAccountsResource)
mempty