{-# 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.Exports.List
(
MattersExportsListResource
, mattersExportsList
, MattersExportsList
, melXgafv
, melUploadProtocol
, melAccessToken
, melUploadType
, melMatterId
, melPageToken
, melPageSize
, melCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersExportsListResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"exports" :>
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] ListExportsResponse
data MattersExportsList = MattersExportsList'
{ _melXgafv :: !(Maybe Xgafv)
, _melUploadProtocol :: !(Maybe Text)
, _melAccessToken :: !(Maybe Text)
, _melUploadType :: !(Maybe Text)
, _melMatterId :: !Text
, _melPageToken :: !(Maybe Text)
, _melPageSize :: !(Maybe (Textual Int32))
, _melCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersExportsList
:: Text
-> MattersExportsList
mattersExportsList pMelMatterId_ =
MattersExportsList'
{ _melXgafv = Nothing
, _melUploadProtocol = Nothing
, _melAccessToken = Nothing
, _melUploadType = Nothing
, _melMatterId = pMelMatterId_
, _melPageToken = Nothing
, _melPageSize = Nothing
, _melCallback = Nothing
}
melXgafv :: Lens' MattersExportsList (Maybe Xgafv)
melXgafv = lens _melXgafv (\ s a -> s{_melXgafv = a})
melUploadProtocol :: Lens' MattersExportsList (Maybe Text)
melUploadProtocol
= lens _melUploadProtocol
(\ s a -> s{_melUploadProtocol = a})
melAccessToken :: Lens' MattersExportsList (Maybe Text)
melAccessToken
= lens _melAccessToken
(\ s a -> s{_melAccessToken = a})
melUploadType :: Lens' MattersExportsList (Maybe Text)
melUploadType
= lens _melUploadType
(\ s a -> s{_melUploadType = a})
melMatterId :: Lens' MattersExportsList Text
melMatterId
= lens _melMatterId (\ s a -> s{_melMatterId = a})
melPageToken :: Lens' MattersExportsList (Maybe Text)
melPageToken
= lens _melPageToken (\ s a -> s{_melPageToken = a})
melPageSize :: Lens' MattersExportsList (Maybe Int32)
melPageSize
= lens _melPageSize (\ s a -> s{_melPageSize = a}) .
mapping _Coerce
melCallback :: Lens' MattersExportsList (Maybe Text)
melCallback
= lens _melCallback (\ s a -> s{_melCallback = a})
instance GoogleRequest MattersExportsList where
type Rs MattersExportsList = ListExportsResponse
type Scopes MattersExportsList =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersExportsList'{..}
= go _melMatterId _melXgafv _melUploadProtocol
_melAccessToken
_melUploadType
_melPageToken
_melPageSize
_melCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersExportsListResource)
mempty