gogol-vault-0.4.0: Google G Suite Vault SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Contents

Description

Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.

See: G Suite Vault API Reference for vault.matters.holds.accounts.create.

Synopsis

REST Resource

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)))))))))))) Source #

A resource alias for vault.matters.holds.accounts.create method which the MattersHoldsAccountsCreate request conforms to.

Creating a Request

mattersHoldsAccountsCreate Source #

Creates a value of MattersHoldsAccountsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data MattersHoldsAccountsCreate Source #

Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.

See: mattersHoldsAccountsCreate smart constructor.

Instances
Eq MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Data MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MattersHoldsAccountsCreate -> c MattersHoldsAccountsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MattersHoldsAccountsCreate #

toConstr :: MattersHoldsAccountsCreate -> Constr #

dataTypeOf :: MattersHoldsAccountsCreate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MattersHoldsAccountsCreate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MattersHoldsAccountsCreate) #

gmapT :: (forall b. Data b => b -> b) -> MattersHoldsAccountsCreate -> MattersHoldsAccountsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MattersHoldsAccountsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MattersHoldsAccountsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> MattersHoldsAccountsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MattersHoldsAccountsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MattersHoldsAccountsCreate -> m MattersHoldsAccountsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MattersHoldsAccountsCreate -> m MattersHoldsAccountsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MattersHoldsAccountsCreate -> m MattersHoldsAccountsCreate #

Show MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Generic MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Associated Types

type Rep MattersHoldsAccountsCreate :: Type -> Type #

GoogleRequest MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

type Rep MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

type Rep MattersHoldsAccountsCreate = D1 (MetaData "MattersHoldsAccountsCreate" "Network.Google.Resource.Vault.Matters.Holds.Accounts.Create" "gogol-vault-0.4.0-EgDnYDp2TSnGyXDp2UEGmS" False) (C1 (MetaCons "MattersHoldsAccountsCreate'" PrefixI True) (((S1 (MetaSel (Just "_mhacXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_mhacUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_mhacHoldId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mhacAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_mhacUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mhacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 HeldAccount)) :*: (S1 (MetaSel (Just "_mhacMatterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mhacCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

type Scopes MattersHoldsAccountsCreate = "https://www.googleapis.com/auth/ediscovery" ': ([] :: [Symbol])
type Rs MattersHoldsAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.Vault.Matters.Holds.Accounts.Create

Request Lenses

mhacUploadProtocol :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

mhacUploadType :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").