{-# 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.Regionalinventory.Custombatch
(
RegionalinventoryCustombatchResource
, regionalinventoryCustombatch
, RegionalinventoryCustombatch
, rcPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type RegionalinventoryCustombatchResource =
"content" :>
"v2.1" :>
"regionalinventory" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RegionalinventoryCustomBatchRequest
:> Post '[JSON] RegionalinventoryCustomBatchResponse
newtype RegionalinventoryCustombatch =
RegionalinventoryCustombatch'
{ _rcPayload :: RegionalinventoryCustomBatchRequest
}
deriving (Eq, Show, Data, Typeable, Generic)
regionalinventoryCustombatch
:: RegionalinventoryCustomBatchRequest
-> RegionalinventoryCustombatch
regionalinventoryCustombatch pRcPayload_ =
RegionalinventoryCustombatch' {_rcPayload = pRcPayload_}
rcPayload :: Lens' RegionalinventoryCustombatch RegionalinventoryCustomBatchRequest
rcPayload
= lens _rcPayload (\ s a -> s{_rcPayload = a})
instance GoogleRequest RegionalinventoryCustombatch
where
type Rs RegionalinventoryCustombatch =
RegionalinventoryCustomBatchResponse
type Scopes RegionalinventoryCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient RegionalinventoryCustombatch'{..}
= go (Just AltJSON) _rcPayload shoppingContentService
where go
= buildClient
(Proxy :: Proxy RegionalinventoryCustombatchResource)
mempty