[][src]Struct google_compute1::DiskInstantiationConfig

pub struct DiskInstantiationConfig {
    pub device_name: Option<String>,
    pub custom_image: Option<String>,
    pub auto_delete: Option<bool>,
    pub instantiate_from: Option<String>,
}

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

device_name: Option<String>

Specifies the device name of the disk to which the configurations apply to.

custom_image: Option<String>

The custom source image to be used to restore this disk when instantiating this instance template.

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).

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

impl Part for DiskInstantiationConfig[src]

impl Default for DiskInstantiationConfig[src]

impl Clone for DiskInstantiationConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for DiskInstantiationConfig[src]

impl Serialize for DiskInstantiationConfig[src]

impl<'de> Deserialize<'de> for DiskInstantiationConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]