{-# 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.Datafeeds.Custombatch
(
DatafeedsCustombatchResource
, datafeedsCustombatch
, DatafeedsCustombatch
, dPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type DatafeedsCustombatchResource =
"content" :>
"v2.1" :>
"datafeeds" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] DatafeedsCustomBatchRequest :>
Post '[JSON] DatafeedsCustomBatchResponse
newtype DatafeedsCustombatch = DatafeedsCustombatch'
{ _dPayload :: DatafeedsCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
datafeedsCustombatch
:: DatafeedsCustomBatchRequest
-> DatafeedsCustombatch
datafeedsCustombatch pDPayload_ =
DatafeedsCustombatch'
{ _dPayload = pDPayload_
}
dPayload :: Lens' DatafeedsCustombatch DatafeedsCustomBatchRequest
dPayload = lens _dPayload (\ s a -> s{_dPayload = a})
instance GoogleRequest DatafeedsCustombatch where
type Rs DatafeedsCustombatch =
DatafeedsCustomBatchResponse
type Scopes DatafeedsCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient DatafeedsCustombatch'{..}
= go (Just AltJSON) _dPayload shoppingContentService
where go
= buildClient
(Proxy :: Proxy DatafeedsCustombatchResource)
mempty