Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BeginTransactionRequest
Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.
Inheritance
System.Object
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BeginTransactionRequest
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 BeginTransactionRequest : SpannerBaseServiceRequest<Transaction>, IClientServiceRequest<Transaction>, IClientServiceRequest
Constructors
BeginTransactionRequest(IClientService, BeginTransactionRequest, String)
Constructs a new BeginTransaction request.
Declaration
public BeginTransactionRequest(IClientService service, BeginTransactionRequest body, string session)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| BeginTransactionRequest | 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.Transaction>.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.Transaction>.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.Transaction>.RestPath
Session
Required. The session in which the transaction runs.
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.Transaction>.GetBody()
InitParameters()
Initializes BeginTransaction parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Spanner.v1.SpannerBaseServiceRequest<Google.Apis.Spanner.v1.Data.Transaction>.InitParameters()