{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE ImportQualifiedPost #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Gogol.Vault.Matters.Holds.Accounts.Create
(
VaultMattersHoldsAccountsCreateResource,
VaultMattersHoldsAccountsCreate (..),
newVaultMattersHoldsAccountsCreate,
)
where
import Gogol.Prelude qualified as Core
import Gogol.Vault.Types
type VaultMattersHoldsAccountsCreateResource =
"v1"
Core.:> "matters"
Core.:> Core.Capture "matterId" Core.Text
Core.:> "holds"
Core.:> Core.Capture "holdId" Core.Text
Core.:> "accounts"
Core.:> Core.QueryParam "$.xgafv" Xgafv
Core.:> Core.QueryParam "access_token" Core.Text
Core.:> Core.QueryParam "callback" Core.Text
Core.:> Core.QueryParam "uploadType" Core.Text
Core.:> Core.QueryParam "upload_protocol" Core.Text
Core.:> Core.QueryParam "alt" Core.AltJSON
Core.:> Core.ReqBody '[Core.JSON] HeldAccount
Core.:> Core.Post '[Core.JSON] HeldAccount
data VaultMattersHoldsAccountsCreate = VaultMattersHoldsAccountsCreate
{
VaultMattersHoldsAccountsCreate -> Maybe Xgafv
xgafv :: (Core.Maybe Xgafv),
VaultMattersHoldsAccountsCreate -> Maybe Text
accessToken :: (Core.Maybe Core.Text),
VaultMattersHoldsAccountsCreate -> Maybe Text
callback :: (Core.Maybe Core.Text),
VaultMattersHoldsAccountsCreate -> Text
holdId :: Core.Text,
VaultMattersHoldsAccountsCreate -> Text
matterId :: Core.Text,
VaultMattersHoldsAccountsCreate -> HeldAccount
payload :: HeldAccount,
VaultMattersHoldsAccountsCreate -> Maybe Text
uploadType :: (Core.Maybe Core.Text),
VaultMattersHoldsAccountsCreate -> Maybe Text
uploadProtocol :: (Core.Maybe Core.Text)
}
deriving (VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool
(VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool)
-> (VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool)
-> Eq VaultMattersHoldsAccountsCreate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool
== :: VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool
$c/= :: VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool
/= :: VaultMattersHoldsAccountsCreate
-> VaultMattersHoldsAccountsCreate -> Bool
Core.Eq, Int -> VaultMattersHoldsAccountsCreate -> ShowS
[VaultMattersHoldsAccountsCreate] -> ShowS
VaultMattersHoldsAccountsCreate -> String
(Int -> VaultMattersHoldsAccountsCreate -> ShowS)
-> (VaultMattersHoldsAccountsCreate -> String)
-> ([VaultMattersHoldsAccountsCreate] -> ShowS)
-> Show VaultMattersHoldsAccountsCreate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VaultMattersHoldsAccountsCreate -> ShowS
showsPrec :: Int -> VaultMattersHoldsAccountsCreate -> ShowS
$cshow :: VaultMattersHoldsAccountsCreate -> String
show :: VaultMattersHoldsAccountsCreate -> String
$cshowList :: [VaultMattersHoldsAccountsCreate] -> ShowS
showList :: [VaultMattersHoldsAccountsCreate] -> ShowS
Core.Show, (forall x.
VaultMattersHoldsAccountsCreate
-> Rep VaultMattersHoldsAccountsCreate x)
-> (forall x.
Rep VaultMattersHoldsAccountsCreate x
-> VaultMattersHoldsAccountsCreate)
-> Generic VaultMattersHoldsAccountsCreate
forall x.
Rep VaultMattersHoldsAccountsCreate x
-> VaultMattersHoldsAccountsCreate
forall x.
VaultMattersHoldsAccountsCreate
-> Rep VaultMattersHoldsAccountsCreate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
VaultMattersHoldsAccountsCreate
-> Rep VaultMattersHoldsAccountsCreate x
from :: forall x.
VaultMattersHoldsAccountsCreate
-> Rep VaultMattersHoldsAccountsCreate x
$cto :: forall x.
Rep VaultMattersHoldsAccountsCreate x
-> VaultMattersHoldsAccountsCreate
to :: forall x.
Rep VaultMattersHoldsAccountsCreate x
-> VaultMattersHoldsAccountsCreate
Core.Generic)
newVaultMattersHoldsAccountsCreate ::
Core.Text ->
Core.Text ->
HeldAccount ->
VaultMattersHoldsAccountsCreate
newVaultMattersHoldsAccountsCreate :: Text -> Text -> HeldAccount -> VaultMattersHoldsAccountsCreate
newVaultMattersHoldsAccountsCreate Text
holdId Text
matterId HeldAccount
payload =
VaultMattersHoldsAccountsCreate
{ xgafv :: Maybe Xgafv
xgafv = Maybe Xgafv
forall a. Maybe a
Core.Nothing,
accessToken :: Maybe Text
accessToken = Maybe Text
forall a. Maybe a
Core.Nothing,
callback :: Maybe Text
callback = Maybe Text
forall a. Maybe a
Core.Nothing,
holdId :: Text
holdId = Text
holdId,
matterId :: Text
matterId = Text
matterId,
payload :: HeldAccount
payload = HeldAccount
payload,
uploadType :: Maybe Text
uploadType = Maybe Text
forall a. Maybe a
Core.Nothing,
uploadProtocol :: Maybe Text
uploadProtocol = Maybe Text
forall a. Maybe a
Core.Nothing
}
instance Core.GoogleRequest VaultMattersHoldsAccountsCreate where
type Rs VaultMattersHoldsAccountsCreate = HeldAccount
type
Scopes VaultMattersHoldsAccountsCreate =
'[Ediscovery'FullControl]
requestClient :: VaultMattersHoldsAccountsCreate
-> GClient (Rs VaultMattersHoldsAccountsCreate)
requestClient VaultMattersHoldsAccountsCreate {Maybe Text
Maybe Xgafv
Text
HeldAccount
xgafv :: VaultMattersHoldsAccountsCreate -> Maybe Xgafv
accessToken :: VaultMattersHoldsAccountsCreate -> Maybe Text
callback :: VaultMattersHoldsAccountsCreate -> Maybe Text
holdId :: VaultMattersHoldsAccountsCreate -> Text
matterId :: VaultMattersHoldsAccountsCreate -> Text
payload :: VaultMattersHoldsAccountsCreate -> HeldAccount
uploadType :: VaultMattersHoldsAccountsCreate -> Maybe Text
uploadProtocol :: VaultMattersHoldsAccountsCreate -> Maybe Text
xgafv :: Maybe Xgafv
accessToken :: Maybe Text
callback :: Maybe Text
holdId :: Text
matterId :: Text
payload :: HeldAccount
uploadType :: Maybe Text
uploadProtocol :: Maybe Text
..} =
Text
-> Text
-> Maybe Xgafv
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AltJSON
-> HeldAccount
-> ServiceConfig
-> GClient HeldAccount
go
Text
matterId
Text
holdId
Maybe Xgafv
xgafv
Maybe Text
accessToken
Maybe Text
callback
Maybe Text
uploadType
Maybe Text
uploadProtocol
(AltJSON -> Maybe AltJSON
forall a. a -> Maybe a
Core.Just AltJSON
Core.AltJSON)
HeldAccount
payload
ServiceConfig
vaultService
where
go :: Fn VaultMattersHoldsAccountsCreateResource
go =
Proxy VaultMattersHoldsAccountsCreateResource
-> Request -> Fn VaultMattersHoldsAccountsCreateResource
forall {k} (fn :: k).
GoogleClient fn =>
Proxy fn -> Request -> Fn fn
Core.buildClient
(Proxy VaultMattersHoldsAccountsCreateResource
forall {k} (t :: k). Proxy t
Core.Proxy :: Core.Proxy VaultMattersHoldsAccountsCreateResource)
Request
forall a. Monoid a => a
Core.mempty