Class: Google::Apis::SpannerV1::BatchCreateSessionsRequest

Inherits:
Object
  • Object
show all
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

The request for BatchCreateSessions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchCreateSessionsRequest

Returns a new instance of BatchCreateSessionsRequest.



43
44
45
# File 'generated/google/apis/spanner_v1/classes.rb', line 43

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

Instance Attribute Details

#session_countFixnum

Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting session_count as necessary). Corresponds to the JSON property sessionCount

Returns:

  • (Fixnum)


36
37
38
# File 'generated/google/apis/spanner_v1/classes.rb', line 36

def session_count
  @session_count
end

#session_templateGoogle::Apis::SpannerV1::Session

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



41
42
43
# File 'generated/google/apis/spanner_v1/classes.rb', line 41

def session_template
  @session_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'generated/google/apis/spanner_v1/classes.rb', line 48

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