{-# 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.Update
(
MattersHoldsUpdateResource
, mattersHoldsUpdate
, MattersHoldsUpdate
, mhuXgafv
, mhuUploadProtocol
, mhuHoldId
, mhuAccessToken
, mhuUploadType
, mhuPayload
, mhuMatterId
, mhuCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsUpdateResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Hold :> Put '[JSON] Hold
data MattersHoldsUpdate = MattersHoldsUpdate'
{ _mhuXgafv :: !(Maybe Xgafv)
, _mhuUploadProtocol :: !(Maybe Text)
, _mhuHoldId :: !Text
, _mhuAccessToken :: !(Maybe Text)
, _mhuUploadType :: !(Maybe Text)
, _mhuPayload :: !Hold
, _mhuMatterId :: !Text
, _mhuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsUpdate
:: Text
-> Hold
-> Text
-> MattersHoldsUpdate
mattersHoldsUpdate pMhuHoldId_ pMhuPayload_ pMhuMatterId_ =
MattersHoldsUpdate'
{ _mhuXgafv = Nothing
, _mhuUploadProtocol = Nothing
, _mhuHoldId = pMhuHoldId_
, _mhuAccessToken = Nothing
, _mhuUploadType = Nothing
, _mhuPayload = pMhuPayload_
, _mhuMatterId = pMhuMatterId_
, _mhuCallback = Nothing
}
mhuXgafv :: Lens' MattersHoldsUpdate (Maybe Xgafv)
mhuXgafv = lens _mhuXgafv (\ s a -> s{_mhuXgafv = a})
mhuUploadProtocol :: Lens' MattersHoldsUpdate (Maybe Text)
mhuUploadProtocol
= lens _mhuUploadProtocol
(\ s a -> s{_mhuUploadProtocol = a})
mhuHoldId :: Lens' MattersHoldsUpdate Text
mhuHoldId
= lens _mhuHoldId (\ s a -> s{_mhuHoldId = a})
mhuAccessToken :: Lens' MattersHoldsUpdate (Maybe Text)
mhuAccessToken
= lens _mhuAccessToken
(\ s a -> s{_mhuAccessToken = a})
mhuUploadType :: Lens' MattersHoldsUpdate (Maybe Text)
mhuUploadType
= lens _mhuUploadType
(\ s a -> s{_mhuUploadType = a})
mhuPayload :: Lens' MattersHoldsUpdate Hold
mhuPayload
= lens _mhuPayload (\ s a -> s{_mhuPayload = a})
mhuMatterId :: Lens' MattersHoldsUpdate Text
mhuMatterId
= lens _mhuMatterId (\ s a -> s{_mhuMatterId = a})
mhuCallback :: Lens' MattersHoldsUpdate (Maybe Text)
mhuCallback
= lens _mhuCallback (\ s a -> s{_mhuCallback = a})
instance GoogleRequest MattersHoldsUpdate where
type Rs MattersHoldsUpdate = Hold
type Scopes MattersHoldsUpdate =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsUpdate'{..}
= go _mhuMatterId _mhuHoldId _mhuXgafv
_mhuUploadProtocol
_mhuAccessToken
_mhuUploadType
_mhuCallback
(Just AltJSON)
_mhuPayload
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsUpdateResource)
mempty