pub struct Image {
pub name: String,
pub description: String,
pub default_user: String,
pub root_device: String,
pub block_devices: Vec<ImageBlockDevice>,
pub architecture: i32,
pub platform: i32,
pub state: i32,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
A project’s own image, which an instance’s boot volume can be created from.
Fields§
§name: StringThe image’s resource name.
description: StringWhat the image holds, as you describe it.
default_user: StringThe account an instance launched from the image logs in as, unless the
launch names another: a POSIX user name of at most 32 lowercase
letters, digits, underscores and hyphens, starting with a letter or an
underscore, and not root. cloud when left empty.
root_device: StringThe device name of the disk the image boots from: one of the
block_devices’ device.
block_devices: Vec<ImageBlockDevice>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.
creator: StringThe principal that created the image, by its full name on iam:
//iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
Implementations§
Source§impl Image
impl Image
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<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Image
impl Message for Image
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.