{-# 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.Datafeedstatuses.Custombatch
(
DatafeedstatusesCustombatchResource
, datafeedstatusesCustombatch
, DatafeedstatusesCustombatch
, dcPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type DatafeedstatusesCustombatchResource =
"content" :>
"v2.1" :>
"datafeedstatuses" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] DatafeedstatusesCustomBatchRequest :>
Post '[JSON] DatafeedstatusesCustomBatchResponse
newtype DatafeedstatusesCustombatch = DatafeedstatusesCustombatch'
{ _dcPayload :: DatafeedstatusesCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
datafeedstatusesCustombatch
:: DatafeedstatusesCustomBatchRequest
-> DatafeedstatusesCustombatch
datafeedstatusesCustombatch pDcPayload_ =
DatafeedstatusesCustombatch'
{ _dcPayload = pDcPayload_
}
dcPayload :: Lens' DatafeedstatusesCustombatch DatafeedstatusesCustomBatchRequest
dcPayload
= lens _dcPayload (\ s a -> s{_dcPayload = a})
instance GoogleRequest DatafeedstatusesCustombatch
where
type Rs DatafeedstatusesCustombatch =
DatafeedstatusesCustomBatchResponse
type Scopes DatafeedstatusesCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient DatafeedstatusesCustombatch'{..}
= go (Just AltJSON) _dcPayload shoppingContentService
where go
= buildClient
(Proxy :: Proxy DatafeedstatusesCustombatchResource)
mempty