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
System.Object
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.RollbackRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class 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 | |
| System.String | session |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Empty>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Empty>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Empty>.RestPath
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 |
|---|---|
| System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Empty>.GetBody()
InitParameters()
Initializes Rollback parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Spanner.v1.SpannerBaseServiceRequest<Google.Apis.Spanner.v1.Data.Empty>.InitParameters()