{-# 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.Accounts.Delete
(
MattersHoldsAccountsDeleteResource
, mattersHoldsAccountsDelete
, MattersHoldsAccountsDelete
, mhadXgafv
, mhadUploadProtocol
, mhadHoldId
, mhadAccessToken
, mhadUploadType
, mhadMatterId
, mhadAccountId
, mhadCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsAccountsDeleteResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" Text :>
"accounts" :>
Capture "accountId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data MattersHoldsAccountsDelete = MattersHoldsAccountsDelete'
{ _mhadXgafv :: !(Maybe Xgafv)
, _mhadUploadProtocol :: !(Maybe Text)
, _mhadHoldId :: !Text
, _mhadAccessToken :: !(Maybe Text)
, _mhadUploadType :: !(Maybe Text)
, _mhadMatterId :: !Text
, _mhadAccountId :: !Text
, _mhadCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsAccountsDelete
:: Text
-> Text
-> Text
-> MattersHoldsAccountsDelete
mattersHoldsAccountsDelete pMhadHoldId_ pMhadMatterId_ pMhadAccountId_ =
MattersHoldsAccountsDelete'
{ _mhadXgafv = Nothing
, _mhadUploadProtocol = Nothing
, _mhadHoldId = pMhadHoldId_
, _mhadAccessToken = Nothing
, _mhadUploadType = Nothing
, _mhadMatterId = pMhadMatterId_
, _mhadAccountId = pMhadAccountId_
, _mhadCallback = Nothing
}
mhadXgafv :: Lens' MattersHoldsAccountsDelete (Maybe Xgafv)
mhadXgafv
= lens _mhadXgafv (\ s a -> s{_mhadXgafv = a})
mhadUploadProtocol :: Lens' MattersHoldsAccountsDelete (Maybe Text)
mhadUploadProtocol
= lens _mhadUploadProtocol
(\ s a -> s{_mhadUploadProtocol = a})
mhadHoldId :: Lens' MattersHoldsAccountsDelete Text
mhadHoldId
= lens _mhadHoldId (\ s a -> s{_mhadHoldId = a})
mhadAccessToken :: Lens' MattersHoldsAccountsDelete (Maybe Text)
mhadAccessToken
= lens _mhadAccessToken
(\ s a -> s{_mhadAccessToken = a})
mhadUploadType :: Lens' MattersHoldsAccountsDelete (Maybe Text)
mhadUploadType
= lens _mhadUploadType
(\ s a -> s{_mhadUploadType = a})
mhadMatterId :: Lens' MattersHoldsAccountsDelete Text
mhadMatterId
= lens _mhadMatterId (\ s a -> s{_mhadMatterId = a})
mhadAccountId :: Lens' MattersHoldsAccountsDelete Text
mhadAccountId
= lens _mhadAccountId
(\ s a -> s{_mhadAccountId = a})
mhadCallback :: Lens' MattersHoldsAccountsDelete (Maybe Text)
mhadCallback
= lens _mhadCallback (\ s a -> s{_mhadCallback = a})
instance GoogleRequest MattersHoldsAccountsDelete
where
type Rs MattersHoldsAccountsDelete = Empty
type Scopes MattersHoldsAccountsDelete =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsAccountsDelete'{..}
= go _mhadMatterId _mhadHoldId _mhadAccountId
_mhadXgafv
_mhadUploadProtocol
_mhadAccessToken
_mhadUploadType
_mhadCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsAccountsDeleteResource)
mempty