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.Create

Contents

Description

Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.

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

Synopsis

REST Resource

type MattersCreateResource = "v1" :> ("matters" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Matter :> Post '[JSON] Matter)))))))) Source #

A resource alias for vault.matters.create method which the MattersCreate request conforms to.

Creating a Request

mattersCreate Source #

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

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

data MattersCreate Source #

Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.

See: mattersCreate smart constructor.

Instances
Eq MattersCreate Source # 
Instance details

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

Data MattersCreate Source # 
Instance details

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

Methods

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

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

toConstr :: MattersCreate -> Constr #

dataTypeOf :: MattersCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MattersCreate Source # 
Instance details

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

Generic MattersCreate Source # 
Instance details

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

Associated Types

type Rep MattersCreate :: Type -> Type #

GoogleRequest MattersCreate Source # 
Instance details

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

Associated Types

type Rs MattersCreate :: Type #

type Scopes MattersCreate :: [Symbol] #

type Rep MattersCreate Source # 
Instance details

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

type Rep MattersCreate = D1 (MetaData "MattersCreate" "Network.Google.Resource.Vault.Matters.Create" "gogol-vault-0.4.0-EgDnYDp2TSnGyXDp2UEGmS" False) (C1 (MetaCons "MattersCreate'" PrefixI True) ((S1 (MetaSel (Just "_mXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_mUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_mUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_mPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Matter) :*: S1 (MetaSel (Just "_mCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MattersCreate Source # 
Instance details

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

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

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

Request Lenses

mUploadProtocol :: Lens' MattersCreate (Maybe Text) Source #

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

mUploadType :: Lens' MattersCreate (Maybe Text) Source #

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

mPayload :: Lens' MattersCreate Matter Source #

Multipart request metadata.