pub struct Session {Show 15 fields
pub name: String,
pub uuid: String,
pub create_time: Option<Timestamp>,
pub runtime_info: Option<RuntimeInfo>,
pub state: i32,
pub state_message: String,
pub state_time: Option<Timestamp>,
pub creator: String,
pub labels: BTreeMap<String, String>,
pub runtime_config: Option<RuntimeConfig>,
pub environment_config: Option<EnvironmentConfig>,
pub user: String,
pub state_history: Vec<SessionStateHistory>,
pub session_template: String,
pub session_config: Option<SessionConfig>,
}
Expand description
A representation of a session.
Fields§
§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: Option<Timestamp>
Output only. The time when the session was created.
runtime_info: Option<RuntimeInfo>
Output only. Runtime information about session execution.
state: i32
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: Option<Timestamp>
Output only. The time when the session entered the current state.
creator: String
Output only. The email address of the user who created the session.
labels: BTreeMap<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.
runtime_config: Option<RuntimeConfig>
Optional. Runtime configuration for the session execution.
environment_config: Option<EnvironmentConfig>
Optional. Environment configuration for the session execution.
user: String
Optional. The email address of the user who owns the session.
state_history: Vec<SessionStateHistory>
Output only. Historical state information for the session.
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.
session_config: Option<SessionConfig>
The session configuration.
Implementations§
Trait Implementations§
source§impl Message for Session
impl Message for Session
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Session
impl PartialEq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request