pub struct Session {
pub approximate_last_use_time: Option<DateTime<Utc>>,
pub create_time: Option<DateTime<Utc>>,
pub creator_role: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub multiplexed: Option<bool>,
pub name: Option<String>,
}Expand description
A session in the Cloud Spanner API.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- instances databases sessions create projects (response)
- instances databases sessions get projects (response)
Fields§
§approximate_last_use_time: Option<DateTime<Utc>>Output only. The approximate timestamp when the session is last used. It’s typically earlier than the actual last use time.
create_time: Option<DateTime<Utc>>Output only. The timestamp when the session is created.
creator_role: Option<String>The database role which created this session.
labels: Option<HashMap<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]([-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]([-a-z0-9]*[a-z0-9])?)?. * 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: Option<bool>Optional. If true, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent operations including any combination of read-only and read-write transactions. Use sessions.create to create multiplexed sessions. Don’t use BatchCreateSessions to create a multiplexed session. You can’t delete or list multiplexed sessions.
name: Option<String>Output only. The name of the session. This is always system-assigned.