Reference documentation and code samples for the Google Cloud Dataproc V1 Client class Session.
A representation of a session.
Generated from protobuf message google.cloud.dataproc.v1.Session
Namespace
Google \ Cloud \ Dataproc \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. 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.
↳ create_time
↳ jupyter_session
↳ spark_connect_session
↳ runtime_info
↳ state
int
Output only. A state of the session.
↳ state_message
string
Output only. Session state details, such as the failure description if the state is FAILED
.
↳ state_time
↳ creator
string
Output only. The email address of the user who created the session.
↳ labels
array| Google\Protobuf\Internal\MapField
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.
↳ runtime_config
↳ environment_config
↳ user
string
Optional. The email address of the user who owns the session.
↳ state_history
↳ session_template
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/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
* * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
The template must be in the same project and Dataproc region as the session.
getName
Required. The resource name of the session.
string
setName
Required. The resource name of the session.
var
string
$this
getUuid
Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.
string
setUuid
Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.
var
string
$this
getCreateTime
Output only. The time when the session was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the session was created.
$this
getJupyterSession
Optional. Jupyter session config.
hasJupyterSession
setJupyterSession
Optional. Jupyter session config.
$this
getSparkConnectSession
Optional. Spark Connect session config.
hasSparkConnectSession
setSparkConnectSession
Optional. Spark Connect session config.
$this
getRuntimeInfo
Output only. Runtime information about session execution.
hasRuntimeInfo
clearRuntimeInfo
setRuntimeInfo
Output only. Runtime information about session execution.
$this
getState
Output only. A state of the session.
int
setState
Output only. A state of the session.
var
int
$this
getStateMessage
Output only. Session state details, such as the failure
description if the state is FAILED
.
string
setStateMessage
Output only. Session state details, such as the failure
description if the state is FAILED
.
var
string
$this
getStateTime
Output only. The time when the session entered the current state.
hasStateTime
clearStateTime
setStateTime
Output only. The time when the session entered the current state.
$this
getCreator
Output only. The email address of the user who created the session.
string
setCreator
Output only. The email address of the user who created the session.
var
string
$this
getLabels
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.
setLabels
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.
$this
getRuntimeConfig
Optional. Runtime configuration for the session execution.
hasRuntimeConfig
clearRuntimeConfig
setRuntimeConfig
Optional. Runtime configuration for the session execution.
$this
getEnvironmentConfig
Optional. Environment configuration for the session execution.
hasEnvironmentConfig
clearEnvironmentConfig
setEnvironmentConfig
Optional. Environment configuration for the session execution.
$this
getUser
Optional. The email address of the user who owns the session.
string
setUser
Optional. The email address of the user who owns the session.
var
string
$this
getStateHistory
Output only. Historical state information for the session.
setStateHistory
Output only. Historical state information for the session.
$this
getSessionTemplate
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/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
-
projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
The template must be in the same project and Dataproc region as the session.
string
setSessionTemplate
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/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
-
projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]
The template must be in the same project and Dataproc region as the session.
var
string
$this
getSessionConfig
string