Reference documentation and code samples for the Cloud Dataproc V1 API class Google::Cloud::Dataproc::V1::Session.
A representation of a session.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time when the session was created.
#creator
def creator() -> ::String
- (::String) — Output only. The email address of the user who created the session.
#environment_config
def environment_config() -> ::Google::Cloud::Dataproc::V1::EnvironmentConfig
- (::Google::Cloud::Dataproc::V1::EnvironmentConfig) — Optional. Environment configuration for the session execution.
#environment_config=
def environment_config=(value) -> ::Google::Cloud::Dataproc::V1::EnvironmentConfig
- value (::Google::Cloud::Dataproc::V1::EnvironmentConfig) — Optional. Environment configuration for the session execution.
- (::Google::Cloud::Dataproc::V1::EnvironmentConfig) — Optional. Environment configuration for the session execution.
#jupyter_session
def jupyter_session() -> ::Google::Cloud::Dataproc::V1::JupyterConfig
- (::Google::Cloud::Dataproc::V1::JupyterConfig) — Optional. Jupyter session config.
#jupyter_session=
def jupyter_session=(value) -> ::Google::Cloud::Dataproc::V1::JupyterConfig
- value (::Google::Cloud::Dataproc::V1::JupyterConfig) — Optional. Jupyter session config.
- (::Google::Cloud::Dataproc::V1::JupyterConfig) — Optional. Jupyter session config.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may 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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may 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.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with the session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may 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.
#name
def name() -> ::String
- (::String) — Required. The resource name of the session.
#name=
def name=(value) -> ::String
- value (::String) — Required. The resource name of the session.
- (::String) — Required. The resource name of the session.
#runtime_config
def runtime_config() -> ::Google::Cloud::Dataproc::V1::RuntimeConfig
- (::Google::Cloud::Dataproc::V1::RuntimeConfig) — Optional. Runtime configuration for the session execution.
#runtime_config=
def runtime_config=(value) -> ::Google::Cloud::Dataproc::V1::RuntimeConfig
- value (::Google::Cloud::Dataproc::V1::RuntimeConfig) — Optional. Runtime configuration for the session execution.
- (::Google::Cloud::Dataproc::V1::RuntimeConfig) — Optional. Runtime configuration for the session execution.
#runtime_info
def runtime_info() -> ::Google::Cloud::Dataproc::V1::RuntimeInfo
- (::Google::Cloud::Dataproc::V1::RuntimeInfo) — Output only. Runtime information about session execution.
#session_template
def session_template() -> ::String
-
(::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.
#session_template=
def session_template=(value) -> ::String
-
value (::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.
-
(::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.
#state
def state() -> ::Google::Cloud::Dataproc::V1::Session::State
- (::Google::Cloud::Dataproc::V1::Session::State) — Output only. A state of the session.
#state_history
def state_history() -> ::Array<::Google::Cloud::Dataproc::V1::Session::SessionStateHistory>
- (::Array<::Google::Cloud::Dataproc::V1::Session::SessionStateHistory>) — Output only. Historical state information for the session.
#state_message
def state_message() -> ::String
-
(::String) — Output only. Session state details, such as the failure
description if the state is
FAILED
.
#state_time
def state_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time when the session entered the current state.
#user
def user() -> ::String
- (::String) — Optional. The email address of the user who owns the session.
#user=
def user=(value) -> ::String
- value (::String) — Optional. The email address of the user who owns the session.
- (::String) — Optional. The email address of the user who owns the session.
#uuid
def uuid() -> ::String
- (::String) — Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session.