gogol-datastore-0.4.0: Google Cloud Datastore 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.Datastore.Projects.BeginTransaction

Contents

Description

Begins a new transaction.

See: Cloud Datastore API Reference for datastore.projects.beginTransaction.

Synopsis

REST Resource

type ProjectsBeginTransactionResource = "v1" :> ("projects" :> (CaptureMode "projectId" "beginTransaction" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BeginTransactionRequest :> Post '[JSON] BeginTransactionResponse))))))))) Source #

A resource alias for datastore.projects.beginTransaction method which the ProjectsBeginTransaction request conforms to.

Creating a Request

projectsBeginTransaction Source #

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

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

data ProjectsBeginTransaction Source #

Begins a new transaction.

See: projectsBeginTransaction smart constructor.

Instances
Eq ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

Data ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

Methods

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

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

toConstr :: ProjectsBeginTransaction -> Constr #

dataTypeOf :: ProjectsBeginTransaction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

Generic ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

Associated Types

type Rep ProjectsBeginTransaction :: Type -> Type #

GoogleRequest ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

type Rep ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

type Rep ProjectsBeginTransaction = D1 (MetaData "ProjectsBeginTransaction" "Network.Google.Resource.Datastore.Projects.BeginTransaction" "gogol-datastore-0.4.0-DxtGpCFjzKb7bKvoY75v5a" False) (C1 (MetaCons "ProjectsBeginTransaction'" PrefixI True) ((S1 (MetaSel (Just "_pbtXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pbtUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbtAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pbtUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbtPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BeginTransactionRequest)) :*: (S1 (MetaSel (Just "_pbtProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pbtCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

type Scopes ProjectsBeginTransaction = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/datastore" ': ([] :: [Symbol]))
type Rs ProjectsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Datastore.Projects.BeginTransaction

Request Lenses

pbtUploadProtocol :: Lens' ProjectsBeginTransaction (Maybe Text) Source #

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

pbtUploadType :: Lens' ProjectsBeginTransaction (Maybe Text) Source #

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

pbtProjectId :: Lens' ProjectsBeginTransaction Text Source #

The ID of the project against which to make the request.