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

Contents

Description

Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesSessionsRollbackResource = "v1" :> (CaptureMode "session" "rollback" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty)))))))) Source #

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

Creating a Request

data ProjectsInstancesDatabasesSessionsRollback Source #

Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.

See: projectsInstancesDatabasesSessionsRollback smart constructor.

Instances
Eq ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

Data ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesSessionsRollback -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsRollback -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

Generic ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsRollback = D1 (MetaData "ProjectsInstancesDatabasesSessionsRollback" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Rollback" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsRollback'" PrefixI True) ((S1 (MetaSel (Just "_proXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_proUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_proAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_proUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_proPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RollbackRequest)) :*: (S1 (MetaSel (Just "_proSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_proCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsRollback Source # 
Instance details

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

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

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

Request Lenses

proUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text) Source #

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

proUploadType :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text) Source #

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

proSession :: Lens' ProjectsInstancesDatabasesSessionsRollback Text Source #

Required. The session in which the transaction to roll back is running.