Class: Google::Apis::SpannerV1::CreateSessionRequest

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

The request for CreateSession.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateSessionRequest

Returns a new instance of CreateSessionRequest.



1175
1176
1177
# File 'lib/google/apis/spanner_v1/classes.rb', line 1175

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

Instance Attribute Details

#sessionGoogle::Apis::SpannerV1::Session

A session in the Cloud Spanner API. Corresponds to the JSON property session



1173
1174
1175
# File 'lib/google/apis/spanner_v1/classes.rb', line 1173

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
# File 'lib/google/apis/spanner_v1/classes.rb', line 1180

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