pub struct Runtime {
pub name: String,
pub state: i32,
pub health_state: i32,
pub access_config: Option<RuntimeAccessConfig>,
pub software_config: Option<RuntimeSoftwareConfig>,
pub metrics: Option<RuntimeMetrics>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub runtime_type: Option<RuntimeType>,
}
Expand description
The definition of a Runtime for a managed notebook instance.
Fields§
§name: String
Output only. The resource name of the runtime.
Format:
projects/{project}/locations/{location}/runtimes/{runtimeId}
state: i32
Output only. Runtime state.
health_state: i32
Output only. Runtime health_state.
access_config: Option<RuntimeAccessConfig>
The config settings for accessing runtime.
software_config: Option<RuntimeSoftwareConfig>
The config settings for software inside the runtime.
metrics: Option<RuntimeMetrics>
Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.
create_time: Option<Timestamp>
Output only. Runtime creation time.
update_time: Option<Timestamp>
Output only. Runtime update time.
runtime_type: Option<RuntimeType>
Type of the runtime; currently only supports Compute Engine VM.
Implementations§
source§impl Runtime
impl Runtime
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn health_state(&self) -> HealthState
pub fn health_state(&self) -> HealthState
Returns the enum value of health_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_health_state(&mut self, value: HealthState)
pub fn set_health_state(&mut self, value: HealthState)
Sets health_state
to the provided enum value.
Trait Implementations§
source§impl Message for Runtime
impl Message for Runtime
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 Runtime
impl PartialEq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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