{-# 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.SavedQueries.Delete
(
MattersSavedQueriesDeleteResource
, mattersSavedQueriesDelete
, MattersSavedQueriesDelete
, msqdXgafv
, msqdSavedQueryId
, msqdUploadProtocol
, msqdAccessToken
, msqdUploadType
, msqdMatterId
, msqdCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersSavedQueriesDeleteResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"savedQueries" :>
Capture "savedQueryId" 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 MattersSavedQueriesDelete = MattersSavedQueriesDelete'
{ _msqdXgafv :: !(Maybe Xgafv)
, _msqdSavedQueryId :: !Text
, _msqdUploadProtocol :: !(Maybe Text)
, _msqdAccessToken :: !(Maybe Text)
, _msqdUploadType :: !(Maybe Text)
, _msqdMatterId :: !Text
, _msqdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersSavedQueriesDelete
:: Text
-> Text
-> MattersSavedQueriesDelete
mattersSavedQueriesDelete pMsqdSavedQueryId_ pMsqdMatterId_ =
MattersSavedQueriesDelete'
{ _msqdXgafv = Nothing
, _msqdSavedQueryId = pMsqdSavedQueryId_
, _msqdUploadProtocol = Nothing
, _msqdAccessToken = Nothing
, _msqdUploadType = Nothing
, _msqdMatterId = pMsqdMatterId_
, _msqdCallback = Nothing
}
msqdXgafv :: Lens' MattersSavedQueriesDelete (Maybe Xgafv)
msqdXgafv
= lens _msqdXgafv (\ s a -> s{_msqdXgafv = a})
msqdSavedQueryId :: Lens' MattersSavedQueriesDelete Text
msqdSavedQueryId
= lens _msqdSavedQueryId
(\ s a -> s{_msqdSavedQueryId = a})
msqdUploadProtocol :: Lens' MattersSavedQueriesDelete (Maybe Text)
msqdUploadProtocol
= lens _msqdUploadProtocol
(\ s a -> s{_msqdUploadProtocol = a})
msqdAccessToken :: Lens' MattersSavedQueriesDelete (Maybe Text)
msqdAccessToken
= lens _msqdAccessToken
(\ s a -> s{_msqdAccessToken = a})
msqdUploadType :: Lens' MattersSavedQueriesDelete (Maybe Text)
msqdUploadType
= lens _msqdUploadType
(\ s a -> s{_msqdUploadType = a})
msqdMatterId :: Lens' MattersSavedQueriesDelete Text
msqdMatterId
= lens _msqdMatterId (\ s a -> s{_msqdMatterId = a})
msqdCallback :: Lens' MattersSavedQueriesDelete (Maybe Text)
msqdCallback
= lens _msqdCallback (\ s a -> s{_msqdCallback = a})
instance GoogleRequest MattersSavedQueriesDelete
where
type Rs MattersSavedQueriesDelete = Empty
type Scopes MattersSavedQueriesDelete =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersSavedQueriesDelete'{..}
= go _msqdMatterId _msqdSavedQueryId _msqdXgafv
_msqdUploadProtocol
_msqdAccessToken
_msqdUploadType
_msqdCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersSavedQueriesDeleteResource)
mempty