Struct google_api_proto::google::cloud::compute::v1::DiskInstantiationConfig
source · pub struct DiskInstantiationConfig {
pub auto_delete: Option<bool>,
pub custom_image: Option<String>,
pub device_name: Option<String>,
pub instantiate_from: Option<String>,
}
Expand description
A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.
Fields§
§auto_delete: Option<bool>
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
custom_image: Option<String>
The custom source image to be used to restore this disk when instantiating this instance template.
device_name: Option<String>
Specifies the device name of the disk to which the configurations apply to.
instantiate_from: Option<String>
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance’s corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance’s corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
Implementations§
source§impl DiskInstantiationConfig
impl DiskInstantiationConfig
sourcepub fn device_name(&self) -> &str
pub fn device_name(&self) -> &str
Returns the value of device_name
, or the default value if device_name
is unset.
sourcepub fn custom_image(&self) -> &str
pub fn custom_image(&self) -> &str
Returns the value of custom_image
, or the default value if custom_image
is unset.
sourcepub fn instantiate_from(&self) -> &str
pub fn instantiate_from(&self) -> &str
Returns the value of instantiate_from
, or the default value if instantiate_from
is unset.
sourcepub fn auto_delete(&self) -> bool
pub fn auto_delete(&self) -> bool
Returns the value of auto_delete
, or the default value if auto_delete
is unset.
Trait Implementations§
source§impl Clone for DiskInstantiationConfig
impl Clone for DiskInstantiationConfig
source§fn clone(&self) -> DiskInstantiationConfig
fn clone(&self) -> DiskInstantiationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiskInstantiationConfig
impl Debug for DiskInstantiationConfig
source§impl Default for DiskInstantiationConfig
impl Default for DiskInstantiationConfig
source§impl Message for DiskInstantiationConfig
impl Message for DiskInstantiationConfig
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
.source§impl PartialEq for DiskInstantiationConfig
impl PartialEq for DiskInstantiationConfig
source§fn eq(&self, other: &DiskInstantiationConfig) -> bool
fn eq(&self, other: &DiskInstantiationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiskInstantiationConfig
Auto Trait Implementations§
impl Freeze for DiskInstantiationConfig
impl RefUnwindSafe for DiskInstantiationConfig
impl Send for DiskInstantiationConfig
impl Sync for DiskInstantiationConfig
impl Unpin for DiskInstantiationConfig
impl UnwindSafe for DiskInstantiationConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request