{-# 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.Accounts.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) -- -- Retrieves, inserts, updates, and deletes multiple Merchant Center -- (sub-)accounts in a single request. -- -- /See:/ for @content.accounts.custombatch@. module Network.Google.Resource.Content.Accounts.Custombatch ( -- * REST Resource AccountsCustombatchResource -- * Creating a Request , accountsCustombatch , AccountsCustombatch -- * Request Lenses , accPayload ) where import Network.Google.Prelude import Network.Google.ShoppingContent.Types -- | A resource alias for @content.accounts.custombatch@ method which the -- 'AccountsCustombatch' request conforms to. type AccountsCustombatchResource = "content" :> "v2.1" :> "accounts" :> "batch" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] AccountsCustomBatchRequest :> Post '[JSON] AccountsCustomBatchResponse -- | Retrieves, inserts, updates, and deletes multiple Merchant Center -- (sub-)accounts in a single request. -- -- /See:/ 'accountsCustombatch' smart constructor. newtype AccountsCustombatch = AccountsCustombatch' { _accPayload :: AccountsCustomBatchRequest } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'AccountsCustombatch' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'accPayload' accountsCustombatch :: AccountsCustomBatchRequest -- ^ 'accPayload' -> AccountsCustombatch accountsCustombatch pAccPayload_ = AccountsCustombatch' { _accPayload = pAccPayload_ } -- | Multipart request metadata. accPayload :: Lens' AccountsCustombatch AccountsCustomBatchRequest accPayload = lens _accPayload (\ s a -> s{_accPayload = a}) instance GoogleRequest AccountsCustombatch where type Rs AccountsCustombatch = AccountsCustomBatchResponse type Scopes AccountsCustombatch = '["https://www.googleapis.com/auth/content"] requestClient AccountsCustombatch'{..} = go (Just AltJSON) _accPayload shoppingContentService where go = buildClient (Proxy :: Proxy AccountsCustombatchResource) mempty