Class: Google::Spanner::V1::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb

Overview

A session in the Cloud Spanner API.

Instance Attribute Summary collapse

Instance Attribute Details

#approximate_last_use_timeGoogle::Protobuf::Timestamp

Returns Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

Returns:

  • (Google::Protobuf::Timestamp)

    Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.



50
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 50

class Session; end

#create_timeGoogle::Protobuf::Timestamp

Returns Output only. The timestamp when the session is created.

Returns:



50
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 50

class Session; end

#labelsHash{String => String}

Returns 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?+.
  • Label values must be between 0 and 63 characters long and must conform to the regular expression +(a-z?)?+.
  • 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.

Returns:

  • (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?+.
    • Label values must be between 0 and 63 characters long and must conform to the regular expression +(a-z?)?+.
    • 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.



50
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 50

class Session; end

#nameString

Returns The name of the session. This is always system-assigned; values provided when creating a session are ignored.

Returns:

  • (String)

    The name of the session. This is always system-assigned; values provided when creating a session are ignored.



50
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 50

class Session; end