{-# 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.Accounts.Custombatch
(
AccountsCustombatchResource
, accountsCustombatch
, AccountsCustombatch
, accPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccountsCustombatchResource =
"content" :>
"v2.1" :>
"accounts" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AccountsCustomBatchRequest :>
Post '[JSON] AccountsCustomBatchResponse
newtype AccountsCustombatch = AccountsCustombatch'
{ _accPayload :: AccountsCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
accountsCustombatch
:: AccountsCustomBatchRequest
-> AccountsCustombatch
accountsCustombatch pAccPayload_ =
AccountsCustombatch'
{ _accPayload = pAccPayload_
}
accPayload :: Lens' AccountsCustombatch AccountsCustomBatchRequest
accPayload
= lens _accPayload (\ s a -> s{_accPayload = a})
instance GoogleRequest AccountsCustombatch where
type Rs AccountsCustombatch =
AccountsCustomBatchResponse
type Scopes AccountsCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient AccountsCustombatch'{..}
= go (Just AltJSON) _accPayload
shoppingContentService
where go
= buildClient
(Proxy :: Proxy AccountsCustombatchResource)
mempty