{-# 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.Pos.Custombatch
(
PosCustombatchResource
, posCustombatch
, PosCustombatch
, pPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type PosCustombatchResource =
"content" :>
"v2.1" :>
"pos" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PosCustomBatchRequest :>
Post '[JSON] PosCustomBatchResponse
newtype PosCustombatch = PosCustombatch'
{ _pPayload :: PosCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
posCustombatch
:: PosCustomBatchRequest
-> PosCustombatch
posCustombatch pPPayload_ =
PosCustombatch'
{ _pPayload = pPPayload_
}
pPayload :: Lens' PosCustombatch PosCustomBatchRequest
pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
instance GoogleRequest PosCustombatch where
type Rs PosCustombatch = PosCustomBatchResponse
type Scopes PosCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient PosCustombatch'{..}
= go (Just AltJSON) _pPayload shoppingContentService
where go
= buildClient (Proxy :: Proxy PosCustombatchResource)
mempty