{-# 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.Exports.Create
(
VaultMattersExportsCreateResource,
VaultMattersExportsCreate (..),
newVaultMattersExportsCreate,
)
where
import Gogol.Prelude qualified as Core
import Gogol.Vault.Types
type VaultMattersExportsCreateResource =
"v1"
Core.:> "matters"
Core.:> Core.Capture "matterId" Core.Text
Core.:> "exports"
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] Export
Core.:> Core.Post '[Core.JSON] Export
data VaultMattersExportsCreate = VaultMattersExportsCreate
{
VaultMattersExportsCreate -> Maybe Xgafv
xgafv :: (Core.Maybe Xgafv),
VaultMattersExportsCreate -> Maybe Text
accessToken :: (Core.Maybe Core.Text),
VaultMattersExportsCreate -> Maybe Text
callback :: (Core.Maybe Core.Text),
VaultMattersExportsCreate -> Text
matterId :: Core.Text,
VaultMattersExportsCreate -> Export
payload :: Export,
VaultMattersExportsCreate -> Maybe Text
uploadType :: (Core.Maybe Core.Text),
VaultMattersExportsCreate -> Maybe Text
uploadProtocol :: (Core.Maybe Core.Text)
}
deriving (VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool
(VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool)
-> (VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool)
-> Eq VaultMattersExportsCreate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool
== :: VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool
$c/= :: VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool
/= :: VaultMattersExportsCreate -> VaultMattersExportsCreate -> Bool
Core.Eq, Int -> VaultMattersExportsCreate -> ShowS
[VaultMattersExportsCreate] -> ShowS
VaultMattersExportsCreate -> String
(Int -> VaultMattersExportsCreate -> ShowS)
-> (VaultMattersExportsCreate -> String)
-> ([VaultMattersExportsCreate] -> ShowS)
-> Show VaultMattersExportsCreate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VaultMattersExportsCreate -> ShowS
showsPrec :: Int -> VaultMattersExportsCreate -> ShowS
$cshow :: VaultMattersExportsCreate -> String
show :: VaultMattersExportsCreate -> String
$cshowList :: [VaultMattersExportsCreate] -> ShowS
showList :: [VaultMattersExportsCreate] -> ShowS
Core.Show, (forall x.
VaultMattersExportsCreate -> Rep VaultMattersExportsCreate x)
-> (forall x.
Rep VaultMattersExportsCreate x -> VaultMattersExportsCreate)
-> Generic VaultMattersExportsCreate
forall x.
Rep VaultMattersExportsCreate x -> VaultMattersExportsCreate
forall x.
VaultMattersExportsCreate -> Rep VaultMattersExportsCreate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
VaultMattersExportsCreate -> Rep VaultMattersExportsCreate x
from :: forall x.
VaultMattersExportsCreate -> Rep VaultMattersExportsCreate x
$cto :: forall x.
Rep VaultMattersExportsCreate x -> VaultMattersExportsCreate
to :: forall x.
Rep VaultMattersExportsCreate x -> VaultMattersExportsCreate
Core.Generic)
newVaultMattersExportsCreate ::
Core.Text ->
Export ->
VaultMattersExportsCreate
newVaultMattersExportsCreate :: Text -> Export -> VaultMattersExportsCreate
newVaultMattersExportsCreate Text
matterId Export
payload =
VaultMattersExportsCreate
{ 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,
matterId :: Text
matterId = Text
matterId,
payload :: Export
payload = Export
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 VaultMattersExportsCreate where
type Rs VaultMattersExportsCreate = Export
type Scopes VaultMattersExportsCreate = '[Ediscovery'FullControl]
requestClient :: VaultMattersExportsCreate -> GClient (Rs VaultMattersExportsCreate)
requestClient VaultMattersExportsCreate {Maybe Text
Maybe Xgafv
Text
Export
xgafv :: VaultMattersExportsCreate -> Maybe Xgafv
accessToken :: VaultMattersExportsCreate -> Maybe Text
callback :: VaultMattersExportsCreate -> Maybe Text
matterId :: VaultMattersExportsCreate -> Text
payload :: VaultMattersExportsCreate -> Export
uploadType :: VaultMattersExportsCreate -> Maybe Text
uploadProtocol :: VaultMattersExportsCreate -> Maybe Text
xgafv :: Maybe Xgafv
accessToken :: Maybe Text
callback :: Maybe Text
matterId :: Text
payload :: Export
uploadType :: Maybe Text
uploadProtocol :: Maybe Text
..} =
Text
-> Maybe Xgafv
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AltJSON
-> Export
-> ServiceConfig
-> GClient Export
go
Text
matterId
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)
Export
payload
ServiceConfig
vaultService
where
go :: Fn VaultMattersExportsCreateResource
go =
Proxy VaultMattersExportsCreateResource
-> Request -> Fn VaultMattersExportsCreateResource
forall {k} (fn :: k).
GoogleClient fn =>
Proxy fn -> Request -> Fn fn
Core.buildClient
(Proxy VaultMattersExportsCreateResource
forall {k} (t :: k). Proxy t
Core.Proxy :: Core.Proxy VaultMattersExportsCreateResource)
Request
forall a. Monoid a => a
Core.mempty