#[non_exhaustive]pub struct UpgradeHistoryEntry {
pub snapshot: String,
pub vm_image: String,
pub container_image: String,
pub framework: String,
pub version: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub action: Action,
pub target_version: String,
/* private fields */
}Expand description
The entry of VM image upgrade history.
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.snapshot: StringOptional. The snapshot of the boot disk of this notebook instance before upgrade.
vm_image: StringOptional. The VM image before this instance upgrade.
container_image: StringOptional. The container image before this instance upgrade.
framework: StringOptional. The framework of this notebook instance.
version: StringOptional. The version of the notebook instance before this upgrade.
state: StateOutput only. The state of this instance upgrade history entry.
create_time: Option<Timestamp>Immutable. The time that this instance upgrade history entry is created.
action: ActionOptional. Action. Rolloback or Upgrade.
target_version: StringOptional. Target VM Version, like m63.
Implementations§
Source§impl UpgradeHistoryEntry
impl UpgradeHistoryEntry
pub fn new() -> Self
Sourcepub fn set_snapshot<T: Into<String>>(self, v: T) -> Self
pub fn set_snapshot<T: Into<String>>(self, v: T) -> Self
Sets the value of snapshot.
Sourcepub fn set_vm_image<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_image<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_image.
Sourcepub fn set_container_image<T: Into<String>>(self, v: T) -> Self
pub fn set_container_image<T: Into<String>>(self, v: T) -> Self
Sets the value of container_image.
Sourcepub fn set_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_framework<T: Into<String>>(self, v: T) -> Self
Sets the value of framework.
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_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_action<T: Into<Action>>(self, v: T) -> Self
pub fn set_action<T: Into<Action>>(self, v: T) -> Self
Sets the value of action.
Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
Trait Implementations§
Source§impl Clone for UpgradeHistoryEntry
impl Clone for UpgradeHistoryEntry
Source§fn clone(&self) -> UpgradeHistoryEntry
fn clone(&self) -> UpgradeHistoryEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more