{-# 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.Holds.Accounts.List
(
MattersHoldsAccountsListResource
, mattersHoldsAccountsList
, MattersHoldsAccountsList
, mhalXgafv
, mhalUploadProtocol
, mhalHoldId
, mhalAccessToken
, mhalUploadType
, mhalMatterId
, mhalCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsAccountsListResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" Text :>
"accounts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListHeldAccountsResponse
data MattersHoldsAccountsList = MattersHoldsAccountsList'
{ _mhalXgafv :: !(Maybe Xgafv)
, _mhalUploadProtocol :: !(Maybe Text)
, _mhalHoldId :: !Text
, _mhalAccessToken :: !(Maybe Text)
, _mhalUploadType :: !(Maybe Text)
, _mhalMatterId :: !Text
, _mhalCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsAccountsList
:: Text
-> Text
-> MattersHoldsAccountsList
mattersHoldsAccountsList pMhalHoldId_ pMhalMatterId_ =
MattersHoldsAccountsList'
{ _mhalXgafv = Nothing
, _mhalUploadProtocol = Nothing
, _mhalHoldId = pMhalHoldId_
, _mhalAccessToken = Nothing
, _mhalUploadType = Nothing
, _mhalMatterId = pMhalMatterId_
, _mhalCallback = Nothing
}
mhalXgafv :: Lens' MattersHoldsAccountsList (Maybe Xgafv)
mhalXgafv
= lens _mhalXgafv (\ s a -> s{_mhalXgafv = a})
mhalUploadProtocol :: Lens' MattersHoldsAccountsList (Maybe Text)
mhalUploadProtocol
= lens _mhalUploadProtocol
(\ s a -> s{_mhalUploadProtocol = a})
mhalHoldId :: Lens' MattersHoldsAccountsList Text
mhalHoldId
= lens _mhalHoldId (\ s a -> s{_mhalHoldId = a})
mhalAccessToken :: Lens' MattersHoldsAccountsList (Maybe Text)
mhalAccessToken
= lens _mhalAccessToken
(\ s a -> s{_mhalAccessToken = a})
mhalUploadType :: Lens' MattersHoldsAccountsList (Maybe Text)
mhalUploadType
= lens _mhalUploadType
(\ s a -> s{_mhalUploadType = a})
mhalMatterId :: Lens' MattersHoldsAccountsList Text
mhalMatterId
= lens _mhalMatterId (\ s a -> s{_mhalMatterId = a})
mhalCallback :: Lens' MattersHoldsAccountsList (Maybe Text)
mhalCallback
= lens _mhalCallback (\ s a -> s{_mhalCallback = a})
instance GoogleRequest MattersHoldsAccountsList where
type Rs MattersHoldsAccountsList =
ListHeldAccountsResponse
type Scopes MattersHoldsAccountsList =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersHoldsAccountsList'{..}
= go _mhalMatterId _mhalHoldId _mhalXgafv
_mhalUploadProtocol
_mhalAccessToken
_mhalUploadType
_mhalCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsAccountsListResource)
mempty