#[non_exhaustive]pub struct NotebookRuntime {Show 27 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: HealthState,
pub display_name: String,
pub description: String,
pub service_account: String,
pub runtime_state: RuntimeState,
pub is_upgradable: bool,
pub labels: HashMap<String, String>,
pub expiration_time: Option<Timestamp>,
pub version: String,
pub notebook_runtime_type: NotebookRuntimeType,
pub machine_spec: Option<MachineSpec>,
pub data_persistent_disk_spec: Option<PersistentDiskSpec>,
pub network_spec: Option<NetworkSpec>,
pub idle_shutdown_config: Option<NotebookIdleShutdownConfig>,
pub euc_config: Option<NotebookEucConfig>,
pub shielded_vm_config: Option<ShieldedVmConfig>,
pub network_tags: Vec<String>,
pub software_config: Option<NotebookSoftwareConfig>,
pub encryption_spec: Option<EncryptionSpec>,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the NotebookRuntime.
runtime_user: StringRequired. 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: StringOutput 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: HealthStateOutput only. The health state of the NotebookRuntime.
display_name: StringRequired. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.
description: StringThe description of the NotebookRuntime.
service_account: StringOutput only. Deprecated: This field is no longer used and the “Vertex AI Notebook Service Account” (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details.
The service account that the NotebookRuntime workload runs as.
runtime_state: RuntimeStateOutput only. The runtime (instance) state of the NotebookRuntime.
is_upgradable: boolOutput only. Whether NotebookRuntime is upgradable.
labels: HashMap<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: StringOutput only. The VM os image version of NotebookRuntime.
notebook_runtime_type: NotebookRuntimeTypeOutput only. The type of the notebook runtime.
machine_spec: Option<MachineSpec>Output only. The specification of a single machine used by the notebook runtime.
data_persistent_disk_spec: Option<PersistentDiskSpec>Output only. The specification of [persistent disk][https://cloud.google.com/compute/docs/disks/persistent-disks] attached to the notebook runtime as data disk storage.
network_spec: Option<NetworkSpec>Output only. Network spec of the notebook runtime.
idle_shutdown_config: Option<NotebookIdleShutdownConfig>Output only. The idle shutdown configuration of the notebook runtime.
euc_config: Option<NotebookEucConfig>Output only. EUC configuration of the notebook runtime.
shielded_vm_config: Option<ShieldedVmConfig>Output only. Runtime Shielded VM spec.
Optional. The Compute Engine tags to add to runtime (see Tagging instances).
software_config: Option<NotebookSoftwareConfig>Output only. Software config of the notebook runtime.
encryption_spec: Option<EncryptionSpec>Output only. Customer-managed encryption key spec for the notebook runtime.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl NotebookRuntime
impl NotebookRuntime
pub fn new() -> Self
Sourcepub fn set_runtime_user<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime_user<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime_user.
Sourcepub fn set_notebook_runtime_template_ref<T: Into<Option<NotebookRuntimeTemplateRef>>>(
self,
v: T,
) -> Self
pub fn set_notebook_runtime_template_ref<T: Into<Option<NotebookRuntimeTemplateRef>>>( self, v: T, ) -> Self
Sets the value of notebook_runtime_template_ref.
Sourcepub fn set_proxy_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_proxy_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of proxy_uri.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_health_state<T: Into<HealthState>>(self, v: T) -> Self
pub fn set_health_state<T: Into<HealthState>>(self, v: T) -> Self
Sets the value of health_state.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_runtime_state<T: Into<RuntimeState>>(self, v: T) -> Self
pub fn set_runtime_state<T: Into<RuntimeState>>(self, v: T) -> Self
Sets the value of runtime_state.
Sourcepub fn set_is_upgradable<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_upgradable<T: Into<bool>>(self, v: T) -> Self
Sets the value of is_upgradable.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_expiration_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_expiration_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of expiration_time.
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_notebook_runtime_type<T: Into<NotebookRuntimeType>>(
self,
v: T,
) -> Self
pub fn set_notebook_runtime_type<T: Into<NotebookRuntimeType>>( self, v: T, ) -> Self
Sets the value of notebook_runtime_type.
Sourcepub fn set_machine_spec<T: Into<Option<MachineSpec>>>(self, v: T) -> Self
pub fn set_machine_spec<T: Into<Option<MachineSpec>>>(self, v: T) -> Self
Sets the value of machine_spec.
Sourcepub fn set_data_persistent_disk_spec<T: Into<Option<PersistentDiskSpec>>>(
self,
v: T,
) -> Self
pub fn set_data_persistent_disk_spec<T: Into<Option<PersistentDiskSpec>>>( self, v: T, ) -> Self
Sets the value of data_persistent_disk_spec.
Sourcepub fn set_network_spec<T: Into<Option<NetworkSpec>>>(self, v: T) -> Self
pub fn set_network_spec<T: Into<Option<NetworkSpec>>>(self, v: T) -> Self
Sets the value of network_spec.
Sourcepub fn set_idle_shutdown_config<T: Into<Option<NotebookIdleShutdownConfig>>>(
self,
v: T,
) -> Self
pub fn set_idle_shutdown_config<T: Into<Option<NotebookIdleShutdownConfig>>>( self, v: T, ) -> Self
Sets the value of idle_shutdown_config.
Sourcepub fn set_euc_config<T: Into<Option<NotebookEucConfig>>>(self, v: T) -> Self
pub fn set_euc_config<T: Into<Option<NotebookEucConfig>>>(self, v: T) -> Self
Sets the value of euc_config.
Sourcepub fn set_shielded_vm_config<T: Into<Option<ShieldedVmConfig>>>(
self,
v: T,
) -> Self
pub fn set_shielded_vm_config<T: Into<Option<ShieldedVmConfig>>>( self, v: T, ) -> Self
Sets the value of shielded_vm_config.
Sets the value of network_tags.
Sourcepub fn set_software_config<T: Into<Option<NotebookSoftwareConfig>>>(
self,
v: T,
) -> Self
pub fn set_software_config<T: Into<Option<NotebookSoftwareConfig>>>( self, v: T, ) -> Self
Sets the value of software_config.
Sourcepub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
pub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
Sets the value of encryption_spec.
Sourcepub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
Sets the value of satisfies_pzs.
Sourcepub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
Sets the value of satisfies_pzi.
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 more