{-# 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.RemoveHeldAccounts
(
MattersHoldsRemoveHeldAccountsResource
, mattersHoldsRemoveHeldAccounts
, MattersHoldsRemoveHeldAccounts
, mhrhaXgafv
, mhrhaUploadProtocol
, mhrhaHoldId
, mhrhaAccessToken
, mhrhaUploadType
, mhrhaPayload
, mhrhaMatterId
, mhrhaCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsRemoveHeldAccountsResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
CaptureMode "holdId" "removeHeldAccounts" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemoveHeldAccountsRequest :>
Post '[JSON] RemoveHeldAccountsResponse
data MattersHoldsRemoveHeldAccounts = MattersHoldsRemoveHeldAccounts'
{ _mhrhaXgafv :: !(Maybe Xgafv)
, _mhrhaUploadProtocol :: !(Maybe Text)
, _mhrhaHoldId :: !Text
, _mhrhaAccessToken :: !(Maybe Text)
, _mhrhaUploadType :: !(Maybe Text)
, _mhrhaPayload :: !RemoveHeldAccountsRequest
, _mhrhaMatterId :: !Text
, _mhrhaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsRemoveHeldAccounts
:: Text
-> RemoveHeldAccountsRequest
-> Text
-> MattersHoldsRemoveHeldAccounts
mattersHoldsRemoveHeldAccounts pMhrhaHoldId_ pMhrhaPayload_ pMhrhaMatterId_ =
MattersHoldsRemoveHeldAccounts'
{ _mhrhaXgafv = Nothing
, _mhrhaUploadProtocol = Nothing
, _mhrhaHoldId = pMhrhaHoldId_
, _mhrhaAccessToken = Nothing
, _mhrhaUploadType = Nothing
, _mhrhaPayload = pMhrhaPayload_
, _mhrhaMatterId = pMhrhaMatterId_
, _mhrhaCallback = Nothing
}
mhrhaXgafv :: Lens' MattersHoldsRemoveHeldAccounts (Maybe Xgafv)
mhrhaXgafv
= lens _mhrhaXgafv (\ s a -> s{_mhrhaXgafv = a})
mhrhaUploadProtocol :: Lens' MattersHoldsRemoveHeldAccounts (Maybe Text)
mhrhaUploadProtocol
= lens _mhrhaUploadProtocol
(\ s a -> s{_mhrhaUploadProtocol = a})
mhrhaHoldId :: Lens' MattersHoldsRemoveHeldAccounts Text
mhrhaHoldId
= lens _mhrhaHoldId (\ s a -> s{_mhrhaHoldId = a})
mhrhaAccessToken :: Lens' MattersHoldsRemoveHeldAccounts (Maybe Text)
mhrhaAccessToken
= lens _mhrhaAccessToken
(\ s a -> s{_mhrhaAccessToken = a})
mhrhaUploadType :: Lens' MattersHoldsRemoveHeldAccounts (Maybe Text)
mhrhaUploadType
= lens _mhrhaUploadType
(\ s a -> s{_mhrhaUploadType = a})
mhrhaPayload :: Lens' MattersHoldsRemoveHeldAccounts RemoveHeldAccountsRequest
mhrhaPayload
= lens _mhrhaPayload (\ s a -> s{_mhrhaPayload = a})
mhrhaMatterId :: Lens' MattersHoldsRemoveHeldAccounts Text
mhrhaMatterId
= lens _mhrhaMatterId
(\ s a -> s{_mhrhaMatterId = a})
mhrhaCallback :: Lens' MattersHoldsRemoveHeldAccounts (Maybe Text)
mhrhaCallback
= lens _mhrhaCallback
(\ s a -> s{_mhrhaCallback = a})
instance GoogleRequest MattersHoldsRemoveHeldAccounts
where
type Rs MattersHoldsRemoveHeldAccounts =
RemoveHeldAccountsResponse
type Scopes MattersHoldsRemoveHeldAccounts =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsRemoveHeldAccounts'{..}
= go _mhrhaMatterId _mhrhaHoldId _mhrhaXgafv
_mhrhaUploadProtocol
_mhrhaAccessToken
_mhrhaUploadType
_mhrhaCallback
(Just AltJSON)
_mhrhaPayload
vaultService
where go
= buildClient
(Proxy ::
Proxy MattersHoldsRemoveHeldAccountsResource)
mempty