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
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BeginTransactionRequest
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.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 | |
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 runs.
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 BeginTransaction parameter list.
Declaration
protected override void InitParameters()