{-# 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 -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets the statuses of multiple products in a single request. -- -- /See:/ for @content.productstatuses.custombatch@. module Network.Google.Resource.Content.Productstatuses.Custombatch ( -- * REST Resource ProductstatusesCustombatchResource -- * Creating a Request , productstatusesCustombatch , ProductstatusesCustombatch -- * Request Lenses , proPayload ) where import Network.Google.Prelude import Network.Google.ShoppingContent.Types -- | A resource alias for @content.productstatuses.custombatch@ method which the -- 'ProductstatusesCustombatch' request conforms to. type ProductstatusesCustombatchResource = "content" :> "v2.1" :> "productstatuses" :> "batch" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] ProductstatusesCustomBatchRequest :> Post '[JSON] ProductstatusesCustomBatchResponse -- | Gets the statuses of multiple products in a single request. -- -- /See:/ 'productstatusesCustombatch' smart constructor. newtype ProductstatusesCustombatch = ProductstatusesCustombatch' { _proPayload :: ProductstatusesCustomBatchRequest } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'ProductstatusesCustombatch' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'proPayload' productstatusesCustombatch :: ProductstatusesCustomBatchRequest -- ^ 'proPayload' -> ProductstatusesCustombatch productstatusesCustombatch pProPayload_ = ProductstatusesCustombatch' { _proPayload = pProPayload_ } -- | Multipart request metadata. 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