{-# 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.Undelete
(
MattersUndeleteResource
, mattersUndelete
, MattersUndelete
, muXgafv
, muUploadProtocol
, muAccessToken
, muUploadType
, muPayload
, muMatterId
, muCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersUndeleteResource =
"v1" :>
"matters" :>
CaptureMode "matterId" "undelete" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UndeleteMatterRequest :>
Post '[JSON] Matter
data MattersUndelete = MattersUndelete'
{ _muXgafv :: !(Maybe Xgafv)
, _muUploadProtocol :: !(Maybe Text)
, _muAccessToken :: !(Maybe Text)
, _muUploadType :: !(Maybe Text)
, _muPayload :: !UndeleteMatterRequest
, _muMatterId :: !Text
, _muCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersUndelete
:: UndeleteMatterRequest
-> Text
-> MattersUndelete
mattersUndelete pMuPayload_ pMuMatterId_ =
MattersUndelete'
{ _muXgafv = Nothing
, _muUploadProtocol = Nothing
, _muAccessToken = Nothing
, _muUploadType = Nothing
, _muPayload = pMuPayload_
, _muMatterId = pMuMatterId_
, _muCallback = Nothing
}
muXgafv :: Lens' MattersUndelete (Maybe Xgafv)
muXgafv = lens _muXgafv (\ s a -> s{_muXgafv = a})
muUploadProtocol :: Lens' MattersUndelete (Maybe Text)
muUploadProtocol
= lens _muUploadProtocol
(\ s a -> s{_muUploadProtocol = a})
muAccessToken :: Lens' MattersUndelete (Maybe Text)
muAccessToken
= lens _muAccessToken
(\ s a -> s{_muAccessToken = a})
muUploadType :: Lens' MattersUndelete (Maybe Text)
muUploadType
= lens _muUploadType (\ s a -> s{_muUploadType = a})
muPayload :: Lens' MattersUndelete UndeleteMatterRequest
muPayload
= lens _muPayload (\ s a -> s{_muPayload = a})
muMatterId :: Lens' MattersUndelete Text
muMatterId
= lens _muMatterId (\ s a -> s{_muMatterId = a})
muCallback :: Lens' MattersUndelete (Maybe Text)
muCallback
= lens _muCallback (\ s a -> s{_muCallback = a})
instance GoogleRequest MattersUndelete where
type Rs MattersUndelete = Matter
type Scopes MattersUndelete =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersUndelete'{..}
= go _muMatterId _muXgafv _muUploadProtocol
_muAccessToken
_muUploadType
_muCallback
(Just AltJSON)
_muPayload
vaultService
where go
= buildClient
(Proxy :: Proxy MattersUndeleteResource)
mempty