View Source GoogleApi.Spanner.V1.Model.Session (google_api_spanner v0.39.0)

A session in the Cloud Spanner API.

Attributes

  • approximateLastUseTime (type: DateTime.t, default: nil) - Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
  • createTime (type: DateTime.t, default: nil) - Output only. The timestamp when the session is created.
  • creatorRole (type: String.t, default: nil) - The database role which created this session.
  • labels (type: map(), default: nil) - 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?)?`. * 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.
  • multiplexed (type: boolean(), default: nil) - Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via CreateSession but not via BatchCreateSessions. Multiplexed sessions may not be deleted nor listed.
  • name (type: String.t, default: nil) - Output only. The name of the session. This is always system-assigned.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Spanner.V1.Model.Session{
  approximateLastUseTime: DateTime.t() | nil,
  createTime: DateTime.t() | nil,
  creatorRole: String.t() | nil,
  labels: map() | nil,
  multiplexed: boolean() | nil,
  name: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.