{-# 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.Delete
(
MattersDeleteResource
, mattersDelete
, MattersDelete
, mdXgafv
, mdUploadProtocol
, mdAccessToken
, mdUploadType
, mdMatterId
, mdCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersDeleteResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Matter
data MattersDelete = MattersDelete'
{ _mdXgafv :: !(Maybe Xgafv)
, _mdUploadProtocol :: !(Maybe Text)
, _mdAccessToken :: !(Maybe Text)
, _mdUploadType :: !(Maybe Text)
, _mdMatterId :: !Text
, _mdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersDelete
:: Text
-> MattersDelete
mattersDelete pMdMatterId_ =
MattersDelete'
{ _mdXgafv = Nothing
, _mdUploadProtocol = Nothing
, _mdAccessToken = Nothing
, _mdUploadType = Nothing
, _mdMatterId = pMdMatterId_
, _mdCallback = Nothing
}
mdXgafv :: Lens' MattersDelete (Maybe Xgafv)
mdXgafv = lens _mdXgafv (\ s a -> s{_mdXgafv = a})
mdUploadProtocol :: Lens' MattersDelete (Maybe Text)
mdUploadProtocol
= lens _mdUploadProtocol
(\ s a -> s{_mdUploadProtocol = a})
mdAccessToken :: Lens' MattersDelete (Maybe Text)
mdAccessToken
= lens _mdAccessToken
(\ s a -> s{_mdAccessToken = a})
mdUploadType :: Lens' MattersDelete (Maybe Text)
mdUploadType
= lens _mdUploadType (\ s a -> s{_mdUploadType = a})
mdMatterId :: Lens' MattersDelete Text
mdMatterId
= lens _mdMatterId (\ s a -> s{_mdMatterId = a})
mdCallback :: Lens' MattersDelete (Maybe Text)
mdCallback
= lens _mdCallback (\ s a -> s{_mdCallback = a})
instance GoogleRequest MattersDelete where
type Rs MattersDelete = Matter
type Scopes MattersDelete =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersDelete'{..}
= go _mdMatterId _mdXgafv _mdUploadProtocol
_mdAccessToken
_mdUploadType
_mdCallback
(Just AltJSON)
vaultService
where go
= buildClient (Proxy :: Proxy MattersDeleteResource)
mempty