{-# 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.List
(
MattersHoldsListResource
, mattersHoldsList
, MattersHoldsList
, mhlXgafv
, mhlUploadProtocol
, mhlAccessToken
, mhlUploadType
, mhlMatterId
, mhlView
, mhlPageToken
, mhlPageSize
, mhlCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsListResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
QueryParam "$.xgafv" Xgafv :>
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] ListHoldsResponse
data MattersHoldsList = MattersHoldsList'
{ _mhlXgafv :: !(Maybe Xgafv)
, _mhlUploadProtocol :: !(Maybe Text)
, _mhlAccessToken :: !(Maybe Text)
, _mhlUploadType :: !(Maybe Text)
, _mhlMatterId :: !Text
, _mhlView :: !(Maybe Text)
, _mhlPageToken :: !(Maybe Text)
, _mhlPageSize :: !(Maybe (Textual Int32))
, _mhlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsList
:: Text
-> MattersHoldsList
mattersHoldsList pMhlMatterId_ =
MattersHoldsList'
{ _mhlXgafv = Nothing
, _mhlUploadProtocol = Nothing
, _mhlAccessToken = Nothing
, _mhlUploadType = Nothing
, _mhlMatterId = pMhlMatterId_
, _mhlView = Nothing
, _mhlPageToken = Nothing
, _mhlPageSize = Nothing
, _mhlCallback = Nothing
}
mhlXgafv :: Lens' MattersHoldsList (Maybe Xgafv)
mhlXgafv = lens _mhlXgafv (\ s a -> s{_mhlXgafv = a})
mhlUploadProtocol :: Lens' MattersHoldsList (Maybe Text)
mhlUploadProtocol
= lens _mhlUploadProtocol
(\ s a -> s{_mhlUploadProtocol = a})
mhlAccessToken :: Lens' MattersHoldsList (Maybe Text)
mhlAccessToken
= lens _mhlAccessToken
(\ s a -> s{_mhlAccessToken = a})
mhlUploadType :: Lens' MattersHoldsList (Maybe Text)
mhlUploadType
= lens _mhlUploadType
(\ s a -> s{_mhlUploadType = a})
mhlMatterId :: Lens' MattersHoldsList Text
mhlMatterId
= lens _mhlMatterId (\ s a -> s{_mhlMatterId = a})
mhlView :: Lens' MattersHoldsList (Maybe Text)
mhlView = lens _mhlView (\ s a -> s{_mhlView = a})
mhlPageToken :: Lens' MattersHoldsList (Maybe Text)
mhlPageToken
= lens _mhlPageToken (\ s a -> s{_mhlPageToken = a})
mhlPageSize :: Lens' MattersHoldsList (Maybe Int32)
mhlPageSize
= lens _mhlPageSize (\ s a -> s{_mhlPageSize = a}) .
mapping _Coerce
mhlCallback :: Lens' MattersHoldsList (Maybe Text)
mhlCallback
= lens _mhlCallback (\ s a -> s{_mhlCallback = a})
instance GoogleRequest MattersHoldsList where
type Rs MattersHoldsList = ListHoldsResponse
type Scopes MattersHoldsList =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersHoldsList'{..}
= go _mhlMatterId _mhlXgafv _mhlUploadProtocol
_mhlAccessToken
_mhlUploadType
_mhlView
_mhlPageToken
_mhlPageSize
_mhlCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsListResource)
mempty