gogol-spanner-0.4.0: Google Cloud Spanner 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.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

Contents

Description

Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.

See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.beginTransaction.

Synopsis

REST Resource

type ProjectsInstancesDatabasesSessionsBeginTransactionResource = "v1" :> (CaptureMode "session" "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] Transaction)))))))) Source #

A resource alias for spanner.projects.instances.databases.sessions.beginTransaction method which the ProjectsInstancesDatabasesSessionsBeginTransaction request conforms to.

Creating a Request

data ProjectsInstancesDatabasesSessionsBeginTransaction Source #

Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.

See: projectsInstancesDatabasesSessionsBeginTransaction smart constructor.

Instances
Eq ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

Data ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

Methods

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

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

toConstr :: ProjectsInstancesDatabasesSessionsBeginTransaction -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsBeginTransaction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

Generic ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

GoogleRequest ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

type Rep ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

type Rep ProjectsInstancesDatabasesSessionsBeginTransaction = D1 (MetaData "ProjectsInstancesDatabasesSessionsBeginTransaction" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsBeginTransaction'" PrefixI True) ((S1 (MetaSel (Just "_pidsbtXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsbtUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsbtAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidsbtUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsbtPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BeginTransactionRequest)) :*: (S1 (MetaSel (Just "_pidsbtSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsbtCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsBeginTransaction Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

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

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.BeginTransaction

Request Lenses

pidsbtUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text) Source #

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

pidsbtUploadType :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text) Source #

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

pidsbtSession :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction Text Source #

Required. The session in which the transaction runs.