Show / Hide Table of Contents

Class Session

A session in the Cloud Spanner API.

Inheritance
object
Session
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class Session : IDirectResponseSchema

Properties

ApproximateLastUseTime

object representation of ApproximateLastUseTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ApproximateLastUseTimeDateTimeOffset instead.")]
public virtual object ApproximateLastUseTime { get; set; }
Property Value
Type Description
object

ApproximateLastUseTimeDateTimeOffset

DateTimeOffset representation of ApproximateLastUseTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ApproximateLastUseTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ApproximateLastUseTimeRaw

Output only. The approximate timestamp when the session is last used. It's typically earlier than the actual last use time.

Declaration
[JsonProperty("approximateLastUseTime")]
public virtual string ApproximateLastUseTimeRaw { get; set; }
Property Value
Type Description
string

CreateTime

object representation of CreateTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type Description
object

CreateTimeDateTimeOffset

DateTimeOffset representation of CreateTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CreateTimeRaw

Output only. The timestamp when the session is created.

Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type Description
string

CreatorRole

The database role which created this session.

Declaration
[JsonProperty("creatorRole")]
public virtual string CreatorRole { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Labels

The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. * Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels.

Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type Description
IDictionary<string, string>

Multiplexed

Optional. If true, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent read-only operations. Don't use them for read-write transactions, partitioned reads, or partitioned queries. Use sessions.create to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.

Declaration
[JsonProperty("multiplexed")]
public virtual bool? Multiplexed { get; set; }
Property Value
Type Description
bool?

Name

Output only. The name of the session. This is always system-assigned.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX