class Google::Apis::SpannerV1::Session
A session in the Cloud Spanner API.
Attributes
Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time. Corresponds to the JSON property `approximateLastUseTime` @return [String]
Output only. The timestamp when the session is created. Corresponds to the JSON property `createTime` @return [String]
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])?`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z](*[a-z0-9])?)?`. * No more than 64 labels can be associated with a given session. See goo.gl/ xmQnxf for more information on and examples of labels. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Output only. The name of the session. This is always system-assigned. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/spanner_v1/classes.rb, line 3753 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/spanner_v1/classes.rb, line 3758 def update!(**args) @approximate_last_use_time = args[:approximate_last_use_time] if args.key?(:approximate_last_use_time) @create_time = args[:create_time] if args.key?(:create_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end