gogol-spanner-0.5.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.Commit

Contents

Description

Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesSessionsCommitResource = "v1" :> (CaptureMode "session" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommitRequest :> Post '[JSON] CommitResponse)))))))) Source #

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

Creating a Request

data ProjectsInstancesDatabasesSessionsCommit Source #

Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session.

See: projectsInstancesDatabasesSessionsCommit smart constructor.

Instances
Eq ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

Data ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesSessionsCommit -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsCommit -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

Generic ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsCommit = D1 (MetaData "ProjectsInstancesDatabasesSessionsCommit" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Commit" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsCommit'" PrefixI True) ((S1 (MetaSel (Just "_pidscXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidscUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidscAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidscUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidscPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CommitRequest)) :*: (S1 (MetaSel (Just "_pidscSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidscCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsCommit Source # 
Instance details

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

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

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

Request Lenses

pidscUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text) Source #

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

pidscUploadType :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text) Source #

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

pidscSession :: Lens' ProjectsInstancesDatabasesSessionsCommit Text Source #

Required. The session in which the transaction to be committed is running.