{-# 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.Update
(
MattersUpdateResource
, mattersUpdate
, MattersUpdate
, matXgafv
, matUploadProtocol
, matAccessToken
, matUploadType
, matPayload
, matMatterId
, matCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersUpdateResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Matter :> Put '[JSON] Matter
data MattersUpdate = MattersUpdate'
{ _matXgafv :: !(Maybe Xgafv)
, _matUploadProtocol :: !(Maybe Text)
, _matAccessToken :: !(Maybe Text)
, _matUploadType :: !(Maybe Text)
, _matPayload :: !Matter
, _matMatterId :: !Text
, _matCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersUpdate
:: Matter
-> Text
-> MattersUpdate
mattersUpdate pMatPayload_ pMatMatterId_ =
MattersUpdate'
{ _matXgafv = Nothing
, _matUploadProtocol = Nothing
, _matAccessToken = Nothing
, _matUploadType = Nothing
, _matPayload = pMatPayload_
, _matMatterId = pMatMatterId_
, _matCallback = Nothing
}
matXgafv :: Lens' MattersUpdate (Maybe Xgafv)
matXgafv = lens _matXgafv (\ s a -> s{_matXgafv = a})
matUploadProtocol :: Lens' MattersUpdate (Maybe Text)
matUploadProtocol
= lens _matUploadProtocol
(\ s a -> s{_matUploadProtocol = a})
matAccessToken :: Lens' MattersUpdate (Maybe Text)
matAccessToken
= lens _matAccessToken
(\ s a -> s{_matAccessToken = a})
matUploadType :: Lens' MattersUpdate (Maybe Text)
matUploadType
= lens _matUploadType
(\ s a -> s{_matUploadType = a})
matPayload :: Lens' MattersUpdate Matter
matPayload
= lens _matPayload (\ s a -> s{_matPayload = a})
matMatterId :: Lens' MattersUpdate Text
matMatterId
= lens _matMatterId (\ s a -> s{_matMatterId = a})
matCallback :: Lens' MattersUpdate (Maybe Text)
matCallback
= lens _matCallback (\ s a -> s{_matCallback = a})
instance GoogleRequest MattersUpdate where
type Rs MattersUpdate = Matter
type Scopes MattersUpdate =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersUpdate'{..}
= go _matMatterId _matXgafv _matUploadProtocol
_matAccessToken
_matUploadType
_matCallback
(Just AltJSON)
_matPayload
vaultService
where go
= buildClient (Proxy :: Proxy MattersUpdateResource)
mempty