#[non_exhaustive]pub struct VmImage {
pub project: String,
pub image: Option<Image>,
/* private fields */
}Expand description
Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
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.project: StringRequired. The name of the Google Cloud project that this VM image belongs
to. Format: {project_id}
image: Option<Image>The reference to an external Compute Engine VM image.
Implementations§
Source§impl VmImage
impl VmImage
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_image<T: Into<Option<Image>>>(self, v: T) -> Self
pub fn set_image<T: Into<Option<Image>>>(self, v: T) -> Self
Sets the value of image.
Note that all the setters affecting image are mutually
exclusive.
Sourcepub fn name(&self) -> Option<&String>
pub fn name(&self) -> Option<&String>
The value of image
if it holds a Name, None if the field is not set or
holds a different branch.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of image
to hold a Name.
Note that all the setters affecting image are
mutually exclusive.
Sourcepub fn family(&self) -> Option<&String>
pub fn family(&self) -> Option<&String>
The value of image
if it holds a Family, None if the field is not set or
holds a different branch.
Sourcepub fn set_family<T: Into<String>>(self, v: T) -> Self
pub fn set_family<T: Into<String>>(self, v: T) -> Self
Sets the value of image
to hold a Family.
Note that all the setters affecting image are
mutually exclusive.