Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.RollbackRequest
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
.
Inheritance
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.RollbackRequest
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.RollbackRequest : SpannerBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
RollbackRequest(IClientService, RollbackRequest, string)
Constructs a new Rollback request.
Declaration
public RollbackRequest(IClientService service, RollbackRequest body, string session)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RollbackRequest | body | |
string | session |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Session
Required. The session in which the transaction to roll back is running.
Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Rollback parameter list.
Declaration
protected override void InitParameters()