{-# 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.List
(
MattersListResource
, mattersList
, MattersList
, mlXgafv
, mlState
, mlUploadProtocol
, mlAccessToken
, mlUploadType
, mlView
, mlPageToken
, mlPageSize
, mlCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersListResource =
"v1" :>
"matters" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "state" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListMattersResponse
data MattersList = MattersList'
{ _mlXgafv :: !(Maybe Xgafv)
, _mlState :: !(Maybe Text)
, _mlUploadProtocol :: !(Maybe Text)
, _mlAccessToken :: !(Maybe Text)
, _mlUploadType :: !(Maybe Text)
, _mlView :: !(Maybe Text)
, _mlPageToken :: !(Maybe Text)
, _mlPageSize :: !(Maybe (Textual Int32))
, _mlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersList
:: MattersList
mattersList =
MattersList'
{ _mlXgafv = Nothing
, _mlState = Nothing
, _mlUploadProtocol = Nothing
, _mlAccessToken = Nothing
, _mlUploadType = Nothing
, _mlView = Nothing
, _mlPageToken = Nothing
, _mlPageSize = Nothing
, _mlCallback = Nothing
}
mlXgafv :: Lens' MattersList (Maybe Xgafv)
mlXgafv = lens _mlXgafv (\ s a -> s{_mlXgafv = a})
mlState :: Lens' MattersList (Maybe Text)
mlState = lens _mlState (\ s a -> s{_mlState = a})
mlUploadProtocol :: Lens' MattersList (Maybe Text)
mlUploadProtocol
= lens _mlUploadProtocol
(\ s a -> s{_mlUploadProtocol = a})
mlAccessToken :: Lens' MattersList (Maybe Text)
mlAccessToken
= lens _mlAccessToken
(\ s a -> s{_mlAccessToken = a})
mlUploadType :: Lens' MattersList (Maybe Text)
mlUploadType
= lens _mlUploadType (\ s a -> s{_mlUploadType = a})
mlView :: Lens' MattersList (Maybe Text)
mlView = lens _mlView (\ s a -> s{_mlView = a})
mlPageToken :: Lens' MattersList (Maybe Text)
mlPageToken
= lens _mlPageToken (\ s a -> s{_mlPageToken = a})
mlPageSize :: Lens' MattersList (Maybe Int32)
mlPageSize
= lens _mlPageSize (\ s a -> s{_mlPageSize = a}) .
mapping _Coerce
mlCallback :: Lens' MattersList (Maybe Text)
mlCallback
= lens _mlCallback (\ s a -> s{_mlCallback = a})
instance GoogleRequest MattersList where
type Rs MattersList = ListMattersResponse
type Scopes MattersList =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersList'{..}
= go _mlXgafv _mlState _mlUploadProtocol
_mlAccessToken
_mlUploadType
_mlView
_mlPageToken
_mlPageSize
_mlCallback
(Just AltJSON)
vaultService
where go
= buildClient (Proxy :: Proxy MattersListResource)
mempty