Struct google_api_proto::google::cloud::aiplatform::v1::NotebookRuntime
source · pub struct NotebookRuntime {Show 21 fields
pub name: String,
pub runtime_user: String,
pub notebook_runtime_template_ref: Option<NotebookRuntimeTemplateRef>,
pub proxy_uri: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub health_state: i32,
pub display_name: String,
pub description: String,
pub service_account: String,
pub runtime_state: i32,
pub is_upgradable: bool,
pub labels: BTreeMap<String, String>,
pub expiration_time: Option<Timestamp>,
pub version: String,
pub notebook_runtime_type: i32,
pub idle_shutdown_config: Option<NotebookIdleShutdownConfig>,
pub network_tags: Vec<String>,
pub encryption_spec: Option<EncryptionSpec>,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
}
Expand description
A runtime is a virtual machine allocated to a particular user for a particular Notebook file on temporary basis with lifetime limited to 24 hours.
Fields§
§name: String
Output only. The resource name of the NotebookRuntime.
runtime_user: String
Required. The user email of the NotebookRuntime.
notebook_runtime_template_ref: Option<NotebookRuntimeTemplateRef>
Output only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from.
proxy_uri: String
Output only. The proxy endpoint used to access the NotebookRuntime.
create_time: Option<Timestamp>
Output only. Timestamp when this NotebookRuntime was created.
update_time: Option<Timestamp>
Output only. Timestamp when this NotebookRuntime was most recently updated.
health_state: i32
Output only. The health state of the NotebookRuntime.
display_name: String
Required. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.
description: String
The description of the NotebookRuntime.
service_account: String
Output only. The service account that the NotebookRuntime workload runs as.
runtime_state: i32
Output only. The runtime (instance) state of the NotebookRuntime.
is_upgradable: bool
Output only. Whether NotebookRuntime is upgradable.
labels: BTreeMap<String, String>
The labels with user-defined metadata to organize your NotebookRuntime.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one NotebookRuntime (System labels are excluded).
See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with “aiplatform.googleapis.com/” and are immutable. Following system labels exist for NotebookRuntime:
- “aiplatform.googleapis.com/notebook_runtime_gce_instance_id”: output only, its value is the Compute Engine instance id.
- “aiplatform.googleapis.com/colab_enterprise_entry_service”: its value is either “bigquery” or “vertex”; if absent, it should be “vertex”. This is to describe the entry service, either BigQuery or Vertex.
expiration_time: Option<Timestamp>
Output only. Timestamp when this NotebookRuntime will be expired:
- System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted.
- User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade.
version: String
Output only. The VM os image version of NotebookRuntime.
notebook_runtime_type: i32
Output only. The type of the notebook runtime.
idle_shutdown_config: Option<NotebookIdleShutdownConfig>
Output only. The idle shutdown configuration of the notebook runtime.
Optional. The Compute Engine tags to add to runtime (see Tagging instances).
encryption_spec: Option<EncryptionSpec>
Output only. Customer-managed encryption key spec for the notebook runtime.
satisfies_pzs: bool
Output only. Reserved for future use.
satisfies_pzi: bool
Output only. Reserved for future use.
Implementations§
source§impl NotebookRuntime
impl NotebookRuntime
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.
sourcepub fn runtime_state(&self) -> RuntimeState
pub fn runtime_state(&self) -> RuntimeState
Returns the enum value of runtime_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_runtime_state(&mut self, value: RuntimeState)
pub fn set_runtime_state(&mut self, value: RuntimeState)
Sets runtime_state
to the provided enum value.
sourcepub fn notebook_runtime_type(&self) -> NotebookRuntimeType
pub fn notebook_runtime_type(&self) -> NotebookRuntimeType
Returns the enum value of notebook_runtime_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_notebook_runtime_type(&mut self, value: NotebookRuntimeType)
pub fn set_notebook_runtime_type(&mut self, value: NotebookRuntimeType)
Sets notebook_runtime_type
to the provided enum value.
Trait Implementations§
source§impl Clone for NotebookRuntime
impl Clone for NotebookRuntime
source§fn clone(&self) -> NotebookRuntime
fn clone(&self) -> NotebookRuntime
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotebookRuntime
impl Debug for NotebookRuntime
source§impl Default for NotebookRuntime
impl Default for NotebookRuntime
source§impl Message for NotebookRuntime
impl Message for NotebookRuntime
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 NotebookRuntime
impl PartialEq for NotebookRuntime
source§fn eq(&self, other: &NotebookRuntime) -> bool
fn eq(&self, other: &NotebookRuntime) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotebookRuntime
Auto Trait Implementations§
impl Freeze for NotebookRuntime
impl RefUnwindSafe for NotebookRuntime
impl Send for NotebookRuntime
impl Sync for NotebookRuntime
impl Unpin for NotebookRuntime
impl UnwindSafe for NotebookRuntime
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