pub struct PublicImage {Show 14 fields
pub name: String,
pub description: String,
pub default_user: String,
pub root_device: String,
pub block_devices: Vec<PublicImageBlockDevice>,
pub architecture: i32,
pub platform: i32,
pub state: i32,
pub image_family: String,
pub family_current: bool,
pub deprecate_time: Option<Timestamp>,
pub obsolete_time: Option<Timestamp>,
pub source_uri: String,
pub source_sha256: String,
}Expand description
One of the platform’s images, in one zone.
Fields§
§name: StringThe image’s resource name, zones/{zone}/images/{image}.
description: StringWhat the image holds.
default_user: StringThe account an instance launched from the image logs in as, unless the launch names another.
root_device: StringThe device name of the disk the image boots from.
block_devices: Vec<PublicImageBlockDevice>The image’s disks, each created for an instance launched from it.
architecture: i32The CPU architecture it boots on.
platform: i32Its operating system family.
state: i32Where it is in its lifecycle.
image_family: StringThe full name of the family the image belongs to,
//compute.origincloudapis.eu/imageFamilies/{image_family}; empty for
an image of none.
family_current: boolWhether image_family launches this image now.
deprecate_time: Option<Timestamp>When a newer build of its family replaced it, and state became
image::State::Deprecated; unset while it hasn’t been replaced.
obsolete_time: Option<Timestamp>When state becomes image::State::Obsolete and new launches from it are refused:
its deprecation plus the platform’s retention period. Unset while it
hasn’t been replaced.
source_uri: StringThe URL the image’s disk file was downloaded from when the image was made. Empty for an image that doesn’t record one.
source_sha256: StringThe SHA-256 of the file at source_uri as it was downloaded, before
any conversion: 64 lowercase hex digits, comparable with the vendor’s
SHA256SUMS. Set with source_uri, and empty without it.
Implementations§
Source§impl PublicImage
impl PublicImage
Sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Returns the enum value of architecture, or the default if the field is set to an invalid enum value.
Sourcepub fn set_architecture(&mut self, value: Architecture)
pub fn set_architecture(&mut self, value: Architecture)
Sets architecture to the provided enum value.
Sourcepub fn platform(&self) -> Platform
pub fn platform(&self) -> Platform
Returns the enum value of platform, or the default if the field is set to an invalid enum value.
Sourcepub fn set_platform(&mut self, value: Platform)
pub fn set_platform(&mut self, value: Platform)
Sets platform to the provided enum value.
Trait Implementations§
Source§impl Clone for PublicImage
impl Clone for PublicImage
Source§impl Debug for PublicImage
impl Debug for PublicImage
Source§impl Default for PublicImage
impl Default for PublicImage
Source§impl<'de> Deserialize<'de> for PublicImage
impl<'de> Deserialize<'de> for PublicImage
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for PublicImage
impl Message for PublicImage
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.