{-# 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.Productstatuses.Custombatch
(
ProductstatusesCustombatchResource
, productstatusesCustombatch
, ProductstatusesCustombatch
, proPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ProductstatusesCustombatchResource =
"content" :>
"v2.1" :>
"productstatuses" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ProductstatusesCustomBatchRequest :>
Post '[JSON] ProductstatusesCustomBatchResponse
newtype ProductstatusesCustombatch = ProductstatusesCustombatch'
{ _proPayload :: ProductstatusesCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
productstatusesCustombatch
:: ProductstatusesCustomBatchRequest
-> ProductstatusesCustombatch
productstatusesCustombatch pProPayload_ =
ProductstatusesCustombatch'
{ _proPayload = pProPayload_
}
proPayload :: Lens' ProductstatusesCustombatch ProductstatusesCustomBatchRequest
proPayload
= lens _proPayload (\ s a -> s{_proPayload = a})
instance GoogleRequest ProductstatusesCustombatch
where
type Rs ProductstatusesCustombatch =
ProductstatusesCustomBatchResponse
type Scopes ProductstatusesCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient ProductstatusesCustombatch'{..}
= go (Just AltJSON) _proPayload
shoppingContentService
where go
= buildClient
(Proxy :: Proxy ProductstatusesCustombatchResource)
mempty