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.
This type is not used in any activity, and only used as part of another schema.
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.
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§fn default() -> DiskInstantiationConfig
fn default() -> DiskInstantiationConfig
Source§impl<'de> Deserialize<'de> for DiskInstantiationConfig
impl<'de> Deserialize<'de> for DiskInstantiationConfig
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 Serialize for DiskInstantiationConfig
impl Serialize for DiskInstantiationConfig
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more