{-# 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.Get
(
MattersHoldsGetResource
, mattersHoldsGet
, MattersHoldsGet
, mhgXgafv
, mhgUploadProtocol
, mhgHoldId
, mhgAccessToken
, mhgUploadType
, mhgMatterId
, mhgView
, mhgCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsGetResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Hold
data MattersHoldsGet = MattersHoldsGet'
{ _mhgXgafv :: !(Maybe Xgafv)
, _mhgUploadProtocol :: !(Maybe Text)
, _mhgHoldId :: !Text
, _mhgAccessToken :: !(Maybe Text)
, _mhgUploadType :: !(Maybe Text)
, _mhgMatterId :: !Text
, _mhgView :: !(Maybe Text)
, _mhgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsGet
:: Text
-> Text
-> MattersHoldsGet
mattersHoldsGet pMhgHoldId_ pMhgMatterId_ =
MattersHoldsGet'
{ _mhgXgafv = Nothing
, _mhgUploadProtocol = Nothing
, _mhgHoldId = pMhgHoldId_
, _mhgAccessToken = Nothing
, _mhgUploadType = Nothing
, _mhgMatterId = pMhgMatterId_
, _mhgView = Nothing
, _mhgCallback = Nothing
}
mhgXgafv :: Lens' MattersHoldsGet (Maybe Xgafv)
mhgXgafv = lens _mhgXgafv (\ s a -> s{_mhgXgafv = a})
mhgUploadProtocol :: Lens' MattersHoldsGet (Maybe Text)
mhgUploadProtocol
= lens _mhgUploadProtocol
(\ s a -> s{_mhgUploadProtocol = a})
mhgHoldId :: Lens' MattersHoldsGet Text
mhgHoldId
= lens _mhgHoldId (\ s a -> s{_mhgHoldId = a})
mhgAccessToken :: Lens' MattersHoldsGet (Maybe Text)
mhgAccessToken
= lens _mhgAccessToken
(\ s a -> s{_mhgAccessToken = a})
mhgUploadType :: Lens' MattersHoldsGet (Maybe Text)
mhgUploadType
= lens _mhgUploadType
(\ s a -> s{_mhgUploadType = a})
mhgMatterId :: Lens' MattersHoldsGet Text
mhgMatterId
= lens _mhgMatterId (\ s a -> s{_mhgMatterId = a})
mhgView :: Lens' MattersHoldsGet (Maybe Text)
mhgView = lens _mhgView (\ s a -> s{_mhgView = a})
mhgCallback :: Lens' MattersHoldsGet (Maybe Text)
mhgCallback
= lens _mhgCallback (\ s a -> s{_mhgCallback = a})
instance GoogleRequest MattersHoldsGet where
type Rs MattersHoldsGet = Hold
type Scopes MattersHoldsGet =
'["https://www.googleapis.com/auth/ediscovery",
"https://www.googleapis.com/auth/ediscovery.readonly"]
requestClient MattersHoldsGet'{..}
= go _mhgMatterId _mhgHoldId _mhgXgafv
_mhgUploadProtocol
_mhgAccessToken
_mhgUploadType
_mhgView
_mhgCallback
(Just AltJSON)
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsGetResource)
mempty