{-# 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.Accounts.Create
(
MattersHoldsAccountsCreateResource
, mattersHoldsAccountsCreate
, MattersHoldsAccountsCreate
, mhacXgafv
, mhacUploadProtocol
, mhacHoldId
, mhacAccessToken
, mhacUploadType
, mhacPayload
, mhacMatterId
, mhacCallback
) where
import Network.Google.Prelude
import Network.Google.Vault.Types
type MattersHoldsAccountsCreateResource =
"v1" :>
"matters" :>
Capture "matterId" Text :>
"holds" :>
Capture "holdId" Text :>
"accounts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] HeldAccount :>
Post '[JSON] HeldAccount
data MattersHoldsAccountsCreate = MattersHoldsAccountsCreate'
{ _mhacXgafv :: !(Maybe Xgafv)
, _mhacUploadProtocol :: !(Maybe Text)
, _mhacHoldId :: !Text
, _mhacAccessToken :: !(Maybe Text)
, _mhacUploadType :: !(Maybe Text)
, _mhacPayload :: !HeldAccount
, _mhacMatterId :: !Text
, _mhacCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
mattersHoldsAccountsCreate
:: Text
-> HeldAccount
-> Text
-> MattersHoldsAccountsCreate
mattersHoldsAccountsCreate pMhacHoldId_ pMhacPayload_ pMhacMatterId_ =
MattersHoldsAccountsCreate'
{ _mhacXgafv = Nothing
, _mhacUploadProtocol = Nothing
, _mhacHoldId = pMhacHoldId_
, _mhacAccessToken = Nothing
, _mhacUploadType = Nothing
, _mhacPayload = pMhacPayload_
, _mhacMatterId = pMhacMatterId_
, _mhacCallback = Nothing
}
mhacXgafv :: Lens' MattersHoldsAccountsCreate (Maybe Xgafv)
mhacXgafv
= lens _mhacXgafv (\ s a -> s{_mhacXgafv = a})
mhacUploadProtocol :: Lens' MattersHoldsAccountsCreate (Maybe Text)
mhacUploadProtocol
= lens _mhacUploadProtocol
(\ s a -> s{_mhacUploadProtocol = a})
mhacHoldId :: Lens' MattersHoldsAccountsCreate Text
mhacHoldId
= lens _mhacHoldId (\ s a -> s{_mhacHoldId = a})
mhacAccessToken :: Lens' MattersHoldsAccountsCreate (Maybe Text)
mhacAccessToken
= lens _mhacAccessToken
(\ s a -> s{_mhacAccessToken = a})
mhacUploadType :: Lens' MattersHoldsAccountsCreate (Maybe Text)
mhacUploadType
= lens _mhacUploadType
(\ s a -> s{_mhacUploadType = a})
mhacPayload :: Lens' MattersHoldsAccountsCreate HeldAccount
mhacPayload
= lens _mhacPayload (\ s a -> s{_mhacPayload = a})
mhacMatterId :: Lens' MattersHoldsAccountsCreate Text
mhacMatterId
= lens _mhacMatterId (\ s a -> s{_mhacMatterId = a})
mhacCallback :: Lens' MattersHoldsAccountsCreate (Maybe Text)
mhacCallback
= lens _mhacCallback (\ s a -> s{_mhacCallback = a})
instance GoogleRequest MattersHoldsAccountsCreate
where
type Rs MattersHoldsAccountsCreate = HeldAccount
type Scopes MattersHoldsAccountsCreate =
'["https://www.googleapis.com/auth/ediscovery"]
requestClient MattersHoldsAccountsCreate'{..}
= go _mhacMatterId _mhacHoldId _mhacXgafv
_mhacUploadProtocol
_mhacAccessToken
_mhacUploadType
_mhacCallback
(Just AltJSON)
_mhacPayload
vaultService
where go
= buildClient
(Proxy :: Proxy MattersHoldsAccountsCreateResource)
mempty