Class: Google::Apis::SpannerV1::Session
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SpannerV1::Session
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
 generated/google/apis/spanner_v1/representations.rb,
 generated/google/apis/spanner_v1/representations.rb
Overview
A session in the Cloud Spanner API.
Instance Attribute Summary collapse
- 
  
    
      #approximate_last_use_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The labels for the session. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the session. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Session 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Session. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Session
Returns a new instance of Session
| 2238 2239 2240 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2238 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#approximate_last_use_time ⇒ String
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
| 2214 2215 2216 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2214 def approximate_last_use_time @approximate_last_use_time end | 
#create_time ⇒ String
Output only. The timestamp when the session is created.
Corresponds to the JSON property createTime
| 2219 2220 2221 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2219 def create_time @create_time end | 
#labels ⇒ Hash<String,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]*[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.
Corresponds to the JSON property labels
| 2230 2231 2232 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2230 def labels @labels end | 
#name ⇒ String
The name of the session. This is always system-assigned; values provided
when creating a session are ignored.
Corresponds to the JSON property name
| 2236 2237 2238 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2236 def name @name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2243 2244 2245 2246 2247 2248 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2243 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 |