{-# 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.Accountstatuses.Custombatch
(
AccountstatusesCustombatchResource
, accountstatusesCustombatch
, AccountstatusesCustombatch
, acPayload
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccountstatusesCustombatchResource =
"content" :>
"v2.1" :>
"accountstatuses" :>
"batch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AccountstatusesCustomBatchRequest :>
Post '[JSON] AccountstatusesCustomBatchResponse
newtype AccountstatusesCustombatch = AccountstatusesCustombatch'
{ _acPayload :: AccountstatusesCustomBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
accountstatusesCustombatch
:: AccountstatusesCustomBatchRequest
-> AccountstatusesCustombatch
accountstatusesCustombatch pAcPayload_ =
AccountstatusesCustombatch'
{ _acPayload = pAcPayload_
}
acPayload :: Lens' AccountstatusesCustombatch AccountstatusesCustomBatchRequest
acPayload
= lens _acPayload (\ s a -> s{_acPayload = a})
instance GoogleRequest AccountstatusesCustombatch
where
type Rs AccountstatusesCustombatch =
AccountstatusesCustomBatchResponse
type Scopes AccountstatusesCustombatch =
'["https://www.googleapis.com/auth/content"]
requestClient AccountstatusesCustombatch'{..}
= go (Just AltJSON) _acPayload shoppingContentService
where go
= buildClient
(Proxy :: Proxy AccountstatusesCustombatchResource)
mempty