{-# 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.ShippingSettings.Custombatch
(
ShippingSettingsCustombatchResource
, shippingSettingsCustombatch
, ShippingSettingsCustombatch
, sscPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ShippingSettingsCustombatchResource =
"content" :>
"v2.1" :>
"shippingsettings" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ShippingSettingsCustomBatchRequest :>
Post '[JSON] ShippingSettingsCustomBatchResponse
newtype ShippingSettingsCustombatch = ShippingSettingsCustombatch'
{ _sscPayload :: ShippingSettingsCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
shippingSettingsCustombatch
:: ShippingSettingsCustomBatchRequest
-> ShippingSettingsCustombatch
shippingSettingsCustombatch pSscPayload_ =
ShippingSettingsCustombatch'
{ _sscPayload = pSscPayload_
}
sscPayload :: Lens' ShippingSettingsCustombatch ShippingSettingsCustomBatchRequest
sscPayload
= lens _sscPayload (\ s a -> s{_sscPayload = a})
instance GoogleRequest ShippingSettingsCustombatch
where
type Rs ShippingSettingsCustombatch =
ShippingSettingsCustomBatchResponse
type Scopes ShippingSettingsCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient ShippingSettingsCustombatch'{..}
= go (Just AltJSON) _sscPayload
shoppingContentService
where go
= buildClient
(Proxy :: Proxy ShippingSettingsCustombatchResource)
mempty