{-# 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.Reopen
(
MattersReopenResource
, mattersReopen
, MattersReopen
, mrXgafv
, mrUploadProtocol
, mrAccessToken
, mrUploadType
, mrPayload
, mrMatterId
, mrCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersReopenResource =
"v1" :>
"matters" :>
CaptureMode "matterId" "reopen" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ReopenMatterRequest :>
Post '[JSON] ReopenMatterResponse
data MattersReopen = MattersReopen'
{ _mrXgafv :: !(Maybe Xgafv)
, _mrUploadProtocol :: !(Maybe Text)
, _mrAccessToken :: !(Maybe Text)
, _mrUploadType :: !(Maybe Text)
, _mrPayload :: !ReopenMatterRequest
, _mrMatterId :: !Text
, _mrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersReopen
:: ReopenMatterRequest
-> Text
-> MattersReopen
mattersReopen pMrPayload_ pMrMatterId_ =
MattersReopen'
{ _mrXgafv = Nothing
, _mrUploadProtocol = Nothing
, _mrAccessToken = Nothing
, _mrUploadType = Nothing
, _mrPayload = pMrPayload_
, _mrMatterId = pMrMatterId_
, _mrCallback = Nothing
}
mrXgafv :: Lens' MattersReopen (Maybe Xgafv)
mrXgafv = lens _mrXgafv (\ s a -> s{_mrXgafv = a})
mrUploadProtocol :: Lens' MattersReopen (Maybe Text)
mrUploadProtocol
= lens _mrUploadProtocol
(\ s a -> s{_mrUploadProtocol = a})
mrAccessToken :: Lens' MattersReopen (Maybe Text)
mrAccessToken
= lens _mrAccessToken
(\ s a -> s{_mrAccessToken = a})
mrUploadType :: Lens' MattersReopen (Maybe Text)
mrUploadType
= lens _mrUploadType (\ s a -> s{_mrUploadType = a})
mrPayload :: Lens' MattersReopen ReopenMatterRequest
mrPayload
= lens _mrPayload (\ s a -> s{_mrPayload = a})
mrMatterId :: Lens' MattersReopen Text
mrMatterId
= lens _mrMatterId (\ s a -> s{_mrMatterId = a})
mrCallback :: Lens' MattersReopen (Maybe Text)
mrCallback
= lens _mrCallback (\ s a -> s{_mrCallback = a})
instance GoogleRequest MattersReopen where
type Rs MattersReopen = ReopenMatterResponse
type Scopes MattersReopen =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersReopen'{..}
= go _mrMatterId _mrXgafv _mrUploadProtocol
_mrAccessToken
_mrUploadType
_mrCallback
(Just AltJSON)
_mrPayload
vaultService
where go
= buildClient (Proxy :: Proxy MattersReopenResource)
mempty