Resource: Session
A representation of a session.
JSON representation |
---|
{ "name" : string , "uuid" : string , "createTime" : string , "runtimeInfo" : { object ( |
name
string
Identifier. The resource name of the session.
uuid
string
Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.
createTime
string (
Timestamp
format)
Output only. The time when the session was created.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
runtimeInfo
object (
RuntimeInfo
)
Output only. Runtime information about session execution.
state
enum (
State
)
Output only. A state of the session.
stateTime
string (
Timestamp
format)
Output only. The time when the session entered the current state.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
creator
string
Output only. The email address of the user who created the session.
labels
map (key: string, value: string)
Optional. The labels to associate with the session. Label keysmust contain 1 to 63 characters, and must conform to RFC 1035 . Label valuesmay be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 . No more than 32 labels can be associated with a session.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
runtimeConfig
object (
RuntimeConfig
)
Optional. Runtime configuration for the session execution.
environmentConfig
object (
EnvironmentConfig
)
Optional. Environment configuration for the session execution.
user
string
Optional. The email address of the user who owns the session.
stateHistory[]
object (
SessionStateHistory
)
Output only. Historical state information for the session.
sessionTemplate
string
Optional. The session template used by the session.
Only resource names, including project ID and location, are valid.
Example: * https://www.googleapis.com/compute/v1/projects/[projectId]/locations/[dataproc_region]/sessionTemplates/[template_id]
* projects/[projectId]/locations/[dataproc_region]/sessionTemplates/[template_id]
The template must be in the same project and Dataproc region as the session.
session_config
. The session configuration. session_config
can be only one of the following:jupyterSession
object (
JupyterConfig
)
Optional. Jupyter session config.
sparkConnectSession
object (
SparkConnectConfig
)
Optional. Spark connect session config.
State
The session state.
Enums | |
---|---|
STATE_UNSPECIFIED
|
The session state is unknown. |
CREATING
|
The session is created prior to running. |
ACTIVE
|
The session is running. |
TERMINATING
|
The session is terminating. |
TERMINATED
|
The session is terminated successfully. |
FAILED
|
The session is no longer running due to an error. |
SessionStateHistory
Historical state information.
JSON representation |
---|
{
"state"
:
enum (
|
Fields | |
---|---|
state
|
Output only. The state of the session at this point in the session history. |
stateStartTime
|
Output only. The time when the session entered the historical state. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Methods |
|
---|---|
|
Create an interactive session asynchronously. |
|
Deletes the interactive session resource. |
|
Gets the resource representation for an interactive session. |
|
Lists interactive sessions. |
|
Terminates the interactive session. |