pub struct UpgradeHistoryEntry {
pub snapshot: String,
pub vm_image: String,
pub container_image: String,
pub framework: String,
pub version: String,
pub state: i32,
pub create_time: Option<Timestamp>,
pub target_image: String,
pub action: i32,
pub target_version: String,
}Expand description
The entry of VM image upgrade history.
Fields§
§snapshot: StringThe snapshot of the boot disk of this notebook instance before upgrade.
vm_image: StringThe VM image before this instance upgrade.
container_image: StringThe container image before this instance upgrade.
framework: StringThe framework of this notebook instance.
version: StringThe version of the notebook instance before this upgrade.
state: i32The state of this instance upgrade history entry.
create_time: Option<Timestamp>The time that this instance upgrade history entry is created.
target_image: StringTarget VM Image. Format: ainotebooks-vm/project/image-name/name.
action: i32Action. Rolloback or Upgrade.
target_version: StringTarget VM Version, like m63.
Implementations§
Source§impl UpgradeHistoryEntry
impl UpgradeHistoryEntry
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 action(&self) -> Action
pub fn action(&self) -> Action
Returns the enum value of action, or the default if the field is set to an invalid enum value.
Sourcepub fn set_action(&mut self, value: Action)
pub fn set_action(&mut self, value: Action)
Sets action to the provided enum value.
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 moreSource§impl Debug for UpgradeHistoryEntry
impl Debug for UpgradeHistoryEntry
Source§impl Default for UpgradeHistoryEntry
impl Default for UpgradeHistoryEntry
Source§impl Message for UpgradeHistoryEntry
impl Message for UpgradeHistoryEntry
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.