Show / Hide Table of Contents

Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.CommitRequest

Commits a transaction. The request includes the mutations to be applied to rows in the database. Commit might return an ABORTED error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If Commit returns ABORTED, the caller should retry the transaction from the beginning, reusing the same session. On very rare occasions, Commit might return UNKNOWN. This can happen, for example, if the client job experiences a 1+ hour networking failure. At that point, Cloud Spanner has lost track of the transaction outcome and we recommend that you perform another read from the database to see the state of things as they are now.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<CommitResponse>
SpannerBaseServiceRequest<CommitResponse>
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.CommitRequest
Implements
IClientServiceRequest<CommitResponse>
IClientServiceRequest
Inherited Members
SpannerBaseServiceRequest<CommitResponse>.Xgafv
SpannerBaseServiceRequest<CommitResponse>.AccessToken
SpannerBaseServiceRequest<CommitResponse>.Alt
SpannerBaseServiceRequest<CommitResponse>.Callback
SpannerBaseServiceRequest<CommitResponse>.Fields
SpannerBaseServiceRequest<CommitResponse>.Key
SpannerBaseServiceRequest<CommitResponse>.OauthToken
SpannerBaseServiceRequest<CommitResponse>.PrettyPrint
SpannerBaseServiceRequest<CommitResponse>.QuotaUser
SpannerBaseServiceRequest<CommitResponse>.UploadType
SpannerBaseServiceRequest<CommitResponse>.UploadProtocol
ClientServiceRequest<CommitResponse>.Execute()
ClientServiceRequest<CommitResponse>.ExecuteAsStream()
ClientServiceRequest<CommitResponse>.ExecuteAsync()
ClientServiceRequest<CommitResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<CommitResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<CommitResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<CommitResponse>.CreateRequest(bool?)
ClientServiceRequest<CommitResponse>.GenerateRequestUri()
ClientServiceRequest<CommitResponse>.GetDefaultETagAction(string)
ClientServiceRequest<CommitResponse>.ETagAction
ClientServiceRequest<CommitResponse>.ModifyRequest
ClientServiceRequest<CommitResponse>.ValidateParameters
ClientServiceRequest<CommitResponse>.ApiVersion
ClientServiceRequest<CommitResponse>.RequestParameters
ClientServiceRequest<CommitResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.CommitRequest : SpannerBaseServiceRequest<CommitResponse>, IClientServiceRequest<CommitResponse>, IClientServiceRequest

Constructors

CommitRequest(IClientService, CommitRequest, string)

Constructs a new Commit request.

Declaration
public CommitRequest(IClientService service, CommitRequest body, string session)
Parameters
Type Name Description
IClientService service
CommitRequest body
string session

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CommitResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CommitResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CommitResponse>.RestPath

Session

Required. The session in which the transaction to be committed 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
ClientServiceRequest<CommitResponse>.GetBody()

InitParameters()

Initializes Commit parameter list.

Declaration
protected override void InitParameters()
Overrides
SpannerBaseServiceRequest<CommitResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX