{-# 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.Vault.Matters.Holds.AddHeldAccounts
(
MattersHoldsAddHeldAccountsResource
, mattersHoldsAddHeldAccounts
, MattersHoldsAddHeldAccounts
, mhahaXgafv
, mhahaUploadProtocol
, mhahaHoldId
, mhahaAccessToken
, mhahaUploadType
, mhahaPayload
, mhahaMatterId
, mhahaCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsAddHeldAccountsResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
CaptureMode "holdId" "addHeldAccounts" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AddHeldAccountsRequest :>
Post '[JSON] AddHeldAccountsResponse
data MattersHoldsAddHeldAccounts = MattersHoldsAddHeldAccounts'
{ _mhahaXgafv :: !(Maybe Xgafv)
, _mhahaUploadProtocol :: !(Maybe Text)
, _mhahaHoldId :: !Text
, _mhahaAccessToken :: !(Maybe Text)
, _mhahaUploadType :: !(Maybe Text)
, _mhahaPayload :: !AddHeldAccountsRequest
, _mhahaMatterId :: !Text
, _mhahaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsAddHeldAccounts
:: Text
-> AddHeldAccountsRequest
-> Text
-> MattersHoldsAddHeldAccounts
mattersHoldsAddHeldAccounts pMhahaHoldId_ pMhahaPayload_ pMhahaMatterId_ =
MattersHoldsAddHeldAccounts'
{ _mhahaXgafv = Nothing
, _mhahaUploadProtocol = Nothing
, _mhahaHoldId = pMhahaHoldId_
, _mhahaAccessToken = Nothing
, _mhahaUploadType = Nothing
, _mhahaPayload = pMhahaPayload_
, _mhahaMatterId = pMhahaMatterId_
, _mhahaCallback = Nothing
}
mhahaXgafv :: Lens' MattersHoldsAddHeldAccounts (Maybe Xgafv)
mhahaXgafv
= lens _mhahaXgafv (\ s a -> s{_mhahaXgafv = a})
mhahaUploadProtocol :: Lens' MattersHoldsAddHeldAccounts (Maybe Text)
mhahaUploadProtocol
= lens _mhahaUploadProtocol
(\ s a -> s{_mhahaUploadProtocol = a})
mhahaHoldId :: Lens' MattersHoldsAddHeldAccounts Text
mhahaHoldId
= lens _mhahaHoldId (\ s a -> s{_mhahaHoldId = a})
mhahaAccessToken :: Lens' MattersHoldsAddHeldAccounts (Maybe Text)
mhahaAccessToken
= lens _mhahaAccessToken
(\ s a -> s{_mhahaAccessToken = a})
mhahaUploadType :: Lens' MattersHoldsAddHeldAccounts (Maybe Text)
mhahaUploadType
= lens _mhahaUploadType
(\ s a -> s{_mhahaUploadType = a})
mhahaPayload :: Lens' MattersHoldsAddHeldAccounts AddHeldAccountsRequest
mhahaPayload
= lens _mhahaPayload (\ s a -> s{_mhahaPayload = a})
mhahaMatterId :: Lens' MattersHoldsAddHeldAccounts Text
mhahaMatterId
= lens _mhahaMatterId
(\ s a -> s{_mhahaMatterId = a})
mhahaCallback :: Lens' MattersHoldsAddHeldAccounts (Maybe Text)
mhahaCallback
= lens _mhahaCallback
(\ s a -> s{_mhahaCallback = a})
instance GoogleRequest MattersHoldsAddHeldAccounts
where
type Rs MattersHoldsAddHeldAccounts =
AddHeldAccountsResponse
type Scopes MattersHoldsAddHeldAccounts =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsAddHeldAccounts'{..}
= go _mhahaMatterId _mhahaHoldId _mhahaXgafv
_mhahaUploadProtocol
_mhahaAccessToken
_mhahaUploadType
_mhahaCallback
(Just AltJSON)
_mhahaPayload
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsAddHeldAccountsResource)
mempty