{-# 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.Close
(
MattersCloseResource
, mattersClose
, MattersClose
, mcXgafv
, mcUploadProtocol
, mcAccessToken
, mcUploadType
, mcPayload
, mcMatterId
, mcCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersCloseResource =
"v1" :>
"matters" :>
CaptureMode "matterId" "close" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CloseMatterRequest :>
Post '[JSON] CloseMatterResponse
data MattersClose = MattersClose'
{ _mcXgafv :: !(Maybe Xgafv)
, _mcUploadProtocol :: !(Maybe Text)
, _mcAccessToken :: !(Maybe Text)
, _mcUploadType :: !(Maybe Text)
, _mcPayload :: !CloseMatterRequest
, _mcMatterId :: !Text
, _mcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersClose
:: CloseMatterRequest
-> Text
-> MattersClose
mattersClose pMcPayload_ pMcMatterId_ =
MattersClose'
{ _mcXgafv = Nothing
, _mcUploadProtocol = Nothing
, _mcAccessToken = Nothing
, _mcUploadType = Nothing
, _mcPayload = pMcPayload_
, _mcMatterId = pMcMatterId_
, _mcCallback = Nothing
}
mcXgafv :: Lens' MattersClose (Maybe Xgafv)
mcXgafv = lens _mcXgafv (\ s a -> s{_mcXgafv = a})
mcUploadProtocol :: Lens' MattersClose (Maybe Text)
mcUploadProtocol
= lens _mcUploadProtocol
(\ s a -> s{_mcUploadProtocol = a})
mcAccessToken :: Lens' MattersClose (Maybe Text)
mcAccessToken
= lens _mcAccessToken
(\ s a -> s{_mcAccessToken = a})
mcUploadType :: Lens' MattersClose (Maybe Text)
mcUploadType
= lens _mcUploadType (\ s a -> s{_mcUploadType = a})
mcPayload :: Lens' MattersClose CloseMatterRequest
mcPayload
= lens _mcPayload (\ s a -> s{_mcPayload = a})
mcMatterId :: Lens' MattersClose Text
mcMatterId
= lens _mcMatterId (\ s a -> s{_mcMatterId = a})
mcCallback :: Lens' MattersClose (Maybe Text)
mcCallback
= lens _mcCallback (\ s a -> s{_mcCallback = a})
instance GoogleRequest MattersClose where
type Rs MattersClose = CloseMatterResponse
type Scopes MattersClose =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersClose'{..}
= go _mcMatterId _mcXgafv _mcUploadProtocol
_mcAccessToken
_mcUploadType
_mcCallback
(Just AltJSON)
_mcPayload
vaultService
where go
= buildClient (Proxy :: Proxy MattersCloseResource)
mempty