Class: Google::Apis::SpannerV1::AdapterSession

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

A session in the Cloud Spanner Adapter API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdapterSession

Returns a new instance of AdapterSession.



101
102
103
# File 'lib/google/apis/spanner_v1/classes.rb', line 101

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Identifier. The name of the session. This is always system-assigned. Corresponds to the JSON property name

Returns:

  • (String)


99
100
101
# File 'lib/google/apis/spanner_v1/classes.rb', line 99

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



106
107
108
# File 'lib/google/apis/spanner_v1/classes.rb', line 106

def update!(**args)
  @name = args[:name] if args.key?(:name)
end