{-# 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.Get
(
MattersSavedQueriesGetResource
, mattersSavedQueriesGet
, MattersSavedQueriesGet
, msqgXgafv
, msqgSavedQueryId
, msqgUploadProtocol
, msqgAccessToken
, msqgUploadType
, msqgMatterId
, msqgCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersSavedQueriesGetResource =
"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 :> Get '[JSON] SavedQuery
data MattersSavedQueriesGet = MattersSavedQueriesGet'
{ _msqgXgafv :: !(Maybe Xgafv)
, _msqgSavedQueryId :: !Text
, _msqgUploadProtocol :: !(Maybe Text)
, _msqgAccessToken :: !(Maybe Text)
, _msqgUploadType :: !(Maybe Text)
, _msqgMatterId :: !Text
, _msqgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersSavedQueriesGet
:: Text
-> Text
-> MattersSavedQueriesGet
mattersSavedQueriesGet pMsqgSavedQueryId_ pMsqgMatterId_ =
MattersSavedQueriesGet'
{ _msqgXgafv = Nothing
, _msqgSavedQueryId = pMsqgSavedQueryId_
, _msqgUploadProtocol = Nothing
, _msqgAccessToken = Nothing
, _msqgUploadType = Nothing
, _msqgMatterId = pMsqgMatterId_
, _msqgCallback = Nothing
}
msqgXgafv :: Lens' MattersSavedQueriesGet (Maybe Xgafv)
msqgXgafv
= lens _msqgXgafv (\ s a -> s{_msqgXgafv = a})
msqgSavedQueryId :: Lens' MattersSavedQueriesGet Text
msqgSavedQueryId
= lens _msqgSavedQueryId
(\ s a -> s{_msqgSavedQueryId = a})
msqgUploadProtocol :: Lens' MattersSavedQueriesGet (Maybe Text)
msqgUploadProtocol
= lens _msqgUploadProtocol
(\ s a -> s{_msqgUploadProtocol = a})
msqgAccessToken :: Lens' MattersSavedQueriesGet (Maybe Text)
msqgAccessToken
= lens _msqgAccessToken
(\ s a -> s{_msqgAccessToken = a})
msqgUploadType :: Lens' MattersSavedQueriesGet (Maybe Text)
msqgUploadType
= lens _msqgUploadType
(\ s a -> s{_msqgUploadType = a})
msqgMatterId :: Lens' MattersSavedQueriesGet Text
msqgMatterId
= lens _msqgMatterId (\ s a -> s{_msqgMatterId = a})
msqgCallback :: Lens' MattersSavedQueriesGet (Maybe Text)
msqgCallback
= lens _msqgCallback (\ s a -> s{_msqgCallback = a})
instance GoogleRequest MattersSavedQueriesGet where
type Rs MattersSavedQueriesGet = SavedQuery
type Scopes MattersSavedQueriesGet =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersSavedQueriesGet'{..}
= go _msqgMatterId _msqgSavedQueryId _msqgXgafv
_msqgUploadProtocol
_msqgAccessToken
_msqgUploadType
_msqgCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersSavedQueriesGetResource)
mempty