{-# 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.List
(
MattersSavedQueriesListResource
, mattersSavedQueriesList
, MattersSavedQueriesList
, msqlXgafv
, msqlUploadProtocol
, msqlAccessToken
, msqlUploadType
, msqlMatterId
, msqlPageToken
, msqlPageSize
, msqlCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersSavedQueriesListResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"savedQueries" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSavedQueriesResponse
data MattersSavedQueriesList = MattersSavedQueriesList'
{ _msqlXgafv :: !(Maybe Xgafv)
, _msqlUploadProtocol :: !(Maybe Text)
, _msqlAccessToken :: !(Maybe Text)
, _msqlUploadType :: !(Maybe Text)
, _msqlMatterId :: !Text
, _msqlPageToken :: !(Maybe Text)
, _msqlPageSize :: !(Maybe (Textual Int32))
, _msqlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersSavedQueriesList
:: Text
-> MattersSavedQueriesList
mattersSavedQueriesList pMsqlMatterId_ =
MattersSavedQueriesList'
{ _msqlXgafv = Nothing
, _msqlUploadProtocol = Nothing
, _msqlAccessToken = Nothing
, _msqlUploadType = Nothing
, _msqlMatterId = pMsqlMatterId_
, _msqlPageToken = Nothing
, _msqlPageSize = Nothing
, _msqlCallback = Nothing
}
msqlXgafv :: Lens' MattersSavedQueriesList (Maybe Xgafv)
msqlXgafv
= lens _msqlXgafv (\ s a -> s{_msqlXgafv = a})
msqlUploadProtocol :: Lens' MattersSavedQueriesList (Maybe Text)
msqlUploadProtocol
= lens _msqlUploadProtocol
(\ s a -> s{_msqlUploadProtocol = a})
msqlAccessToken :: Lens' MattersSavedQueriesList (Maybe Text)
msqlAccessToken
= lens _msqlAccessToken
(\ s a -> s{_msqlAccessToken = a})
msqlUploadType :: Lens' MattersSavedQueriesList (Maybe Text)
msqlUploadType
= lens _msqlUploadType
(\ s a -> s{_msqlUploadType = a})
msqlMatterId :: Lens' MattersSavedQueriesList Text
msqlMatterId
= lens _msqlMatterId (\ s a -> s{_msqlMatterId = a})
msqlPageToken :: Lens' MattersSavedQueriesList (Maybe Text)
msqlPageToken
= lens _msqlPageToken
(\ s a -> s{_msqlPageToken = a})
msqlPageSize :: Lens' MattersSavedQueriesList (Maybe Int32)
msqlPageSize
= lens _msqlPageSize (\ s a -> s{_msqlPageSize = a})
. mapping _Coerce
msqlCallback :: Lens' MattersSavedQueriesList (Maybe Text)
msqlCallback
= lens _msqlCallback (\ s a -> s{_msqlCallback = a})
instance GoogleRequest MattersSavedQueriesList where
type Rs MattersSavedQueriesList =
ListSavedQueriesResponse
type Scopes MattersSavedQueriesList =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersSavedQueriesList'{..}
= go _msqlMatterId _msqlXgafv _msqlUploadProtocol
_msqlAccessToken
_msqlUploadType
_msqlPageToken
_msqlPageSize
_msqlCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersSavedQueriesListResource)
mempty