{-# 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.Delete
(
MattersHoldsDeleteResource
, mattersHoldsDelete
, MattersHoldsDelete
, mhdXgafv
, mhdUploadProtocol
, mhdHoldId
, mhdAccessToken
, mhdUploadType
, mhdMatterId
, mhdCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsDeleteResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" 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 MattersHoldsDelete = MattersHoldsDelete'
{ _mhdXgafv :: !(Maybe Xgafv)
, _mhdUploadProtocol :: !(Maybe Text)
, _mhdHoldId :: !Text
, _mhdAccessToken :: !(Maybe Text)
, _mhdUploadType :: !(Maybe Text)
, _mhdMatterId :: !Text
, _mhdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsDelete
:: Text
-> Text
-> MattersHoldsDelete
mattersHoldsDelete pMhdHoldId_ pMhdMatterId_ =
MattersHoldsDelete'
{ _mhdXgafv = Nothing
, _mhdUploadProtocol = Nothing
, _mhdHoldId = pMhdHoldId_
, _mhdAccessToken = Nothing
, _mhdUploadType = Nothing
, _mhdMatterId = pMhdMatterId_
, _mhdCallback = Nothing
}
mhdXgafv :: Lens' MattersHoldsDelete (Maybe Xgafv)
mhdXgafv = lens _mhdXgafv (\ s a -> s{_mhdXgafv = a})
mhdUploadProtocol :: Lens' MattersHoldsDelete (Maybe Text)
mhdUploadProtocol
= lens _mhdUploadProtocol
(\ s a -> s{_mhdUploadProtocol = a})
mhdHoldId :: Lens' MattersHoldsDelete Text
mhdHoldId
= lens _mhdHoldId (\ s a -> s{_mhdHoldId = a})
mhdAccessToken :: Lens' MattersHoldsDelete (Maybe Text)
mhdAccessToken
= lens _mhdAccessToken
(\ s a -> s{_mhdAccessToken = a})
mhdUploadType :: Lens' MattersHoldsDelete (Maybe Text)
mhdUploadType
= lens _mhdUploadType
(\ s a -> s{_mhdUploadType = a})
mhdMatterId :: Lens' MattersHoldsDelete Text
mhdMatterId
= lens _mhdMatterId (\ s a -> s{_mhdMatterId = a})
mhdCallback :: Lens' MattersHoldsDelete (Maybe Text)
mhdCallback
= lens _mhdCallback (\ s a -> s{_mhdCallback = a})
instance GoogleRequest MattersHoldsDelete where
type Rs MattersHoldsDelete = Empty
type Scopes MattersHoldsDelete =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsDelete'{..}
= go _mhdMatterId _mhdHoldId _mhdXgafv
_mhdUploadProtocol
_mhdAccessToken
_mhdUploadType
_mhdCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsDeleteResource)
mempty